• I’m updating a number of sites to WP 4.6.1. My process for each is to update all the plugins and themes, and then I update WP itself. I do this every month so I’m never very far behind.

    For some reason, each site I’m updating right now is throwing this error after the files are updated:

    [03-Oct-2016 23:33:14 UTC] PHP Fatal error: Call to undefined function wp_cache_get() in /home/airassoc/airassociatesmo/wp-includes/option.php on line 1113

    I am not able to get the admin panel to load that point until I go in and completely disable the cache plugin. That includes the plugin folder itself as well as the individual files under /wp-content.

    One of the sites I was able to get the caching plugin re-activated after completing the WP updates successfully. On another I was not able to get it to re-activate for some reason, even after disabling to apply the updates successfully.

    It’s happening on every site I update with this plugin right now.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter angelleye

    (@angelleye)

    2 more sites followed the same exact pattern. I updated to 0.9.5.1 prior to updating WP to 4.6.1 and when I did that I wound up with the error mentioned.

    On this last site I just did, I went ahead and left the cache plugin on 0.9.4.1 and updated WP to 4.6.1 without any issues. Then I updated the cache plugin after that to 0.9.5.1 and it seems to be working fine.

    So the problem seems to happen with W3 Total Cache 0.9.5.1 updated before updating WP to 4.6.1.

    I just did this with 5 sites. 4 of them I ran into the problem because I updated W3TC prior to updating WordPress. Of those 4, 3 of them I was able to get W3TC activated again after successfully updating WordPress. 1 of them keeps giving me that error even after everything has been updated.

    Again, the last one I updated WordPress before updating W3TC and that seems to have worked just fine.

    Ashok

    (@bappidgreat)

    @angelleye, it’s always best practice to update all plugins and themes one by one, but of course after making sure that your wordpress is in latest version. This is because, if a plugin adds a function which is available in latest version of wordpress, in that case you will get a fatal error. So, always update wordpress first and then other things.

    I am not saying your issues are because of the same thing I explained above though. It’s good thing you have running all sites fine but one. Looking at the error it seems there are missing files in your wordpress installation.

    Would you please download the wordpress as zip, then extract it and upload everything except wp-content folder and wp-config.php to overwrite your current installation? Make sure you don’t upload wp-content folder and wp-config.php file. To stay safe you may want to take a full backup for your site first.

    Have a good day!

    Cheers
    Ash

    Thread Starter angelleye

    (@angelleye)

    Thanks for the response.

    The sites aren’t missing any files. We’re talking about 10 different sites now, and when I disable W3TC everything works fine on them. I have done 5 more sites now since these first ones I mentioned, and as long as I update WP first then it seems to be ok.

    On that note, what you said makes sense about updating WP before updating plugins, however, in this case I’m still a little bit confused because wp_cache_get() was introduced in WP as version 2.0.0. Based on what you’re saying the sort of thing I’ve been seeing should only happen if wp_cache_get() was introduced in the WP update that I hadn’t applied before updating a plugin that uses it.

    So still not sure why it’s happening, but I can tell you that it’s easily reproducible if you simply update W3TC to 0.9.5.1 prior to updating WP. 0.9.4.1 does not have this problem.

    Same issue on a site with W3 Total Cache plugin installed.
    Disabled plugin. Re-enabled. Problem went away.

    My issue I was copying some files from test to production where the plugins were already upgraded so that’s why I got a little out of sync. Simply disabling and re-enabling fixed it.

    I updated the plugin and tried to disable for some reason. Bummm, everything went down.
    I had to rename the w3-total-cache folder under the plugins directory to make the website work again. Is there any solution to restore the w3-total-cache? If I rename back the plugin directory then my site will go off again.
    I tried to delete the plugin and reinstall without any luck. It killed immediately my site.

    Thread Starter angelleye

    (@angelleye)

    If renaming the cache folder solves the problem then it sounds like something about the caching in general is what’s causing it. You’ll need to make sure to fine-tune W3 Total Cache to work well with WooCommerce, which would be something you’ll need to reach out to their support about.

    I personally like to use WP Rocket for caching because it’s already tuned out of the box for WooCommerce and it never causes any issues.

    I do not have WooCommerce plugin. It worked well until I tried to disable it. I removed w3-total-cache folder from the plugins the db.php as well then reinstalled the plugin and it works again.

    Thread Starter angelleye

    (@angelleye)

    Whoops, sorry, I didn’t even realize what plugin repo this was. I thought it was from one of my own. Sorry for the confusion.

    I ran into the same problem. I had to update the permalink settings after I fixed everything else. Now when I share my home page URL on Facebook I get this for my meta “Fatal error: Call to undefined function wp_cache_get() in /hermes/walnaweb10a/b2039/moo.ehrconcepts/wp-includes/option.php on line 1117”

    What do you think is causing this… I think its only on our homepage.

    ehrconcepts.com

    Thanks

    Thanks for the help I had the same issue and now it is fixed. It was definitely W3 Total Cache causing the issue. Every time I upgraded WordPress to 4.7 it would run halfway thru the updates and then choke on the database upgrade and throw this error

    PHP Fatal error: Call to undefined function wp_cache_get() in /wp-includes/option.php on line 1123, referer: /wp-admin/upgrade.php?step=upgrade_db

    I tried deactivating W3TC and upgrading but same result. Admin will not load. Frontend working normal but admin stuck and won’t load.

    As soon as I deleted /wp-content/w3tc-config/ everything started working again.
    I didn’t have to remove W3TC all I had to do was delete this one directory. After I got everything upgraded I turned W3TC back on and had no problems.

    Hero! this is solved the problem, while updating to 4.7.1

    Also fixed the issue by deleting the wp-content/w3tc-config/ folder, after that 4.7.2 asked to do a database upgrade.

    • This reply was modified 9 years, 4 months ago by Antonio.

    i am curious what all of you have in common that might be causing this problem. I wonder if all of you are using object caching and/or database caching with w3tc and when wordpress gets upgraded the process causes some wacky miscommunication to that type of cache leading to the fatal error. And so i wonder if w3tc isn’t disconnecting from it prior to the upgrade or not flushing it after the upgrade…if that even matters. Just me thinking aloud and likely isn’t the case.

    Asif Somy

    (@x_mysterious_x)

    in /wp-content/w3tc-config I deleted master.php and master-admin.php files and then activated plugin again. A new master file is generated in same folder and boom error is gone.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Call to undefined function wp_cache_get()..??’ is closed to new replies.