M1 下安装了 PHP8,通过 phpstorm 调试 dedecms v5.7,在登录后台页面的时候报如下错误:
Fatal error: Uncaught Error: mysqli object is not fully initialized in /opt/homebrew/var/www/include/dedesqli.class.php:119 Stack trace: #0 /opt/homebrew/var/www/include/dedesqli.class.php(119): mysqli_errno(Object(mysqli)) #1 /opt/homebrew/var/www/include/dedesqli.class.php(78): DedeSqli->Open(false) #2 /opt/homebrew/var/www/include/dedesqli.class.php(296): DedeSqli->Init(false) #3 /opt/homebrew/var/www/include/userlogin.class.php(249): DedeSqli->Execute() #4 /opt/homebrew/var/www/dd/login.php(74): userLogin->checkUser('admin', 'admin') #5 {main} thrown in /opt/homebrew/var/www/include/dedesqli.class.php on line 119
找了好长时间的资料还是没找到解决方法。求助各位大佬。
1
icemanpro 2021-07-02 09:25:05 +08:00
php 版本高了吗? 官方说是 php7
|
2
notproblem 2021-07-02 09:36:12 +08:00
php 用 5.6 试试
|
3
dong568789 2021-07-02 09:43:12 +08:00
php 版本高了啊,这些开源 CMS 用 php5.6 最合适
|
4
bobzhangyong 2021-07-02 10:02:28 +08:00
mysqli 扩展装了吗?
|
5
jobs0 OP @bobzhangyong 这个在 M1 上怎么安装?求指导
|