Title: PHP Error
Last modified: July 22, 2019

---

# PHP Error

 *  [av_admin_1984](https://wordpress.org/support/users/avadmin1984/)
 * (@avadmin1984)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-336/)
 * Hello
 * I get these errors until a 10 gigabyte file is made on the host and the site 
   does not go up anymore.
 * PHP Warning: current() expects parameter 1 to be array, null given in /home/public_html/
   wp-includes/class-wp-hook.php on line 275
    PHP Warning: Invalid argument supplied
   for foreach() in /home/public_html/wp-includes/class-wp-hook.php on line 277 
   PHP Warning: next() expects parameter 1 to be array, null given in /home/public_html/
   wp-includes/class-wp-hook.php on line 291
 * —- class-wp-hook.php
    275 – $this->current_priority[ $nesting_level ] = $priority
   = current( $this->iterations[ $nesting_level ] ); 277- foreach ( $this->callbacks[
   $priority ] as $the_ ) { 291- } while ( false !== next( $this->iterations[ $nesting_level]));
 * Any help would be appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-336/#post-11755937)
 * This may be a plugin or theme problem. Please attempt to disable all plugins,
   and use one of the default (Twenty*) themes. If the problem goes away, enable
   them one by one to identify the source of your troubles.
 *  Thread Starter [av_admin_1984](https://wordpress.org/support/users/avadmin1984/)
 * (@avadmin1984)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-336/#post-11755977)
 * Hello [@sterndata](https://wordpress.org/support/users/sterndata/)
 * I did that before i poet here and with googling I found this code replace with
   line 291 in /public_html/wp-includes/class-wp-hook.php
 * } while ( is_array( $this->iterations[ $nesting_level ] ) && false !== next( 
   $this->iterations[ $nesting_level ] ) );
 * and it helped me.
 * Thank you for respond me.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-336/#post-11756001)
 * NEVER modify core files. That fixes the symptom without solving the problem.
 *  Thread Starter [av_admin_1984](https://wordpress.org/support/users/avadmin1984/)
 * (@avadmin1984)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-336/#post-11756025)
 * [@sterndata](https://wordpress.org/support/users/sterndata/)
 * Okey , Let me tell you what I did to solve the problem
    1-Disabled on by one 
   plugins , but log file still crating 2-Rename the Plugins folder and delete error_log
   file and after 10 minutest it was there and it was about 700 MB weight . 4-Updated
   wordpress in admin panel. 5-Updated wordpress manually. 6-Downloaded twentyfourteen
   theme and updated and select for defult theme,but error file was there and being
   grow up. After that , I post here and search in google and found that code.
 * Now , Do you have any suggestion to fix my problem ?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-336/#post-11756118)
 * Please install the health check plugin and report back its findings from the 
   info tab: [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Error’ is closed to new replies.

## Tags

 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/php-error-336/#post-11756118)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
