我刚刚将OpenCart 1.5.6迁移到了VPS主机。目录页面工作正常,它显示警报,但确定,但当我实际导航到管理前端时,页面显示错误。有谁知道发生了什么?
目录上的错误是:
不推荐使用:mysql_connect():不推荐使用mysql扩展,将来会删除它:在第6行的/home/clara157/public_html/atacado/system/database/mysql.php中使用mysqli或PDO
管理员的错误是:
不推荐使用:mysql_connect():不推荐使用mysql扩展,将来会删除它:在第6行的/home/clara157/public_html/atacado/system/database/mysql.php中使用mysqli或PDO
致命错误:在第43行的/home/clara157/public_html/atacado/system/journal2/classes/journal2_cache.php中的非对象上调用成员函数isLogged()
的config.php
<?php
// HTTP
define('HTTP_SERVER', 'http://www.atacado.eliacessorios.com/');
define('HTTP_IMAGE', 'http://www.atacado.eliacessorios.com/image/');
define('HTTP_ADMIN', 'http://www.atacado.eliacessorios.com/admin/');
// HTTPS
define('HTTPS_SERVER', 'http://www.atacado.eliacessorios.com/');
define('HTTPS_IMAGE', 'http://www.atacado.eliacessorios.com/image/');
// DIR
define('DIR_APPLICATION', '/home/clara157/public_html/atacado/catalog/');
define('DIR_SYSTEM', '/home/clara157/public_html/atacado/system/');
define('DIR_DATABASE', '/home/clara157/public_html/atacado/system/database/');
define('DIR_LANGUAGE', '/home/clara157/public_html/atacado/catalog/language/');
define('DIR_TEMPLATE', '/home/clara157/public_html/atacado/catalog/view/theme/');
define('DIR_CONFIG', '/home/clara157/public_html/atacado/system/config/');
define('DIR_IMAGE', '/home/clara157/public_html/atacado/image/');
define('DIR_CACHE', '/home/clara157/public_html/atacado/system/cache/');
define('DIR_DOWNLOAD', '/home/clara157/public_html/atacado/download/');
define('DIR_LOGS', '/home/clara157/public_html/atacado/system/logs/');
define('DIR_OPENCART', '/home/clara157/atacado/public_html/');
// DB
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '****');
define('DB_PASSWORD', '****');
define('DB_DATABASE', '*****');
define('DB_PREFIX', '');?>
管理员/ CONFIG.PHP
<?php
// HTTP
define('HTTP_SERVER', 'http://www.atacado.eliacessorios.com/');
define('HTTP_IMAGE', 'http://www.atacado.eliacessorios.com/image/');
define('HTTP_ADMIN', 'http://www.atacado.eliacessorios.com/admin/');
// HTTPS
define('HTTPS_SERVER', 'http://www.atacado.eliacessorios.com/');
define('HTTPS_IMAGE', 'http://www.atacado.eliacessorios.com/image/');
// DIR
define('DIR_APPLICATION', '/home/clara157/public_html/atacado/catalog/');
define('DIR_SYSTEM', '/home/clara157/public_html/atacado/system/');
define('DIR_DATABASE', '/home/clara157/public_html/atacado/system/database/');
define('DIR_LANGUAGE', '/home/clara157/public_html/atacado/catalog/language/');
define('DIR_TEMPLATE', '/home/clara157/public_html/atacado/catalog/view/theme/');
define('DIR_CONFIG', '/home/clara157/public_html/atacado/system/config/');
define('DIR_IMAGE', '/home/clara157/public_html/atacado/image/');
define('DIR_CACHE', '/home/clara157/public_html/atacado/system/cache/');
define('DIR_DOWNLOAD', '/home/clara157/public_html/atacado/download/');
define('DIR_LOGS', '/home/clara157/public_html/atacado/system/logs/');
define('DIR_CATALOG', '/home/clara_157/public_html/atacado/catalog/');
// DB
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', '******');
define('DB_PASSWORD', '*****');
define('DB_DATABASE', '*****');
define('DB_PREFIX', '');?>
答案 0 :(得分:0)
你可以试试这个
define('DB_DRIVER', 'mysqli');
双方(目录和amdin)