Title: WP Super Cache, problem with preload.
Last modified: August 19, 2016

---

# WP Super Cache, problem with preload.

 *  [Negatyf](https://wordpress.org/support/users/negatyf/)
 * (@negatyf)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-super-cache-problem-with-preload/)
 * Hi there,
 * I have one problem with WP Super Cache, when I want to preload supercache files
   I saw information, that in 10 seconds will start. I see that posts are caching,
   but in some moment it gaves me a error:
 * `Error: Your cache directory ($cache_path) did not exist and couldn’t be created
   by the web server. Check permissions.`
 * I don’t know what I have to do it. I changed permissions, give 777 chmod to wp-
   content, cache and didn’t help.

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

 *  Thread Starter [Negatyf](https://wordpress.org/support/users/negatyf/)
 * (@negatyf)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-super-cache-problem-with-preload/#post-1960738)
 * I somehow solved that problem. **I chose PHP caching**, and proload every post
   is now cached.
 * I hope I won’t have this same issue further.
 *  Thread Starter [Negatyf](https://wordpress.org/support/users/negatyf/)
 * (@negatyf)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-super-cache-problem-with-preload/#post-1960969)
 * I was hope, that everthing is okay, but it isn’t.
 * After chaning to PHP cache, seems to bo good, but after random time, if I go 
   to WP Super Cache page in administrator panel I can see error like in my first
   post.
 * Randomly is showing this error, after visiting WP Super Cache page.
 * Anyone can helps?
 *  [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-super-cache-problem-with-preload/#post-1960977)
 * Grab [wp-cache-phase1.php](http://svn.wp-plugins.org/wp-super-cache/trunk/wp-cache-phase1.php)
   and copy it into wp-content/plugins/wp-super-cache/ and overwrite the file that’s
   already there. Did that fix the problem?
 *  Thread Starter [Negatyf](https://wordpress.org/support/users/negatyf/)
 * (@negatyf)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-super-cache-problem-with-preload/#post-1960979)
 * Thank You very much, for posting here and helping me.
 * I replaced this file now, and in few hours I will write next post with results
   🙂
 *  Thread Starter [Negatyf](https://wordpress.org/support/users/negatyf/)
 * (@negatyf)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-super-cache-problem-with-preload/#post-1960991)
 * I tested your file, and this error is still displays.
    `Error: Your cache directory(
   $cache_path) did not exist and couldn’t be created by the web server. Check permissions.`
 * Now, after replaced my with your file I have additional error:
 *     ```
       Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/xxx/www/xxx.com/html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 68
   
       Warning: Invalid argument supplied for foreach() in /home/xxx/www/xxx.com/html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 176
   
       Warning: Invalid argument supplied for foreach() in /home/xxx/www/xxx.com/html/wp-content/plugins/wp-super-cache/wp-cache-phase1.php on line 454
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/www/xxx.com/html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php:68) in /home/xxx/www/xxx.com/html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 77
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/www/xxx.com/html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php:68) in /home/xxx/www/xxx.com/html/wp-content/plugins/wordpress-mobile-pack/plugins/wpmp_switcher/wpmp_switcher.php on line 506
       ```
   
 * Before uploading your files, I didn’t have this error on my pages, on post I 
   do not have them, only on pages.
 *  [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-super-cache-problem-with-preload/#post-1960992)
 * Did you clear the reject URI and rejected user agent settings on the admin page?
 * I’m afraid you’ll have to debug the plugin to find out why you’re getting that
   permissions error. Look for that string in the php files in the plugin and debug
   them.
 *  Thread Starter [Negatyf](https://wordpress.org/support/users/negatyf/)
 * (@negatyf)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/wp-super-cache-problem-with-preload/#post-1961001)
 * I do not clear the rejected URI, I have:
 *     ```
       wp-.*\.php
       index\.php
       ```
   
 *     ```
       wp-comments-popup.php
       wp-links-opml.php
       wp-locations.php
       ```
   
 *     ```
       bot
       ia_archive
       slurp
       crawl
       spider
       Yandex
       ```
   
 * Basic configuration after installtion, I didn’t change them.

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

The topic ‘WP Super Cache, problem with preload.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [Negatyf](https://wordpress.org/support/users/negatyf/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/wp-super-cache-problem-with-preload/#post-1961001)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
