WordPress.org

Ready to get started?Download WordPress

Forums

Upgrade to 3.1 - wp_cache_get() issue (32 posts)

  1. WWDay3
    Member
    Posted 3 years ago #

    Did the auto upgrade to 3.1

    Immediately got the following error

    Fatal error: Call to undefined function wp_cache_get() in /home/content/*********************/wp-includes/functions.php on line 336

    Nothing works. Will attempt to roll back. Hopefully not a problem.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Your upgrade did not complete successfully. Try:
    - switching to the Twenty Ten theme by renaming your current theme's folder in wp-content/themes using FTP or whatever file management application your host provides. You may need to access /wp-login.php to get this to kick in fully.

    - resetting the plugins folder by FTP or phpMyAdmin.

    - re-running the upgrade manually.

  3. WWDay3
    Member
    Posted 3 years ago #

    It seems to be one of my plugins that I cannot do without. So, is there a way for me to cleanly go back to the prior version?

  4. hmemcpy
    Member
    Posted 3 years ago #

    Hi, I'm having the same issue after upgrading to 3.1. I've disabled all plugins as suggested, and I have TwentyTen as the only theme.

    The one "unusual" thing I have is the WP-HIVE plugin to support multiple domains with single install.

    I get the exact error with the exact line: Fatal error: Call to undefined function wp_cache_get() in /public_html/blog/wp-includes/functions.php on line 336

    Any ideas?

  5. wluby
    Member
    Posted 3 years ago #

    I had the same problem and was able to get back in by resetting the plugins folder as linked above, but if I try to revert I receive the error again. I am also running WP-Hive, so I'm curious what other people are experiencing.

  6. wluby
    Member
    Posted 3 years ago #

    I've been able to verify that WP-Hive is at the very least one of the culprits, and that's even without activating it. Just moving the Hive folder into the plugin folder will cause this error.

  7. Wirta
    Member
    Posted 3 years ago #

    Hi,

    I'm having the same problem and indeed something went terribly wrong with WP Hive. I have tried to restore older version without any luck. I can enable my main site by renaming or moving WP-Hive plugin folder but that doesn't help me getting my other sites back up.
    Anyone using IRC? we could try to sort this out ASAP.

    -Wirta

  8. It's a problem with the WP Hive plugin. Please contact the plugin author.

    It seems like the plugin calls a function too early.

  9. Wirta
    Member
    Posted 3 years ago #

    Too bad the plugin creator gave up the work recently... :/

  10. saif270
    Member
    Posted 3 years ago #

    The plugin creator has quit. A lot of users are having this problem and for those who do use the wp-hive plugin, it is a crucial plugin to have.

  11. Android63
    Member
    Posted 3 years ago #

    I had exactly the same problem and also narrowed it down to wp-hive.

    It's a shame cos it's a great plugin :(

    Does anyone know of a suitable alternative to wp-hive? Preferably one that's supported? Or maybe someone knows how to correct it...

  12. alex keuano
    Member
    Posted 3 years ago #

    just download the previous version (3.0.5) and replace 3.1 with it via ftp. it works.

  13. Android63
    Member
    Posted 3 years ago #

    Alex, Did you mean version 0.6.0? I see no reference to version 3.x of wp-hive

  14. alex keuano
    Member
    Posted 3 years ago #

    no. forget about wp hive. sad but it's dead. i meant downgrading wordpress in order to make the sites still work anyway until a better solution is found. no changes in db were made during the update so everything will be ok.

  15. sallam
    Member
    Posted 3 years ago #

    those who use wp-hive cannot do without it.
    The problem can easily be solved by going back to wordpress 3.05
    You need to download it, then upload it by ftp, then extract its content.
    Then move your:

    • wp-config and
    • htaccess files.
    • from the current location to the "wordpress" new folder.
      You also need to move 4 folders in wp-content folder:

    • plugins
    • themes
    • uploads
    • wp-hive

    then rename the extracted folder to the name of your site, or public_html if its in your root.

  16. poimenJohn
    Member
    Posted 3 years ago #

    I fixed this problem with wp-hive and now have it working with WP 3.1. I modified two wp-hive files.
    db.php (in the wp-content folder)

    if ( ! defined('ABSPATH') ) die("Hmmm...");
    //require_once( ABSPATH . WPINC . '/wp-db.php' );
    if ( ! defined( 'WP_PLUGIN_DIR' ) )
        define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
    global $wpdb;
    if ( !isset( $wpdb ) )
        $wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
    if ( file_exists(WP_PLUGIN_DIR . '/wp-hive/do-prefix.php'))
        require_once( WP_PLUGIN_DIR . '/wp-hive/do-prefix.php');

    do-prefix.php (in the wp-hive plugin folder)

    Commented out two function calls in the last few lines:

    //wphive_force_plugin_active();
    
    // Check if this is a fresh install and fix Siteurl for proper redirect
    //wphive_siteurl_for_install($wphive->current_site->path, $table_prefix, $orig_hostname, $wphive->current_site->host);

    I realize more changes are needed to add and initialize new sites, but at least this works with existing installations.

  17. saif270
    Member
    Posted 3 years ago #

    Great stuff poimenJohn but I think most of us need to use it going forward so we need to find a way to keep on adding and initializing new sites

  18. Android63
    Member
    Posted 3 years ago #

    Thanks for the interim solutions guys. Now, we can either stay with WordPress 3.05 or make some changes to the wp-ive code. At least that solves the immediate problem.

    Longer term, I wonder if there's anyone willing to take over wp-hive. If it's critical to many people, maybe there's enough interest to raise some donations to make it worthwhile putting in the time and effort.

    Just a thought...

  19. poimenJohn
    Member
    Posted 3 years ago #

    I know what's wrong and what needs to be done to get it working with WP 3.1. It's not a hard fix.

    But it's a long way from posting a patch here and distributing a fully tested plugin and maintaining it for the future.

    I'm thinking about it.

    But in the mean time, next week I will post a more complete fix for WP 3.1 that will allow new sites to be added.

    J

  20. mwzd
    Member
    Posted 3 years ago #

    J, the fix posted above worked perfectly and all sites are recovered.

    Looking forward to your next update as well,

    Thanks!

  21. NewThought1
    Member
    Posted 3 years ago #

    I recently upgraded to 3.0.5 and my traffic has disappeared. I was averaging over 400 views a day and since the upgrade my traffic stopped and when I attempt to submit a permalink to my Blog Carnival or Digg I receive the message that the URL is unable to be found. My blog is http://newthoughtgeneration.com

  22. poimenJohn
    Member
    Posted 3 years ago #

    After doing some testing, I believe wp-hive works fine with the modifications above. I had no problem adding new sites.

    Please let me know if you find a problem. I'll try to help.

  23. ikailo
    Member
    Posted 3 years ago #

    Can someone please test this version?

    http://downloads.wordpress.org/plugin/wp-hive.0.6.2.zip

    Once I get confirmation that it works with 3.1 and 3.0.5, I will tag it as stable.

  24. hmemcpy
    Member
    Posted 3 years ago #

    @ikailo

    It works in both! Thank you so much for fixing this, I know you're not developing the plugin anymore, but it's an amazing one, much better than anything else that's available!

    Thanks again!

  25. alex keuano
    Member
    Posted 3 years ago #

    thanks ikailo for your return!

  26. Android63
    Member
    Posted 3 years ago #

    Thanks very much ikailo.

    I installed the updated version without any problems. I only have one site at the moment, so I can't comment on its functionality until I add some more - which I plan to do in the next few weeks.

    Great work!

  27. saraar
    Member
    Posted 3 years ago #

    It works on WP 3.1.1 and no problems so far.

    Thank you ikailo.

  28. saraar
    Member
    Posted 3 years ago #

    Unfortunately I see another error with WP Hive 0.6.2 on WP 3.1.1:

    Fatal error: Call to a member function suppress_errors() on a non-object in /home/www/blog/wp-content/plugins/wp-hive/includes/class.wphive.php on line 69

  29. saraar
    Member
    Posted 3 years ago #

    The error shown in previous email is solved at least for now. I updated to WP Hive 0.62 but I forgot to also copy the file db.php to wp-conent

    /wp-content/plugins/wp-hive/db.php

    to

    /_ww2_/wp-content/db.php

  30. saraar
    Member
    Posted 3 years ago #

    /_ww2_/wp-content/db.php

    should be
    /wp-content/db.php

Topic Closed

This topic has been closed to new replies.

About this Topic