这个error_log 我的网站的文件大小已very large. 这样它就填满了整个服务器空间。此文件中的最后一个错误:
[06-Jul-2019 13:22:21 UTC] PHP Warning: current() expects parameter 1 to be array, null given in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 275
[06-Jul-2019 13:22:21 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 277
[06-Jul-2019 13:22:21 UTC] PHP Warning: next() expects parameter 1 to be array, null given in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 291
[06-Jul-2019 13:22:21 UTC] PHP Warning: current() expects parameter 1 to be array, null given in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 275
[06-Jul-2019 13:22:21 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 277
[06-Jul-2019 13:22:21 UTC] PHP Warning: next() expects parameter 1 to be array, null given in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 291
[06-Jul-2019 13:22:21 UTC] PHP Warning: current() expects parameter 1 to be array, null given in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 275
[06-Jul-2019 13:22:21 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 277
[06-Jul-2019 13:22:21 UTC] PHP Warning: next() expects parameter 1 to be array, null given in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 291
有人可以帮助我。问题是什么?(
The latest changes 我们在现场制作:我们使用
ACF plugin 用于添加自定义字段。)
SO网友:Rick Hellewell
在wp config中使用此命令关闭调试错误日志。php文件:
define( \'WP_DEBUG\', false );
您看到的错误是“警告”(我认为它们是“良性的”),并且与不允许空“循环”变量的编码实践有关。
您只希望WP\\U调试在开发系统上为true。
如果错误仍然出现,请在PHP ini文件或主题或插件函数中查找该设置。