Fatal error: Call to a member function isLogged()

Post By:user_52157 | Reply

So, here's the skinny... I'm on 1.4.9.2, having just run the upgrade. I ran the upgrade from 1.4.9.1 just to see if it would fix the problem I'm already having, namely,

"Fatal error: Call to a member function isLogged() on a non-object in /home/<me>/public_html/admin/controller/common/header.php on line 73"

Here's the exact line:
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'] = '';


The config.php files are from the original install of 1.4.9.1. unless i somehow messed them up. No users yet, except me and just starting customizing my store. Almost finished with a lot of customization. Would hate to have to start over. Thanks from a newbie!! I'm not a programmer, so I'm kind of messed up here. Any ideas?

Thanks from a newbie!!
user_8304Sun, 19 Dec 2010

Sweet!
Just a bit surprised late last night. I was pulling an all nighter :(

user_52157Sun, 19 Dec 2010

DUDE!! I appreciate it. That was an empty database with little or no info in it and the payment gateway is set to only test, but I appreciate your warning. How high was I? LOL

Meanwhile, I've deleted both those DBs just to be safe. Thanks.

user_8304Sun, 19 Dec 2010

DUDE!! :choke: :choke: :choke: :choke: :choke:

You better change your password to your SQL database like ASAP, unless this is a demo site/machine.
cuz now I ku'd PWN U in nanoseconds!

MODERATOR:
Somebody please edit this post to remove the password, etc from this ...

user_52157Sun, 19 Dec 2010

Thanks for help. I re-install the entire store and have been ok and making minor modifications and suddenly, I'm getting this message trying to get to the storefront from the admin page:

Fatal error: Call to a member function isLogged() on a non-object in /home/jmclean/public_html/admin/controller/common/header.php on line 73


Here's the config file from the public_html folder:
<?php
// DIR
define('DIR_APPLICATION', '/home/xxx/public_html/admin/');
define('DIR_SYSTEM', '/home/xxx/public_html/system/');
define('DIR_DATABASE', '/home/xxx/public_html/system/database/');
define('DIR_LANGUAGE', '/home/xxx/public_html/admin/language/');
define('DIR_TEMPLATE', '/home/xxx/public_html/admin/view/template/');
define('DIR_CONFIG', '/home/xxx/public_html/system/config/');
define('DIR_IMAGE', '/home/xxx/public_html/image/');
define('DIR_CACHE', '/home/xxx/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/xxx/public_html/download/');
define('DIR_LOGS', '/home/xxx/public_html/system/logs/');
define('DIR_CATALOG', '/home/xxx/public_html/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'jmclean_ocar230');
define('DB_PASSWORD', 'fSsPaf117q');
define('DB_DATABASE', 'jmclean_ocar230');
define('DB_PREFIX', 'oc_');
?>


And here's the config file from the ADMIN directory:

<?php
// HTTP
define('HTTP_SERVER', 'http://xxx.com/admin/');
define('HTTP_CATALOG', 'http://xxx.com/');
define('HTTP_IMAGE', 'http://xxx.com/image/');

// HTTPS
define('HTTPS_SERVER', 'http://xxx.com/admin/');
define('HTTPS_IMAGE', 'http://xxx.com/image/');

// DIR
define('DIR_APPLICATION', '/home/xxx/public_html/admin/');
define('DIR_SYSTEM', '/home/xxx/public_html/system/');
define('DIR_DATABASE', '/home/xxx/public_html/system/database/');
define('DIR_LANGUAGE', '/home/xxx/public_html/admin/language/');
define('DIR_TEMPLATE', '/home/xxx/public_html/admin/view/template/');
define('DIR_CONFIG', '/home/xxx/public_html/system/config/');
define('DIR_IMAGE', '/home/xxx/public_html/image/');
define('DIR_CACHE', '/home/xxx/public_html/system/cache/');
define('DIR_DOWNLOAD', '/home/xxx/public_html/download/');
define('DIR_LOGS', '/home/xxx/public_html/system/logs/');
define('DIR_CATALOG', '/home/xxx/public_html/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'xxxxx');
define('DB_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'xxxxx');
define('DB_PREFIX', 'oc_');
?>


Have a feeling one of these is wrong.

Also, when I did the re-install, they added a clean DB called 'xxxxxx' but I continue to access the old DB. This might also be part of the problem, no?

HELP. Remember, I'm a newbie, so go easy on me.... :-)

Thanks.

user_2Sat, 18 Dec 2010

MartyMan wrote:First, I really appreciate that you're taking this time.

You were right; ONE of the user.php files was missing (the catalog) so I copied the one from the system/library to the catlogue/controller. The other two items you mentioned to look for were found intact.

This is now the error I'm receiving:

Notice: Undefined index: token in /home/<me>/public_html/admin/controller/error/not_found.php on line 15Notice: Undefined index: token in /home/<me>/public_html/admin/controller/error/not_found.php on line 21
Fatal error: Call to a member function isLogged() on a non-object in /home/<me>/public_html/admin/controller/common/header.php on line 73


I'm still early in setting up. I could just wipe it off and reinstall. I had only done a few days of customizing. nbd.

Let me know what you think, ok?

Thanks again.


Eh.. no.. you can't copy from system/library to anywhere else.. aside from having the same name for relationship purposes, they are completely different codebases. You need to grab the correct files from the original zip. It sounds like you have a lot of missing files so you may want to re-upload the entire admin folder again

user_52157Sat, 18 Dec 2010

First, I really appreciate that you're taking this time.

You were right; ONE of the user.php files was missing (the catalog) so I copied the one from the system/library to the catlogue/controller. The other two items you mentioned to look for were found intact.

This is now the error I'm receiving:

Notice: Undefined index: token in /home/<me>/public_html/admin/controller/error/not_found.php on line 15Notice: Undefined index: token in /home/<me>/public_html/admin/controller/error/not_found.php on line 21
Fatal error: Call to a member function isLogged() on a non-object in /home/<me>/public_html/admin/controller/common/header.php on line 73


I'm still early in setting up. I could just wipe it off and reinstall. I had only done a few days of customizing. nbd.

Let me know what you think, ok?

Thanks again.

user_2Fri, 17 Dec 2010

Do the
catalog/controller/user/user.php
and
system/library/user.php
files exist in your system

Also be sure the admin/index.php is up to date and contains:

Code: Select all
require_once(DIR_SYSTEM . 'library/user.php');

and
Code: Select all
// User
$registry->set('user', new User($registry));

`Reply Or Comment!
Please LogIn to Reply!