Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Error with WP Super Cache and Phase2.php

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Error with WP Super Cache and Phase2.php

Tagged: w3

  • This topic has 3 replies, 2 voices, and was last updated 13 years, 4 months ago by admin.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 22, 2012 at 3:37 am #5617
    kevinv
    Member

    So Tips and Tricks said to modify the code if I am using WP Super Cache. I included the modification steps below. I provided these steps to my webmaster. He performed the changes just as instructed. I can provide screenshots of the modified code if needed.

    Approximately 12 hours later, my site crashed and the page would only load “Fatal Error”

    The error was with the wp-content/plugins/wp-super-cache directory, wp-cache-phase2.php file line 95. Notice that this is Phase2.php. Not sure why the error would be with Phase2.

    Any input?

    Lastly, how is the Affiliate Plugin effected should the modification steps below not be done?

    Thank you ever so much for any input you are able to provide.

    -Kevin

    Modification Steps:

    In the wp-content/plugins/wp-super-cache directory, you will find the wp-cache-phase1.php file.

    Step1: Open the “wp-super-cache/wp-cache-phase1.php” file and search for the following line of code:

    if ( wp_cache_user_agent_is_rejected() )

    Step2: Once you find the line of code mentioned in step one, simply add the following block of code above that line:

    define(‘TIPS_AND_TRICKS_SUPER_CACHE_OVERRIDE’, ‘1’);

    if(isset($_COOKIE) || isset($_COOKIE) || isset($_COOKIE))

    {

    if ( isset( $wp_super_cache_debug ) && $wp_super_cache_debug ) wp_cache_debug( “wp super cache file override for Tips and Tricks HQ plugin.”, 5 );

    return false;

    }

    Step3: Save and upload the modified file to the WP Super Cache plugin directory and you are done.

    February 22, 2012 at 8:04 am #42188
    admin
    Keymaster

    Use this instruction to get your site up and running:

    https://support.tipsandtricks-hq.com/forums/topic/deactivating-a-plugin-via-ftp-when-you-dont-have-access-to-wp-dashboard

    Then try the modifican again making sure you are not missing some code or placing it in the wrong place.

    February 23, 2012 at 11:34 pm #42189
    kevinv
    Member

    We have done this twice now with the same problem. My webmaster works for a major Fortune 100 company doing this sort of thing so I trust that he put it in the correct spot.

    Can you please provide any more input? Why are we getting a fetal error with phase2.php on line 95?

    What are the drawbacks if this code is not inserted?

    Thank you kindly.

    February 24, 2012 at 3:52 am #42190
    admin
    Keymaster

    I know that this same code is being used by other users so not sure where the problem actually is but I have sent you an email to get site access so I can check it.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ