升级 UCenter 1.7.0 出现错误,求解!
程序目录中本来没有uc_server/data/config.inc.php这个文件,升级提示缺失,我就创建了一个空白的config.inc.php文件,可继续下一步又报错。不知道怎么搞了。
错误提示如下:
错误提示如下:
- Warning: Use of undefined constant UC_DBHOST - assumed 'UC_DBHOST' (this will throw an Error in a future version of PHP) in /www/wwwroot/5alz.com/uc_server/install/update_ucenter_adult.php on line 76Warning: Use of undefined constant UC_DBUSER - assumed 'UC_DBUSER' (this will throw an Error in a future version of PHP) in /www/wwwroot/5alz.com/uc_server/install/update_ucenter_adult.php on line 76Warning: Use of undefined constant UC_DBPW - assumed 'UC_DBPW' (this will throw an Error in a future version of PHP) in /www/wwwroot/5alz.com/uc_server/install/update_ucenter_adult.php on line 76Warning: Use of undefined constant UC_DBNAME - assumed 'UC_DBNAME' (this will throw an Error in a future version of PHP) in /www/wwwroot/5alz.com/uc_server/install/update_ucenter_adult.php on line 76Warning: mysqli::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 36Warning: mysqli::__construct(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 36Warning: mysqli::options(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 40Warning: mysqli::set_charset(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 43Warning: mysqli::query(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 46Warning: mysqli::query(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 48Warning: Use of undefined constant UC_DBTABLEPRE - assumed 'UC_DBTABLEPRE' (this will throw an Error in a future version of PHP) in /www/wwwroot/5alz.com/uc_server/install/update_ucenter_adult.php on line 80Warning: mysqli::query(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 81Warning: ucserver_db::error(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 94Warning: ucserver_db::errno(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 98Warning: Use of undefined constant UC_DBTABLEPRE - assumed 'UC_DBTABLEPRE' (this will throw an Error in a future version of PHP) in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 164UCenter info: MySQL Query ErrorSQL:SELECT * FROM [Table]settings WHERE `k` = 'version'Error:Errno:0