Viewing 15 replies - 1 through 15 (of 41 total)
  • Thread Starter hunt4freebies

    (@hunt4freebies)

    I want to be more specific. Here is excatlty what is happening.

    If I am logged in as an Admin and I do a Search From the WordPress Admin Bar and I go into a totally different browser and I go to my site and page 2 and every page after is redirecting to the “Search Page” ( https://hunt4freebies.com/?s=Kindle )

    It also has redirected to a URL that is a drafted (Non puplished) post, returning a 404 error.

    With WP Super Cache disabled this is NOT happening.

    Michele

    Hi Michele,

    Does that happen every time? That’s really useful. I’ll try to figure out why it’s happening. Meanwhile could you run the debug system in the plugin and do that search and reload in another browser and post a link to that debug log for me?

    Thanks.

    Thread Starter hunt4freebies

    (@hunt4freebies)

    Hi Donncha,
    Yes this happens all the time, however sometimes it may take a little bit of time to come up. Once I clean the cache it goes away.

    This time I did a search on toothpaste. Here’s the link that came up on page two: https://hunt4freebies.com/page/2/?s=toothpaste

    And here is a link to the Debug log.
    https://hunt4freebies.com/wp-content/uploads/2012/01/1f96573706bbf7a7f1754a94cd9ef2ae.txt

    Thanks so much for your help and time.

    Michele

    Thank you! That is weird as that should not happen. ??

    This will help track down the bug though, I hope!

    Can you download wp-cache-phase2.php and upload it to your plugins/wp-super-cache/ folder? It should overwrite a file of the same name there. I added an extra check which should stop the plugin creating supercache files for searches, I hope!

    Thread Starter hunt4freebies

    (@hunt4freebies)

    Hi Donncha,
    Where do I download this from? Or do I just copy this after I open the page?

    Thank you!

    Thread Starter hunt4freebies

    (@hunt4freebies)

    Hi Again,
    My bad I over wrote the PHP file. I will let you know what happens.

    Thanks again for all your help.

    Michele

    Thread Starter hunt4freebies

    (@hunt4freebies)

    Hi Donncha,
    I just wanted to give you an update. I did what you said and so far I have not had the problem at all!! I will keep testing the site just be sure it’s 100% okay, but so far so good.

    I can’t thank you enough for your help, you are a Godsend.

    Kindest Regards,
    Michele

    I hope you don’t see that bug again. Can you post in 24 hours again if you haven’t seen it happen again?

    The bug is caused by PHP itself, not the plugin or WordPress, so it’s really hard to track down. I simply added another (different) check that didn’t rely on the bits that PHP literally destroyed!

    Michele – can you update that wp-cache-phase2.php again? I added another debug line that will print a warning, “wp_cache_ob_callback: WARNING! $wp_query not defined.” when these problems occur.

    I also fixed a small bug in my last fix – your blog is using legacy caching right now but if you update then it’ll use supercache files again.

    Thanks again for your help tracking this down!

    Thread Starter hunt4freebies

    (@hunt4freebies)

    Hi Donncha,
    Thank you so much I just now added that line of code.

    Do you think this could be a result of how PHP and Apache is setup on my server?

    Again I can’t thank you enough for your help and time.

    Michele

    It’s not your server, this happens on any PHP5 server randomly but not as often as you’re seeing it. It’s just how PHP is built unfortunately. There are hacks I can do to get around it but I would really like to know if you get that “$wp_query not defined” message as that will be solid proof that it’s PHP interfering.

    Thread Starter hunt4freebies

    (@hunt4freebies)

    I noticed this happend less frequently when I was running version 5.3.8 PHP. Then the hosting company switched me back to 5.3.6 and this is when the problem would happen all the time.
    What version of PHP5 would you recommend?

    I will keep you updated with this. And if there is anything I could do to help more just let me know.

    Thank you again,
    Michele

    It’s not really practical to recommend a version of PHP as it’s always better to use the latest version (for bugfixes and security fixes). We just have to live with the oddness of whatever comes along unfortunately. ??

    Donncha,

    After a looong long time (months) searching across the internet, I’ve found this topic.

    We use PHP 5.2.x in all of our servers and this trouble always happened in some big blogs.

    I’ll use this wp-cache-phase2.php and test it.

    Thanks

Viewing 15 replies - 1 through 15 (of 41 total)
  • The topic ‘[Plugin: WP Super Cache] My Page 2 is randomly redirecting to other posts’ is closed to new replies.