Magento Error: Fatal error: Call to a member function rewrite() on a non-object in app/code/core/Mage/Core/Controller/Varien/Front.php on line 165
Magento Error: Fatal error: Call to a member function rewrite() on a non-object in /var/www/magento/app/code/core/Mage/Core/Controller/Varien/Front.php on line 165
While upgrading Magento from 1.7 to 1.8 version, this error generally appears and stops the site from loading.
We can get rid of this error simply by clearing the cache:
rm -rf var/cache/* |
If you don’t have terminal access, clear all the contents of var/cache/ directory.
Further if you have memcached or other caching system installed, flush them as well.
Magento client denied by server configuration notice
Magento client denied by server configuration: /var/www/magento/app/etc/local.xml .. This is not the error, but just a message type thing displayed in apache error log and firebug console. Nothing to worry here, it’s just a security check from web server and you should ignore it.
If you don’t like it then you can turn it off by writing few lines of code in app/design/adminhtml/default/default/layout/local.xml
<layout> | |
<default> | |
<remove name="notification_security" /> | |
<remove name="notification_survey" /> | |
</default> | |
</layout> |
Clear cache as usual, and you should get rid of this message.
Magento 500 internal server error
[Resolved]: Magento 500 internal server error
If you are getting “500 Internal Server Error” then the reason might be permissions issue or fatal error.
In Magento, you can check the errors occured in files:
var/log/system.log
var/log/exception.log
You can even allow the error to output to your browser by editing your Magento index.php with:
error_reporting(E_ALL | E_STRICT);
ini_set(‘display_errors’, 1);
Also, try this to solve the error:
– Check the owner of your magento project. It should be the server (www-data for apache)
chown -R www-data:www-data .
– Change the directory permissions to 755 and file permissions to 644 for your project
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;
chmod 550 pear
chmod 550 mage
chmod 755 -R var
– Check after upgrade do you have your .htaccess file inside Magento root
Welcome to my Blog
Certifications
Honor
Recognition
Contributions
Categories
- Apache (2)
- ChatGPT (1)
- Domain name (2)
- eCommerce (2)
- htaccess (1)
- Humor (3)
- Instagram API (1)
- jQuery (4)
- JSON (1)
- Linux (10)
- Magento (142)
- Magento admin (58)
- Magento Certification (5)
- Magento error (13)
- Magento frontend (68)
- Magento Imagine (2)
- Magento Interview (5)
- Magento Master (2)
- Magento2 (10)
- Mobile (1)
- MySQL (7)
- OpenAI (1)
- OroCRM (2)
- Performance (2)
- PHP (8)
- Prototype JS (3)
- Security (4)
- Wordpress (3)
- XML (2)