WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Problems since updating to latest version (32 posts)

  1. sebastienpage
    Member
    Posted 2 years ago #

    The plugin has been working wonderfully for a long time but since I updated to the latest version 1.0, I am experiencing a few issues on my site http://www.idownloadblog.com/

    Problems don't appear to affect the front end of the site, so that's definitely a plus, but it affects what we do in the admin panel.

    Sometimes, when trying to create/edit/save a new post, it just won't do anything. It just takes forever to load and don't go anywhere, sometimes returning an error. This is for example an error it returned today http://cl.ly/2B210w2Q431H471k3L0O

    Looking at the error logs, I see this problem:

    [14-Dec-2011 14:09:55] PHP Fatal error: Call to undefined function wp_suspend_cache_addition() in /xxxxxxxxxx/www.idownloadblog.com/web/content/wp-includes/cache.php on line 288
    [14-Dec-2011 14:09:55] PHP Fatal error: Call to undefined function wp_suspend_cache_addition() in /xxxxxxxxxx/www.idownloadblog.com/web/content/wp-includes/cache.php on line 288
    [14-Dec-2011 14:09:56] PHP Fatal error: Call to undefined function wp_suspend_cache_addition() in /xxxxxxxxxx/www.idownloadblog.com/web/content/wp-includes/cache.php on line 288

    The error timestamp is exactly the time the error happened, so it's definitely linked together.

    The problem just happens randomly. It will work a minute, and not the next one. Error appeared on Safari, Chrome, and Firefox.

    This is my set up:

    Advanced: http://cl.ly/160F1o2A1i3d0w1B1Q0t
    CDN: http://cl.ly/3I2t2B2M1I0y0W0T0M0a
    Preload: http://cl.ly/1Q1O3s1t47020m1u3o12

    Site hosted on Rackspace Cloud Sites.

    Any advice? Thank you in advance :)

    Sebastien

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Those errors aren't wp-super-cache errors, they're in core WordPress files. I'm not sure what would cause those problems, sorry.

  3. sebastienpage
    Member
    Posted 2 years ago #

    I understand. But I never had such a problem before updating to 1.0. It's been working flawlessly until then. Do you have any suggestion?

  4. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    You could try the last version, it's on the "Other Versions" page off the plugin homepage here. Check if the errors go away.

    Also try to corrolate the errors with specific requests to your webserver to see what caused them.

  5. sebastienpage
    Member
    Posted 2 years ago #

    Thank you for the reply. Since I didn't have any problems with the previous version, would you recommend downgrading SuperCache to that previous version?

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 2 years ago #

    Donncha: There may be a super-cache problem new to WP 3.3. I might be wrong though.

    advanced-cache.php calls wp-cache-phase1.php.

    wp-cache-phase1.php appears to use the Object Cache.

    In WordPress 3.3, the add() function of the WP_Object_Cache class got this added to it:

    if ( wp_suspend_cache_addition() )
    	return false;

    The wp_suspend_cache_addition lives in wp-includes/functions.php, which is loaded *after* the advanced-cache.php file is called (in wp-settings.php). Thus, trying to add anything the object cache at this point will cause the error being reported.

    This could be a core bug or oversight too. Not sure.

    Edit: Looking closer, this may only occur when an external object cache is being used (wp-content/object-cache.php exists), since you're manually loading it there if it's available. Weird combination of circumstances?

  7. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Otto - thanks for checking that out. Hopefully I'll find some time to look into it tomorrow. One way around this may be to use the "late init" feature but then all of WordPress gets loaded before PHP serves a cached page.

  8. sebastienpage
    Member
    Posted 2 years ago #

    All this sounds like Chinese to be. I forwarded the info to my WP developer and I'm sure she'll make good use of this info.

    In the meantime, I hope it's just a SuperCache problem that will be easily fixed.

    What is strange though is that the same problem happened with W3 TotalCache. Is it the same problem?

    Thanks Otto and Donncha for the help.

  9. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Sebastienpage - it's not a Supercache problem unfortunately. It's a WordPress problem that was introduced in 3.3 :(

  10. sebastienpage
    Member
    Posted 2 years ago #

    Hopefully it will be fixed it the next WP update then because I can't use SuperCache right now. Using HyperCache works, but it's not nearly as efficient as SuperCache.
    Thank you

  11. marsili.us
    Member
    Posted 2 years ago #

    You said, "It's not a Supercache problem unfortunately. It's a WordPress problem that was introduced in 3.3." As an Oracle developer, I sometimes encountered cases in which a change in the Oracle RDBMS software "broke" one of my procedures or scripts. Oracle software upgrades were infrequent and, in any case, I judged I couldn't control whether Oracle, Inc., would eventually make a change that would restore the operation of my broken procedure. So I just made little adjustments in my own code that would restore the procedure to usability in the new circumstances.

    I don't know whether this case involving WP SuperCache and WordPress 3.3 is sufficiently similar to warrant comparison. Maybe in this case, there seems to be simply nothing you can do, or maybe there seems to be nothing you can do in the time you have available. Also, I do keep in mind that WP SuperCache is "free ice cream" and that past benefits don't entitle us to future benefits. However, if you can reasonably make some change in WP SuperCache 1.0 that will allow it to work with WordPress 3.3, those of us who have faced similar problems in our own work as developers will be able to appreciate that your finding and implementing a solution doesn't imply your having been to blame for the problem in the first place. And we and the rest will be grateful for your continuing help.

  12. OC2PS
    Member
    Posted 2 years ago #

    Hear, hear!

  13. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    marsili.us - I will look at the problem but there may be little I can do as the object cache is used by many parts of WP. I don't even know yet where it's getting called that causes this problem.

  14. sebastienpage
    Member
    Posted 2 years ago #

    Downgraded back to WP 2.9. Downgraded version of SuperCache as well. Everything works as good as ever :)

  15. tryminenow
    Member
    Posted 2 years ago #

    I know SuperCache and TotalCahe have some nice features but I ended up installing Hyper Cache Extended and have not had any problems. WP-Supercache broke once for me about a year ago. I may be using a couple of extra plugins to make up for it but I rest easier at night.

  16. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    tryminenow - give the next stable release a go, I think you'll be pleasantly surprised at what has changed in a year!

  17. tryminenow
    Member
    Posted 2 years ago #

    Well that depends entirely on the site, the Theme your using and the structure of the plugin. This a brief explanation on caching and how it can affect your site. This was my site at the time and I don't like to risk change when I have a cart installed with everything working. http://www.youtube.com/watch?v=J3hDvNzr88s&list=UU-xDtk0N4cc_u3k0nJZrtnw&index=3&feature=plcp

  18. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    sebastienpage - do you have an external object cache installed? Is there a file called wp-content/object-cache.php installed on your server?

  19. tryminenow
    Member
    Posted 2 years ago #

    I have a motto Donncha....if it ain't broke don't try and fix it ;)

  20. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    If you're still seeing this "undefined function" error, try checking the "Late init. Display cached files after WordPress has loaded. Most useful in legacy mode." box on the Advanced Settings page. That should help.

    If you're using mod_rewrite mode then cached pages will load just as fast as before.

  21. bradenmikael
    Member
    Posted 2 years ago #

    I tried the dev. version again, I still get the white screen in the super cache setting screen. Cannot go further with it.

  22. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    bradenmikael - that's some sort of PHP error. Check your PHP error log and uncomment the error_reporting() line in wp-cache-phase1.php please. It will really help if you can do that.

  23. thinkwired
    Member
    Posted 2 years ago #

    Is this still an issue? Can I upgrade to wordpress 3.3.1 and just leave wp super cache as 0.9.9.9? Or is the issue with all versions of wp super cache?

  24. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    thinkwired - it's an issue for a tiny minority of users and appears to be a WordPress 3.3.1+WP Super Cache 1.0 problem. I haven't been able to fix it yet as I can't replicate it.

  25. docAkare
    Member
    Posted 2 years ago #

    Donncha
    Uploaded the Super Cache plugin, but got this error message.

    Fatal error: Cannot redeclare apache_request_headers() in /chroot/home/andreasb/andreasbeau.com/html/blog/wp-content/plugins/wp-super-cache/wp-cache.php on line 1543

    Any help welcome!

    docAkare

  26. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    That's bizarre docAkare - there's code around that which checks if the function exists before defining it!

  27. stopthepress
    Member
    Posted 2 years ago #

    Domncha,
    I also have some problems since the last update and I'm trying to fix it. However, I must confess that I don't understand well the meaning of all those options, so I prefer to left the default choices in order to stay in the safe side of the fence.
    What I like to know is whether the drop-in 'advanced-cache.php' was installed by WP Super Cache or by another cache plugin I previously installed and deleted.
    Thanks

  28. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    stopthepress - yes, that was installed by WP Super Cache! If you have any problems you can't fix please check the other threads on this forum or start a new thread!

  29. docAkare
    Member
    Posted 2 years ago #

    Sorry, Donncha. I'm not a programmer. So what can I do?

    Thanks,
    docAkare

  30. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    docAkare - I don't know. Uninstall the plugin and install it again perhaps? If you can, search your plugins for the command apache_request_headers to see if it's defined elsewhere. Are you using APC or some PHP opcode cache? That might have caused this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic