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 12 years, 9 months ago by admin.
-
AuthorPosts
-
February 22, 2012 at 3:37 am #5617kevinvMember
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 #42188adminKeymasterUse this instruction to get your site up and running:
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 #42189kevinvMemberWe 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 #42190adminKeymasterI 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.
-
AuthorPosts
- You must be logged in to reply to this topic.