久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

Discuz! 官方交流社區(qū)

標(biāo)題: 升級(jí) UCenter 1.7.0 出現(xiàn)錯(cuò)誤,求解! [打印本頁(yè)]

作者: 新媒TV浩哥    時(shí)間: 2023-2-22 10:42
標(biāo)題: 升級(jí) UCenter 1.7.0 出現(xiàn)錯(cuò)誤,求解!

程序目錄中本來沒有uc_server/data/config.inc.php這個(gè)文件,升級(jí)提示缺失,我就創(chuàng)建了一個(gè)空白的config.inc.php文件,可繼續(xù)下一步又報(bào)錯(cuò)。不知道怎么搞了。
錯(cuò)誤提示如下:


  1. 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 76

  2. Warning: 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 76

  3. Warning: 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 76

  4. Warning: 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 76

  5. Warning: 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 36

  6. Warning: 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 36

  7. Warning: mysqli::options(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 40

  8. Warning: mysqli::set_charset(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 43

  9. Warning: mysqli::query(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 46

  10. Warning: mysqli::query(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 48

  11. Warning: 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 80

  12. Warning: mysqli::query(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 81

  13. Warning: ucserver_db::error(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 94

  14. Warning: ucserver_db::errno(): Couldn't fetch mysqli in /www/wwwroot/5alz.com/uc_server/lib/dbi.class.php on line 98

  15. Warning: 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 164
  16. UCenter info: MySQL Query Error
  17. SQL:SELECT * FROM [Table]settings WHERE `k` = 'version'
  18. Error:
  19. Errno:0
復(fù)制代碼



作者: 新媒TV浩哥    時(shí)間: 2023-2-22 10:56
將DZ根目錄中的/config/config_ucenter.php文件內(nèi)容復(fù)制到了/uc_server/data/config.inc.php中,終于可以下一步了,可又提示:

  1. 表 uc_admins 的文字排序 不受支持,請(qǐng)人工處理后再繼續(xù)!
復(fù)制代碼
官方弄教程麻煩專業(yè)點(diǎn)行不?不要留下一堆坑嘛!

作者: 新媒TV浩哥    時(shí)間: 2023-2-22 11:13
整個(gè)數(shù)據(jù)庫(kù),包括uc_admins都是utf8_general_ci,為什么會(huì)報(bào)錯(cuò)呢?
(, 下載次數(shù): 18)

作者: 新媒TV浩哥    時(shí)間: 2023-2-22 11:18
怎么搞?
(, 下載次數(shù): 22)


作者: Killer    時(shí)間: 2023-2-22 12:06
自己操作錯(cuò)誤,你沙發(fā)的操作就是錯(cuò)的,錯(cuò)誤的操作會(huì)帶來一連串不可知的錯(cuò)誤可能性
作者: 新媒TV浩哥    時(shí)間: 2023-2-22 12:21
Killer 發(fā)表于 2023-2-22 12:06
自己操作錯(cuò)誤,你沙發(fā)的操作就是錯(cuò)的,錯(cuò)誤的操作會(huì)帶來一連串不可知的錯(cuò)誤可能性 ...

不復(fù)制過來,就是主貼上的錯(cuò)誤??!新版里面也沒這個(gè)文件
作者: 新媒TV浩哥    時(shí)間: 2023-2-22 12:40
Killer 發(fā)表于 2023-2-22 12:06
自己操作錯(cuò)誤,你沙發(fā)的操作就是錯(cuò)的,錯(cuò)誤的操作會(huì)帶來一連串不可知的錯(cuò)誤可能性 ...

3.4/3.5都沒這文件,我不知道為啥你們升級(jí)程序里要調(diào)用這個(gè)文件還不給默認(rèn)的。
  1. Warning: require(/www/wwwroot/5alz.com/uc_server/./data/config.inc.php): failed to open stream: No such file or directory in /www/wwwroot/5alz.com/uc_server/install/update_ucenter_adult.php on line 17

  2. Fatal error: require(): Failed opening required '/www/wwwroot/5alz.com/uc_server/./data/config.inc.php' (include_path='.:') in /www/wwwroot/5alz.com/uc_server/install/update_ucenter_adult.php on line 17
復(fù)制代碼



作者: 新媒TV浩哥    時(shí)間: 2023-2-22 13:58
已解決:找了個(gè)config.inc.php文件
作者: 新媒TV浩哥    時(shí)間: 2023-2-22 14:23
提示: 該帖被管理員或版主屏蔽
作者: 沒有昵稱    時(shí)間: 2023-2-22 15:08
新媒TV浩哥 發(fā)表于 2023-2-22 12:40
3.4/3.5都沒這文件,我不知道為啥你們升級(jí)程序里要調(diào)用這個(gè)文件還不給默認(rèn)的。

正常運(yùn)行的DX3.4默認(rèn)肯定是有這個(gè)config.inc.php文件的
作者: 沒有昵稱    時(shí)間: 2023-2-22 15:10
新媒TV浩哥 發(fā)表于 2023-2-22 14:23
新問題又來了:升級(jí)DZX3.5找到回了DZQ的感覺:官方不嚴(yán)謹(jǐn),到處是坑!

出現(xiàn)這個(gè)提示,升級(jí)程序頁(yè)面不要關(guān)閉,另開頁(yè)面在PHPMYADMIN里直接給email字段增加索引,然后在原升級(jí)頁(yè)面刷新就可以了。官方常見問題里面其實(shí)有一些操作說明。
作者: 沒有昵稱    時(shí)間: 2023-2-22 15:12
新媒TV浩哥 發(fā)表于 2023-2-22 11:13
整個(gè)數(shù)據(jù)庫(kù),包括uc_admins都是utf8_general_ci,為什么會(huì)報(bào)錯(cuò)呢?

不知道你的MYSQL是什么版本,最新版的升級(jí)程序應(yīng)該是完善加入了多種編碼支持。




歡迎光臨 Discuz! 官方交流社區(qū) (http://www.9999xn.com/) Powered by Discuz! W1.0