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
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', '');
?>
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.
Who is online
Users browsing this forum: Google [Bot] and 87 guests