Magento Forum

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
 
jazzmasta25
Jr. Member
 
Total Posts:  1
Joined:  2012-11-10
 

Hello,

Thank you for any help you can provide in advance.

I upgraded from 1.7.02 to 1.8.0 using the Magento connect. Once it completed I reloaded my site (frontend and backend) and received 500 internal errors.

I did some searching and found this was a permissions issue on PHP files, all of my PHP files were set to 666

I changed them all to 644, that fixed the 500 internal errors.

Now when the site loads I get:

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

After some digging I found this may be due to the /var/ folder not being writeable. So I changed it and the files and the subdirectories to the proper permissions. However, that did not help and I am still getting:

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

Let me know what you think.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sindre|ProperHost
Mentor
 
Avatar
Total Posts:  1158
Joined:  2008-04-24
 

This post mentions a similar error: http://magento.stackexchange.com/questions/8634/fatal-error-call-to-a-member-function-rewrite-on-a-non-object-after-upgrade

 
Magento Community Magento Community
Magento Community
Magento Community
 
robfico
Jr. Member
 
Avatar
Total Posts:  4
Joined:  2013-02-26
 

Also make sure you clear your cache (var/cache if file based) afterwards, as the error could be cached.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ed_Rolla
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2012-01-26
Rio de Janeiro
 

I cleared Magento’s cache and it was able to proceed with the installation.

Access your server via FTP delete the folders CONTENT (NOT THE FOLDER):
1. /var/cache/;
2. /var/locks/;
3. /var/report/; and
4. /var/session/;

That should do the trick. wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bialy7
Jr. Member
 
Total Posts:  2
Joined:  2010-03-28
 

If you have installed APC you should clear him.
The simplest is restart apache

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top