Opencart Error Message

I installed opencart at www.completeofficechairs.co.uk .

and you will see an error message:

  Fatal error: Call to a member function isLogged() on a non-object in /var/websites/completeofficechairs/www/admin/controller/common/header.php on line 101 

I can’t understand what happened. If I go to the file, the line of code in question is:

  if (!$this->user->isLogged() || !isset($this->request->get['token']) || !isset($this->session->data['token']) || ($this->request->get['token'] != $this->session->data['token'])) { $this->data['logged'] = ''; 

However, the administrative side of the store works.

This is confusing and annoying. Hope someone can help.

+4
source share
1 answer

in appearance of the error, you have the wrong configuration file for the directory. It loads the administrator on the home page, so this object does not exist (or vice versa)

+6
source

Source: https://habr.com/ru/post/1394221/


All Articles