Title: [Plugin: WP Super Cache] Warning: glob()
Last modified: August 19, 2016

---

# [Plugin: WP Super Cache] Warning: glob()

 *  Resolved [Erunafailaro](https://wordpress.org/support/users/erunafailaro/)
 * (@erunafailaro)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-warning-glob/)
 * Since I upgraded to 0.8.5, I receive the follwing warnings in the section “Cache
   Contents”:
 * _Warning: glob() [function.glob]: Pattern exceeds the maximum allowed length 
   of 4096 characters in /www/htdocs/wp-content/plugins/wp-super-cache/wp-cache.
   php on line 1137_
 * _Warning: glob() [function.glob]: Pattern exceeds the maximum allowed length 
   of 4096 characters in /www/htdocs/wp-content/plugins/wp-super-cache/wp-cache.
   php on line 1137_
 * _Warning: glob() [function.glob]: Pattern exceeds the maximum allowed length 
   of 4096 characters in /www/htdocs/wp-content/plugins/wp-super-cache/wp-cache.
   php on line 1137_
 * _Fatal error: Maximum execution time of 30 seconds exceeded in /www/htdocs/wp-
   content/plugins/wp-super-cache/wp-cache.php on line 1136_
 * The buttons to clear the cache are no longer showing. Instead, I see these warnings.
   Please advice!
 * I am using PHP 5.2.6. The Apache module “mod_headers” is not installed on my 
   webspace.
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

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

 *  [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-warning-glob/#post-914090)
 * Erunafailaro – take a look in wp-content/cache/supercache/ and in the sub directories.
   I’m guessing this means you have *loads* of cached files for some reason. The
   glob() command is falling over when it tries to read in the whole directory in
   one go!
 *  Thread Starter [Erunafailaro](https://wordpress.org/support/users/erunafailaro/)
 * (@erunafailaro)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-warning-glob/#post-914138)
 * When I turn the cach off completely, I can delete its contents. When I activate
   the cache afterwards, I instantly get the same warnings again. At that moment,
   the cache is still empty.
 *  Thread Starter [Erunafailaro](https://wordpress.org/support/users/erunafailaro/)
 * (@erunafailaro)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-warning-glob/#post-914149)
 * The warnings do always show up, it does not matter if `wp-content/cache/supercache/`
   is empty or filled with cache-files.
 *  [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-warning-glob/#post-914150)
 * Crazy, the only result for a search on that error message is this page. [http://www.google.ie/search?q=%22glob()+%5Bfunction.glob%5D%3A+Pattern+exceeds+the+maximum+allowed+length+of+4096+characters%22&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a](http://www.google.ie/search?q=%22glob()+%5Bfunction.glob%5D%3A+Pattern+exceeds+the+maximum+allowed+length+of+4096+characters%22&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a)
 * Without quotes, I got the php source code [http://gcov.php.net/PHP_5_2/lcov_html/standard/dir.c.gcov.php](http://gcov.php.net/PHP_5_2/lcov_html/standard/dir.c.gcov.php)
   
   but that doesn’t tell me why it doesn’t work for you. Are there any strange non
   alphanumeric character in your directory structure?
 *  Thread Starter [Erunafailaro](https://wordpress.org/support/users/erunafailaro/)
 * (@erunafailaro)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-warning-glob/#post-914174)
 * The problem has its root-cause in the file-system of my webspace. There seems
   to be a recursive cycle in one of the subdirectories of wp-content/cache/supercache/.
 * This leads to an infinite loop during the traversal of the cache-directories.
 *  Thread Starter [Erunafailaro](https://wordpress.org/support/users/erunafailaro/)
 * (@erunafailaro)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-warning-glob/#post-914175)
 * I deleted the malformed directory. This solved the problem.

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

The topic ‘[Plugin: WP Super Cache] Warning: glob()’ is closed to new replies.

 * 6 replies
 * 2 participants
 * Last reply from: [Erunafailaro](https://wordpress.org/support/users/erunafailaro/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-warning-glob/#post-914175)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
