admin管理员组

文章数量:1424985

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.

本文标签: errorsThe ( errorlog ) file size is very large