前言:最近在写寄生虫程序的时候,有用到
wordpress
这个框架,但是呢,既然报错了,考虑过版本问题,配置问题等等,但是原因是在于安装了xdebug
导致的,最终解决方法如下:
错误提示如下:
Warning: mysqli_init(): Property access is not allowed yet in D:\GIT\wordpress\wp-includes\wp-db.php on line 1580
Warning: Cannot modify header information - headers already sent by (output started at
D:\GIT\wordpress\wp-includes\wp-db.php:1580) in D:\GIT\wordpress\wp-login.php on line 396

解决办法如下:
一、打开php.ini
二、找到
xdebug.auto_trace = On
xdebug.profiler_enable = On
三、注释上面的两行
;xdebug.auto_trace = On
;xdebug.profiler_enable = On
注释完成之后问题也就解决,如果还不行或者其他方式,也可以留言一起学习哦
网友评论