Post by miapalk » Mon Jan 23, 2012 6:24 am

Hi Guys,
Am new to opencart so any assistance is greatly appreciated.
I have setup opencart store on test site and then copied database and files across to live site www.lawrenciacycles.com.au
when i try and login to www.lawrenciacycles.com.au/admin i am get the following error message:

Fatal error: Call to a member function isLogged() on a non-object in /home/lawre2/public_html/catalog/model/catalog/product.php on line 61

I did not have this error on the test site and i have checked code on line 61 between test and live sites and they are the same.

Any ideas?
thought i'd post and then embark on the researching to resolve :)
thanks mia.

Newbie

Posts

Joined
Mon Jan 23, 2012 6:16 am

Post by miapalk » Mon Jan 23, 2012 10:12 am

Resolved.

What I did, after much fiddling and the site falling over.

Deleted all files on live site
Zipped files on test site
uploaded to live site and unzipped
updated file path on config.php and then admin> config.php

Error occurred because in the first instance I updated the config.php file then copy and pasted the updated info into the admin config.php file.
in doing so I overwrote the following line of code, thus error on trying to access admin console.
line 21: define('DIR_CATALOG', '/home/lawre2/public_html/catalog/');

Would have saved myself about 4 hours if I had of known what I was doing and correctly added the missing line of code. however entering wrong path resulting in new error.. followed by too much fiddling and then everything fell over :) rather than waste the rest of the day I wiped it and started again.

all sorted.

Newbie

Posts

Joined
Mon Jan 23, 2012 6:16 am

Post by Webnet » Thu May 31, 2012 11:26 pm

Thanks for coming back and posting this... saved me a lot of time :)

New member

Posts

Joined
Fri Dec 31, 2010 3:17 am

Post by ornthim » Fri Aug 09, 2013 6:00 pm

Hello, I'm a new version using of Opencart store :

My Problem is :

I Try to move from local host to new server. But Fresh install on server is worked fine, no problems. When I uploaded my files to on domain http://www.topbrandadvertising.com/shoponline, The front-end is ok. But I can not login to admin (http://www.topbrandadvertising.com/shoponline/admin). It show error:

"Fatal error: Call to a member function isLogged() on a non-object in /home/topbrncs/public_html/shoponline/catalog/model/catalog/product.php on line 65"

I have try on it many times but can not , Please very one show me about that

Thanks, Thim

config.php (in my root www. folder):
<?php
// HTTP
define('HTTP_SERVER', 'http://topbrandadvertising.com/shoponline/');

// HTTPS
define('HTTPS_SERVER', 'http://topbrandadvertising.com/shoponline/');

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

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'topbrncs_shop');
define('DB_PASSWORD', 'shop123');
define('DB_DATABASE', 'topbrncs_shop');
define('DB_PREFIX', 'tc_');
?>


======================================================================================
admin/config.php:

<?php
// HTTP
define('HTTP_SERVER', 'http://topbrandadvertising.com/shoponline/admin/');
define('HTTP_CATALOG', 'http://topbrandadvertising.com/shoponline/');

// HTTPS
define('HTTPS_SERVER', 'http://topbrandadvertising.com/shoponline/admin/');
define('HTTPS_CATALOG', 'http://topbrandadvertising.com/shoponline/');

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

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'topbrncs_shop');
define('DB_PASSWORD', 'shop123');
define('DB_DATABASE', 'topbrncs_shop');
define('DB_PREFIX', 'tc_');
?>

Newbie

Posts

Joined
Fri Aug 09, 2013 4:55 pm

Post by SavSiteDesign » Thu Oct 31, 2013 2:06 am

You saved me hours of hair pulling miapalk!
Thank you so very much!

Newbie

Posts

Joined
Tue Apr 17, 2012 6:32 pm
Who is online

Users browsing this forum: Semrush [Bot] and 31 guests