Page 1 of 1

Issues with OC 1.5.6.4 Fatal error: Call to a member function isLogged() on null

Posted: Fri Sep 14, 2018 2:19 am
by Alannon
I have recently had to restore a backup after a failed upgrade to version 3.

My home webpage looks ok but when I try and get on to the admin log on I receive the message below:

Fatal error: Call to a member function isLogged() on null in /home/cometopl/public_html/catalog/model/catalog/product.php on line 65

I am a complete newbie and do not understand what the error message is telling me.

I have looked at the file and the line concerned (starts from line 64)

public function getProducts($data = array()) {
if ($this->customer->isLogged()) {
$customer_group_id = $this->customer->getCustomerGroupId();
} else {
$customer_group_id = $this->config->get('config_customer_group_id');
}

Re: Issues with OC 1.5.6.4 Fatal error: Call to a member function isLogged() on null

Posted: Fri Sep 14, 2018 6:12 am
by straightlight
Error message originating due to a possible installed extension. The admin login page uses the user's class to validate the logins, not the customer's class.

Re: Issues with OC 1.5.6.4 Fatal error: Call to a member function isLogged() on null

Posted: Fri Sep 14, 2018 2:49 pm
by Alannon
Thanks Straighlight, asI said I am a complete newbie and have no idea how to fix the issue, I understand the. bit about extensions but how do I know which one is causing the issue and how do I fix it?

Re: Issues with OC 1.5.6.4 Fatal error: Call to a member function isLogged() on null

Posted: Fri Sep 14, 2018 3:00 pm
by straightlight
If you have no idea on the extensions you are installing, especially if you are using an old OC version, the best solution would be to create a new service request in the Commercial Support section of the forum to get this verified / uninstalled professionally.

Re: Issues with OC 1.5.6.4 Fatal error: Call to a member function isLogged() on null

Posted: Fri Sep 14, 2018 6:20 pm
by Alannon
Hi

It was a site created by someone else with OC included. I wanted to upgrade to a newer version of OCT but it caused so many errors that I reverted back to the older version.

I had hoped someone would be able to tell me how to correct one error line and then I could have merrily gone on my way.

Thanks for the suggestion.

Re: Issues with OC 1.5.6.4 Fatal error: Call to a member function isLogged() on null

Posted: Fri Sep 14, 2018 7:41 pm
by straightlight
While an upgrade has not been mentioned on the first post, this error message you are addressing may appear due to a failed upgrade process. I would suggest following this post for proper upgrade steps: viewtopic.php?f=176&p=733002#p730051