Title: Error when enable it
Last modified: August 22, 2016

---

# Error when enable it

 *  [sirucato](https://wordpress.org/support/users/sirucato/)
 * (@sirucato)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/error-when-enable-it/)
 * Hi!, I have installed WP Super Cache and when I enable the plugin I get these
   errors in the header:
 * > Warning: file(/home/…/public_html/…/wp-content/wp-cache-config.php) [function.
   > file]: failed to open stream: No such file or directory in /home/…/public_html/…/
   > wp-content/plugins/wp-super-cache/wp-cache.php on line 1963
   > Warning: Invalid argument supplied for foreach() in /home/…/public_html/…/wp-
   > content/plugins/wp-super-cache/wp-cache.php on line 1964
 * Lines 1963 and 1964 are these:
 * > $lines = file($wp_cache_config_file);
   >  foreach($lines as $line) {
 * Any idea?
 * Thanks!
 * [https://wordpress.org/plugins/wp-super-cache/](https://wordpress.org/plugins/wp-super-cache/)

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

 *  [Leprekahn](https://wordpress.org/support/users/leprekahn/)
 * (@leprekahn)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-when-enable-it/#post-5214290)
 * I am having the exact same issue and posted it 2 days ago. Still waiting for 
   an answer. I cant log on to my site.
 *  [Chick81](https://wordpress.org/support/users/chick81/)
 * (@chick81)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-when-enable-it/#post-5214325)
 * I am having the exact same ISSUE! I can’t log in to my site to enabel this plugin
   that is causing the problem – Please help asap.
 *  [Bernardo Medeiros](https://wordpress.org/support/users/bemed/)
 * (@bemed)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-when-enable-it/#post-5214328)
 * Try deleting the plugin via ftp to log in
 *  [terryago](https://wordpress.org/support/users/terryago/)
 * (@terryago)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-when-enable-it/#post-5214329)
 * Try opening wp-config.php and replacing the line starting “`define('WPCACHEHOME'`”
   with:
 * `define('WPCACHEHOME', dirname(__FILE__) . '/wp-content/plugins/wp-super-cache/');`
 * Worked for me.

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

The topic ‘Error when enable it’ 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/)

 * 4 replies
 * 5 participants
 * Last reply from: [terryago](https://wordpress.org/support/users/terryago/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/error-when-enable-it/#post-5214329)
 * Status: not resolved