Forums

[resolved] [Plugin: WP Super Cache] Warning: glob() (7 posts)

  1. Erunafailaro
    Member
    Posted 3 years ago #

    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/

  2. Donncha O Caoimh
    Member
    Posted 3 years ago #

    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!

  3. Erunafailaro
    Member
    Posted 3 years ago #

    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.

  4. Erunafailaro
    Member
    Posted 3 years ago #

    The warnings do always show up, it does not matter if wp-content/cache/supercache/ is empty or filled with cache-files.

  5. Donncha O Caoimh
    Member
    Posted 3 years ago #

    Crazy, the only result for a search on that error message is this page. http://www.google.ie/search?q=%22glob()+function.glob%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
    but that doesn't tell me why it doesn't work for you. Are there any strange non alphanumeric character in your directory structure?

  6. Erunafailaro
    Member
    Posted 3 years ago #

    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.

  7. Erunafailaro
    Member
    Posted 3 years ago #

    I deleted the malformed directory. This solved the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic