WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Fatal Error updating database in 3.4 (26 posts)

  1. gavintyte
    Member
    Posted 1 year ago #

    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.

    http://www.uplymechurch.org.uk/

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    replaced the root files, wp-content (not overwriting my own content files), wp-admin and wp-includes via FTP

    No. Download a fresh copy of WordPress and follow the instructions in http://codex.wordpress.org/Upgrading_WordPress

  3. gavintyte
    Member
    Posted 1 year ago #

    That's what I did. I did a fresh download of 3.4 and FTPd up the fresh files.

    BTW: I just went in to phpMyAdmin and deactivated the plugins. No change.

  4. gavintyte
    Member
    Posted 1 year ago #

    (I deleted all the files on the server before uploading the new files)

  5. rachellucie
    Member
    Posted 1 year ago #

    @esmi that page you link to has nothing on... where can we find it, please?

  6. gavintyte
    Member
    Posted 1 year ago #

    @rechellucie - there is just an s missing off the end of the URL

  7. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    FTPd up the fresh files

    No. Please read the page at the link I posted above. Do not over-write the old files & folders.

  8. gavintyte
    Member
    Posted 1 year ago #

    I did not overwrite the old files and folders. I deleted the old files and folders and uploaded the new files.

  9. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Link corrected.

  10. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    @gavintyte: Please try again using a fresh download of WordPress. You appear to have a corrupted file.

  11. gavintyte
    Member
    Posted 1 year ago #

    Okay - I will do so again. Third time lucky. :)

  12. gavintyte
    Member
    Posted 1 year ago #

    No, I'm afraid that didn't work.

    I still get the message:

    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

    when trying to do a Database Update.

  13. gavintyte
    Member
    Posted 1 year ago #

    Hmmm. Now the front end site menus won't link to any pages.

  14. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Warning: require_once(add-link-to-facebook-widget.php) [function.require-once]: failed to open stream: No such file or directory in /home/uplymech/public_html/wp-content/plugins/add-link-to-facebook/add-link-to-facebook.php on line 46

    That error on your site won't help. Try resetting the plugins folder by PhpMyAdmin.

  15. gavintyte
    Member
    Posted 1 year ago #

    I tried that earlier but it didn't seem to make any difference. I will try again in the morning (need to sleep now - been up since 4am this morning). Thanks.

  16. gavintyte
    Member
    Posted 1 year ago #

    I have set the Active Plugins in phpMyAdmin to a:0:{} and have removed the plugin folders too. Still no change.

    I have tried another delete files from server and re-upload via FTP - still getting the same error on Updating Database.

    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

  17. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    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?

  18. gavintyte
    Member
    Posted 1 year ago #

    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.

    ----

  19. gavintyte
    Member
    Posted 1 year ago #

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

  20. gavintyte
    Member
    Posted 1 year ago #

    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.

  21. gavintyte
    Member
    Posted 1 year ago #

    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)

  22. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Excellent! :-) Any outstanding problems?

  23. gavintyte
    Member
    Posted 1 year ago #

    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.

  24. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    You're welcome. I'm glad you finally got it sorted. :-)

  25. madeiraislanddirect
    Member
    Posted 1 year ago #

    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

  26. webaware
    Member
    Posted 1 year ago #

    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()).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.