• 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)

    (@sterndata)

    Volunteer Forum Moderator

    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

    (@avadmin1984)

    Hello @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)

    (@sterndata)

    Volunteer Forum Moderator

    NEVER modify core files. That fixes the symptom without solving the problem.

    Thread Starter av_admin_1984

    (@avadmin1984)

    @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)

    (@sterndata)

    Volunteer Forum Moderator

    Please install the health check plugin and report back its findings from the info tab: https://www.ads-software.com/plugins/health-check/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Error’ is closed to new replies.