KSteele Posted June 10, 2014 Share Posted June 10, 2014 (edited) Hi Guys, really need some input here. I have used the 1-Click Upgrade to update PS 1.4.6.2 to the current version 1.6.0.6 and the Backend is working fine but I have this error on the frontend: Call to undefined method Customer::isLogged() in /home/nutri/public_html/dev/vitamin-store/classes/Hook.php on line 297 Does anyone know what I can do to fix this please? See it here: http://dev.nutriguard.com/vitamin-store/ *************************************************************************** Here is the block of code that the error refers to - Line 297 in Red: // Get groups list if ($use_groups) { if (isset($context->customer) && $context->customer->isLogged()) $groups = $context->customer->getGroups(); elseif (isset($context->customer) && $context->customer->isLogged(true)) $groups = array((int)Configuration::get('PS_GUEST_GROUP')); else $groups = array((int)Configuration::get('PS_UNIDENTIFIED_GROUP')); } } *************************************************************************** Edited June 10, 2014 by KSteele (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted June 10, 2014 Share Posted June 10, 2014 it would seem that classes/Customer.php is missing. you can download, unzip current 1.6.0.6 to find a copy Link to comment Share on other sites More sharing options...
KSteele Posted June 10, 2014 Author Share Posted June 10, 2014 (edited) Thanks for the quick reply El Patron... but unless there is a second Customer.php somewhere - looking on the server I see it present here: dev/vitamin-store/classes/Customer.php Edit: On second thought - maybe it's corrupt, I will upload a fresh version and report back. Edited June 10, 2014 by KSteele (see edit history) Link to comment Share on other sites More sharing options...
KSteele Posted June 10, 2014 Author Share Posted June 10, 2014 done. >>> no change, I still have the Fatal Error Link to comment Share on other sites More sharing options...
El Patron Posted June 11, 2014 Share Posted June 11, 2014 that's strange, try this: delete (or rename delete is safe) cache/class_index.php Link to comment Share on other sites More sharing options...
KSteele Posted June 11, 2014 Author Share Posted June 11, 2014 Working!!!! I shall now bow when you walk by.... so, what does this mean? Is there anything I should do to the "class_index.php" file now... or just leave it alone? Link to comment Share on other sites More sharing options...
El Patron Posted June 11, 2014 Share Posted June 11, 2014 Working!!!! I shall now bow when you walk by.... so, what does this mean? Is there anything I should do to the "class_index.php" file now... or just leave it alone? ps will rebuild the class cache on a 'time initiated' factor but if we delete it it will rebuild the class cache immediately. That is great you are able to move forward on your upgrade. 1 Link to comment Share on other sites More sharing options...
KSteele Posted June 11, 2014 Author Share Posted June 11, 2014 Thank you for taking the time to help Patron... I can now breathe again. 1 Link to comment Share on other sites More sharing options...
dennis1981 Posted October 5, 2014 Share Posted October 5, 2014 Thanks for your input guys, this has saved me from a lot of trouble with a 1.4.4.1 store!!! 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now