OpenCart:Store front显示管理员屏幕

时间:2014-03-19 15:10:17

标签: php e-commerce opencart

我刚刚将OpenCart 1.5.6商店升级到1.5.6.1版本。管理页面工作正常,但当我实际导航到商店前面(目录)时,它显示管理屏幕(登录表单)。谁知道发生了什么事?

它似乎没有重定向,因为当我导航到商店前端时,我在URL中看不到/admin

这也是我在商店前面遇到的新错误:

Fatal error: Call to a member function isLogged() on a non-object in /abs_path/www.website.com/web/content/admin/controller/common/header.php on line 122

我的管理员配置:

    // HTTP
define('HTTP_SERVER', 'http://www.website.com/admin/');
define('HTTP_CATALOG', 'http://www.website.com/');

// HTTPS
define('HTTPS_SERVER', 'http://www.website.com/admin/');
define('HTTPS_CATALOG', 'http://www.website.com/');

// DIR
define('DIR_APPLICATION', '/abs_path/www.website.com/web/content/admin/');
define('DIR_SYSTEM', '/abs_path/www.website.com/web/content/system/');
define('DIR_DATABASE', '/abs_path/www.website.com/web/content/system/database/');
define('DIR_LANGUAGE', '/abs_path/www.website.com/web/content/admin/language/');
define('DIR_TEMPLATE', '/abs_path/www.website.com/web/content/admin/view/template/');
define('DIR_CONFIG', '/abs_path/www.website.com/web/content/system/config/');
define('DIR_IMAGE', '/abs_path/www.website.com/web/content/image/');
define('DIR_CACHE', '/abs_path/www.website.com/web/content/system/cache/');
define('DIR_DOWNLOAD', '/abs_path/www.website.com/web/content/download/');
define('DIR_LOGS', '/abs_path/www.website.com/web/content/system/logs/');
define('DIR_CATALOG', '/abs_path/www.website.com/web/content/catalog/');

// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', '******');
define('DB_USERNAME', '******');
define('DB_PASSWORD', '******');
define('DB_DATABASE', '******');
define('DB_PREFIX', '******');

我的目录配置:

// HTTP
define('HTTP_SERVER', 'http://www.website.com/');

// HTTPS
define('HTTPS_SERVER', 'http://www.website.com/');

// DIR
define('DIR_APPLICATION', '/abs_path/www.website.com/web/content/catalog/');
define('DIR_SYSTEM', '/abs_path/www.website.com/web/content/system/');
define('DIR_DATABASE', '/abs_path/www.website.com/web/content/system/database/');
define('DIR_LANGUAGE', '/abs_path/www.website.com/web/content/catalog/language/');
define('DIR_TEMPLATE', '/abs_path/www.website.com/web/content/catalog/view/theme/');
define('DIR_CONFIG', '/abs_path/www.website.com/web/content/system/config/');
define('DIR_IMAGE', '/abs_path/www.website.com/web/content/image/');
define('DIR_CACHE', '/abs_path/www.website.com/web/content/system/cache/');
define('DIR_DOWNLOAD', '/abs_path/www.website.com/web/content/download/');
define('DIR_LOGS', '/abs_path/www.website.com/web/content/system/logs/');

// DB
define('DB_DRIVER', '*******');
define('DB_HOSTNAME', '*******');
define('DB_USERNAME', '*******');
define('DB_PASSWORD', '*******');
define('DB_DATABASE', '*******');
define('DB_PREFIX', '*******');

1 个答案:

答案 0 :(得分:2)

这听起来好像是您从config.php复制了admin/config.php,而不是将您的目录复制一份。确保其中没有任何路径包含/admin/。如果您不确定

,请随意将config.php文件发布到没有敏感数据的原始帖子