Reputation: 15108
I have installed opencart on www.completeofficechairs.co.uk
.
and youll notice I get the 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 cant work out whats wrong. 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 admin side of the store is working.
This is confusing and annoying. Hoping someone can help.
Upvotes: 4
Views: 4294
Reputation: 15151
by the looks of the error, you have the wrong config file for the catalog side of things. It's loading up the admin on the home page, which is why that object doesn't exist (or vice versa)
Upvotes: 6