Post by MartyMan » Sat Dec 18, 2010 7:03 am

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!!

Newbie

Posts

Joined
Thu Dec 16, 2010 7:57 am

Post by Qphoria » Sat Dec 18, 2010 9:28 am

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));

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by MartyMan » Sat Dec 18, 2010 2:43 pm

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.

Newbie

Posts

Joined
Thu Dec 16, 2010 7:57 am

Post by Qphoria » Sat Dec 18, 2010 11:29 pm

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by MartyMan » Mon Dec 20, 2010 3:18 am

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.

Newbie

Posts

Joined
Thu Dec 16, 2010 7:57 am

Post by SapporoGuy » Mon Dec 20, 2010 4:48 am

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 ...

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by MartyMan » Mon Dec 20, 2010 6:10 am

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.

Newbie

Posts

Joined
Thu Dec 16, 2010 7:57 am

Post by SapporoGuy » Mon Dec 20, 2010 12:10 pm

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

930sc ... because it is fun!


User avatar
Active Member

Posts

Joined
Mon Nov 01, 2010 7:29 pm

Post by somnik » Wed Oct 01, 2014 10:12 am

Hello! what's up guys, i have almost the same problem but i don't understand it. I'm very new at this and i've had this problem for about 2 weeks now =S . the message i get is: Fatal error: Call to a member function isLogged() on a non-object in /home/content/98/12954798/html/catalog/model/catalog/product.php on line 65

if you guys know how to fix it and can/want to help me out that would be awesome! thank you for taking the time to read.
best regards!

User avatar
New member

Posts

Joined
Wed May 01, 2013 1:50 am

Post by kau_san » Sat Jun 13, 2015 7:32 pm

Hello! what's up guys, i have almost the similar problem but i don't understand it. I'm very new at this and i've had this problem for about 2 days now . the message i get is: Fatal error: Call to a member function isLogged() on a non-object in /home/mahavirg/public_html/vqmod/vqcache/vq2-catalog_view_theme_zerocart-blue_template_common_footer.tpl on line 56

if you guys know how to fix it and can/want to help me out that would be awesome! thank you for taking the time to read.
best regards!

Newbie

Posts

Joined
Sat Jun 13, 2015 6:15 pm
Who is online

Users browsing this forum: No registered users and 22 guests