迪巴拉 发表于 2023-2-22 11:35:54

升级 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 settings WHERE `k` = 'version'Error:Errno:0


Crystαl 发表于 2023-2-22 11:36:28

将DZ根目录中的/config/config_ucenter.php文件内容复制到了/uc_server/data/config.inc.php中,终于可以下一步了,可又提示:

表 uc_admins 的文字排序 不受支持,请人工处理后再继续!官方弄教程麻烦专业点行不?不要留下一堆坑嘛!

独家记忆 发表于 2023-2-22 11:37:18

整个数据库,包括uc_admins都是utf8_general_ci,为什么会报错呢?

IT618发布 发表于 2023-2-22 11:37:25

怎么搞?
页: [1]
查看完整版本: 升级 UCenter 1.7.0 出现错误,求解!

创宇盾启航版免费网站防御网站加速服务