Title: Local copy shows white screen with errors &#8211; running on MAMP server
Last modified: January 8, 2019

---

# Local copy shows white screen with errors – running on MAMP server

 *  [tinatunasandwich](https://wordpress.org/support/users/tparkmedia/)
 * (@tparkmedia)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/local-copy-shows-white-screen-with-errors-running-on-mamp-server/)
 * (I submitted this yesterday but it’s was deleted for some reason.. so here we
   go again)
 * This is a local copy of a live site that I am trying to set up. Could I just 
   delete the plugin on my local copy? I don’t see how this plugin would benefit
   a local site?
 * If I do delete, where do I delete everything?
 * I have these errors showing on a white screen when I go to the site:
 *     ```
       Warning: include_once(/home1/myleiaco/public_html/leiainc/wp-content/plugins/wp-super-cache/wp-cache-phase1.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/leiainc/wp-content/advanced-cache.php on line 21
   
       Warning: include_once(): Failed opening '/home1/myleiaco/public_html/leiainc/wp-content/plugins/wp-super-cache/wp-cache-phase1.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php7.2.8/lib/php') in /Applications/MAMP/htdocs/leiainc/wp-content/advanced-cache.php on line 21
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Saša](https://wordpress.org/support/users/stodorovic/)
 * (@stodorovic)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/local-copy-shows-white-screen-with-errors-running-on-mamp-server/#post-11077521)
 * You should keep local installation because you sometime need to check cross compatibility
   with other plugins. Anyway, you can disable caching on dashboard (WPSC Settings),
   but keep WPSC activated. You could enable caching before copying changes to production
   server and test is everything works as should.
 * It could be an issue in `wp-config.php` because constant `WPCACHEHOME` should
   point to correct directory (which is probably different path for development 
   and production server).
 * Instructions for uninstall – [https://wordpress.org/plugins/wp-super-cache/#installation](https://wordpress.org/plugins/wp-super-cache/#installation).
 *  Thread Starter [tinatunasandwich](https://wordpress.org/support/users/tparkmedia/)
 * (@tparkmedia)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/local-copy-shows-white-screen-with-errors-running-on-mamp-server/#post-11079677)
 * I totally agree with you on keeping the local installation.
 * So regarding those errors, in `wp-config.php` I changed the constant `WPCACHEHOME`
   and is now defined as this: `define( 'WPCACHEHOME', '/wp-content/plugins/wp-super-
   cache/' )`, which is the correct path but the errors still show.
 *     ```
       Warning: include_once(/wp-content/plugins/wp-super-cache/wp-cache-phase1.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/leiainc/wp-content/advanced-cache.php on line 21
   
       Warning: include_once(): Failed opening '/wp-content/plugins/wp-super-cache/wp-cache-phase1.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php7.2.8/lib/php') in /Applications/MAMP/htdocs/leiainc/wp-content/advanced-cache.php on line 21
       ```
   
 *  [Saša](https://wordpress.org/support/users/stodorovic/)
 * (@stodorovic)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/local-copy-shows-white-screen-with-errors-running-on-mamp-server/#post-11081006)
 * Constant _WPCACHEHOME_ should contain absolute (full) path (eg. _/home/user/public\
   _html/wp-content/plugins/wp-super-cache/_). Maybe you could try to add _\_\_DIR\_\
   __ before (I’d guess that you have installed PHP >=5.3 ):
 *     ```
       define( 'WPCACHEHOME', __DIR__ . '/wp-content/plugins/wp-super-cache/' );
       ```
   
 * It should prepend “current” directory (where _wp-config.php_ is stored). Also,
   you need to check _wp-content/wp-cache-config.php_(`$cache_path`), but it’s possible
   that will automatically changed if you open WPSC settings (admin dashboard).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Local copy shows white screen with errors – running on MAMP server’ is
closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Saša](https://wordpress.org/support/users/stodorovic/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/local-copy-shows-white-screen-with-errors-running-on-mamp-server/#post-11081006)
 * Status: not resolved