最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

errors - The ( error_log ) file size is very large

programmeradmin1浏览0评论

The error_log file size of my site has been very large. So that it fills the entire server space. The last error in this file:

[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

Someone can help me. What is the problem? (The latest changes we have made on the site: We have used the ACF plugin for add custom fields.)

The error_log file size of my site has been very large. So that it fills the entire server space. The last error in this file:

[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

Someone can help me. What is the problem? (The latest changes we have made on the site: We have used the ACF plugin for add custom fields.)

Share Improve this question asked Jul 6, 2019 at 17:00 omid chahardoliomid chahardoli 191 silver badge9 bronze badges 2
  • Turn off the plugin and watch what happens, it's not so complicated to figure out is the plugin the reason. – Max Yudin Commented Jul 6, 2019 at 17:28
  • Is there a problem with this plugin? We used the plugin before, but some time ago, only the fields were added to it – omid chahardoli Commented Jul 6, 2019 at 17:46
Add a comment  | 

1 Answer 1

Reset to default 0

Turn off the debug error loggins with this command in the wp-config.php file:

define( 'WP_DEBUG', false );

The errors you are seeing are 'warning' (I think of them as 'benign') and have to do with coding practices not allowing for empty 'loop' variables.

You only want the WP_DEBUG to be true on development systems.

If the errors still show up, then look for that setting in the PHP ini file, or in theme or plugin functions.

发布评论

评论列表(0)

  1. 暂无评论