• Resolved gavintyte

    (@gavintyte)


    Hello

    WordPress has been updated! Before we send you on your way, we have to update your database to the newest version.

    I click on Update WordPress Database and I get:

    Fatal error: Call to undefined function wp_cache_add_non_persistent_groups() in /home/uplymech/public_html/wp-includes/class-wp-theme.php on line 177

    —-

    The site continues to operate correctly, just the admin panel I cannot access.

    —-

    I have:

    1) Downloaded the latest release and replaced the root files, wp-content (not overwriting my own content files), wp-admin and wp-includes via FTP
    2) Removed all plugin directories via ftp.
    3) Removed my theme directory (leaving only Twenty11 althought my site didn’t seem to resort to this theme – I got just a blank page)
    4) Emptied my browser cache.
    5) Checked any known conflicts with plugins and themes on the masterlist.

    Now a bit stumped. In the past doing an upload via FTP usually did the trick.

    https://www.uplymechurch.org.uk/

Viewing 10 replies - 16 through 25 (of 25 total)
  • It still seems to you are missing at least 1 core file: wp-includes/cache.php Are you sure you are uploading everything? Are you downloading a fresh copy of WordPress from here each time?

    Thread Starter gavintyte

    (@gavintyte)

    Yes. The file cache.php is there in wp-admin/includes.

    —-

    I’ve checked it and it appears to be defining the function… e.g.

    function wp_cache_add_non_persistent_groups( $groups ) {
    // Default cache doesn’t persist so nothing to do here.
    return;
    }

    It has permissions set to 644.

    —-

    Thread Starter gavintyte

    (@gavintyte)

    I will download, delete and re-upload again – 5th time!

    Thread Starter gavintyte

    (@gavintyte)

    Okay – getting somewhere. I deleted everything in my content folder (pretty much) and the install database is now successful. I will now try and re-populate the content.

    Thread Starter gavintyte

    (@gavintyte)

    None of the menu links worked after install. So I went to permalinks and reset the permalinks settings. They menus now work.

    I will now try and re-install plugins. Still not clear why this didn’t work. The only thing I did different was to completely remove the plugins folder and removing everything but my theme from the content folder. Then the updating of the database worked (even though there were no plugins in it)

    Excellent! ?? Any outstanding problems?

    Thread Starter gavintyte

    (@gavintyte)

    Thanks – I don’t think so (even though I’m not clear why it worked). I’m going to add the plugins back in one by one. I’ll close the topic. Thanks esmi.

    You’re welcome. I’m glad you finally got it sorted. ??

    Similar problem here after WP insisted on a database upgrade after 3.4.1 installed. Tried everything above. Turned off plugins in phpmyadmin. Increased php memory (recursive). Googled this for days now and run out of ideas. Still no access to admin panel.
    Latest message reads:Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 35 bytes) in /data01/pcbgrp/public_html/madeiraislanddirect.com/blog/wp-includes/wp-db.php on line 1339.
    At other times I have had the messageFatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 56 bytes) in /data01/pcbgrp/public_html/madeiraislanddirect.com/blog/wp-includes/wp-db.php on line 1343
    Also had WSOD until I downgraded back to 3.4

    The problem is that WP_Theme calls the (essentially plugable) function wp_cache_add_non_persistent_groups() without checking for its existence. It won’t be there if a caching plugin has been installed / activated and hasn’t implemented this function.

    If you are getting the error message that wp_cache_add_non_persistent_groups() is an undefined function, please disable all of your plugins, especially any caching plugins.

    Probably the code in WP_Theme should be changed to check for this function before calling it (and its mate, wp_cache_add_global_groups()).

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Fatal Error updating database in 3.4’ is closed to new replies.