rumandcodedotnet
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Internal Server/500 Errors – GoDaddy, WP 2.2.2, WP-Cache 2.1.1I’m having the same issue (WP 2.1.3, wp-cache 2.1.1, GoDaddy linux hosting), but only on every *other* page load. I’m trying to debug the php, with no luck. I’m starting to think that it’s somehow a hosting issue after all.
Forum: Plugins
In reply to: wp-cache vs. wp-quotesWow! R-ing TFM, what an idea….
So, I surrounded the function call with the mfunc tags, as shown. Didn’t work. Thought it might be because the function call in question might be pulling from a wordpress function which obviously won’t exist when pulling the page from a cache. I removed the WP functions, moved it to a separate file, and used the php include and mclude tags above. It works perfectly when wp-cache is off, but when wp-cache is enabled, I still get a server error 500 on every second refresh.
Here’s the funny part. Every refresh which DOESN’T cause an error seems to be working correctly. It does have a different tagline each time, and does have the comments at the bottom showing it was generated from the cache. If you want to see it in person, go check out the website which is my username.
code in question:
<!-- show random tagline (kept dynamic, so wp-cache won't break)--> <!--mclude random_tagline.php--> <?php include_once(ABSPATH . 'random_tagline.php'); ?> <!--/mclude--> <!--mfunc show_tagline()--> <?php show_tagline(); ?> <!--/mfunc--> <!-- end show random tagline -->