The MU forums have moved to WordPress.org

(Plugin: WP Super Cache) Getting Errors all over (6 posts)

  1. worldblogosphere
    Member
    Posted 16 years ago #

    My WordPress MU site started getting many errors. The tech guys at my hosting company pointed out that the site was throwing off way too many processes during peak traffic times. This in turn cause database errors, 404 errors, and 500 errors. They suggested I install the WP Super Cache plugin to prevent this from happening.

    Now that I have it installed my users are getting many of the same errors. Plus there is a new thing happening. At the top of all pages we are now getting this error too.

    Warning: include(/home/blogamer/public_html/wp-content/plugins/wp-super-cache/wp-cache-base.php) [function.include]: failed to open stream: No such file or directory in /home/blogamer/public_html/wp-content/mu-plugins/wp-cache.php on line 49

    Warning: include() [function.include]: Failed opening '/home/blogamer/public_html/wp-content/plugins/wp-super-cache/wp-cache-base.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/blogamer/public_html/wp-content/mu-plugins/wp-cache.php on line 49

    I really need to resolve the errors my users are getting. Any help is greatly appreciated.

    I believe I have Super Cache installed properly.
    It is loaded into the MU-Plugins folder. I then moved the wp-super-cache.php file from its folder into the main MU-Plugins folder. I then copied and pasted the mod_rewrite stuff into the beginning of the htaccess.txt file. I then went and checked the on box in the settings.

    Thanks,
    Gene

  2. tim.moore
    Member
    Posted 16 years ago #

    You actually need to move the wp-cache.php file into your mu-plugins folder, not wp-super-cache.php. That's where the two PHP errors you posted are coming from.

  3. worldblogosphere
    Member
    Posted 16 years ago #

    Thanks for the response Tim.

    I actually mistyped/read and it was the wp-cache.php file I was moving. In checking this however I did come across the solution!

    Here is the solution for the next person that has this problem.

    You will notice in the errors I copied and pasted above the file it is trying to include is supposed to be in the "plugins" folder. Since with MU you need to put it all in the "mu-plugins" folder it causes this error. The file it is calling doesn't exist.

    Line 49 reads;

    include( WPCACHEHOME . '/wp-cache-base.php');

    You will need to change it to the following;

    include('wp-content/mu-plugins/wp-super-cache/wp-cache-base.php');

    That should clear up the error.

  4. worldblogosphere
    Member
    Posted 16 years ago #

    Sorry, that is line 49 in the wp-cache.php file.

  5. worldblogosphere
    Member
    Posted 16 years ago #

    OK, this is just strange.

    The above fix, fixed everything on the front end where readers are looking. However, when you go to the Admin area of all sites you get a similar error, with a third line of error added in.

    Warning: include(wp-content/mu-plugins/wp-super-cache/wp-cache-base.php) [function.include]: failed to open stream: No such file or directory in /home/blogamer/public_html/wp-content/mu-plugins/wp-cache.php on line 49

    Warning: include(wp-content/mu-plugins/wp-super-cache/wp-cache-base.php) [function.include]: failed to open stream: No such file or directory in /home/blogamer/public_html/wp-content/mu-plugins/wp-cache.php on line 49

    Warning: include() [function.include]: Failed opening 'wp-content/mu-plugins/wp-super-cache/wp-cache-base.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/blogamer/public_html/wp-content/mu-plugins/wp-cache.php on line 49

    Anyone have any ideas? I am very confused as to why it works on the front end, but not on the back end.

    Thanks,
    Gene

  6. tim.moore
    Member
    Posted 16 years ago #

    WP Super Cache is built by default to work with WPMU or WordPress Single User. I installed it on WPMU without modifying any code.

    In the readme for Super Cache, there are instructions on how to uninstall SuperCache. Follow those, then redownload SuperCache and start the install over again. When you upload SuperCache to your server, ensure that file permissions are set on all files as 0644 or 0755. The "failed to open" failures may be the cause of file permissions not allowing your server to read and execute the file.

About this Topic

  • Started 16 years ago by worldblogosphere
  • Latest reply from tim.moore