• Resolved trovato

    (@trovato)


    After an automatic upgrade to 4.7 i am getting the following error.

    Fatal error: Call to a member function do_all_hook() on array in /home/…./public_html/wp-includes/plugin.php on line 837

    I have renamed the plugin folder as suggested but the error persists.

    Any Ideas?

    • This topic was modified 7 years, 11 months ago by trovato.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    Thread Starter trovato

    (@trovato)

    I have done all that. talked to my host and they have several people with the same issue.

    Moderator t-p

    (@t-p)

    – Try MANUALLY updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old wp-admin and wp-includes folders and files on your server before uploading the new ones. Please read the Manual Update directions first.
    Backup: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. You can never have enough backups!

    Thread Starter trovato

    (@trovato)

    Re-uploaded all files manually and it worked.

    Moderator t-p

    (@t-p)

    Glad to know it ??

    I was having the same issue, and I believe it might be an actual bug in wordpress.

    The issue is in wp-includes/object-cache.php. If APC is not enabled in php, wordpress sets “_wp_using_ext_object_cache” to false, but also manually adds a filter to $GLOBALS[‘wp_filter’][‘all’][-100][‘apc_not_actually_running’]. And I think the problem is that it adds it as an array.

    so, on wp-includes/plugin.php it calls $wp_filter[‘all’]->do_all_hook( $args );

    This fails because $wp_filter[‘all’] is an array, so there’s no do_all_hook

    I uncommented the line that sets the filter in object-cache.php (line 667 in the latest version of wp) and my install now works. Another option would be to enable APC on php.

    Also, on my now working installation, $wp_filter[‘all’] is a WP_Hook object instead of an array.

    Moderator t-p

    (@t-p)

    @innocuo

    Looking to file a bug?

    It’s easy to create a ticket on our bug tracker.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error: Call to a member function do_all_hook() on array in’ is closed to new replies.