Post by mameha » Fri Jun 21, 2013 3:58 pm

Can somebody please post their (anonymized) config.php here?

(I accidentally deleted my config.php in the root folder and my site is down. If I could see a sample config.php I can change the paths to match my server and fix my site. I still have my admin/config.php which I imagine is similar. I am using the latest version of OpenCart v.1.5.5.1 and my admin area is working perfectly.)

The error I currently get is:

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

Newbie

Posts

Joined
Wed Jun 19, 2013 5:26 pm

Post by inactiveaccount9912 » Fri Jun 21, 2013 5:25 pm

Demo config:

Code: Select all

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

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

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

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'db_username');
define('DB_PASSWORD', 'password');
define('DB_DATABASE', 'db_name');
define('DB_PREFIX', '');
?>

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by mameha » Fri Jun 21, 2013 5:30 pm

I have fixed this by using lateral thinking.

I simply asked the web host to restore the daily backup of my website files from yesterday.

Newbie

Posts

Joined
Wed Jun 19, 2013 5:26 pm

Post by mameha » Fri Jun 21, 2013 5:32 pm

PS: Thanks to florinsmith for replying. Actually I tried using such a config.php but for some reason the error would not go away. I thought it was related to cache so deleted cache files, uninstalled vqmod etc but without any success, so resorted to the backup.

Newbie

Posts

Joined
Wed Jun 19, 2013 5:26 pm
Who is online

Users browsing this forum: Google [Bot] and 87 guests