WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Error Zend on Gandi hosting (4 posts)

  1. liomar
    Member
    Posted 2 years ago #

    Fatal error: Internal Zend error - Missing class information for in /srv/data/web/vhosts/www.my-domain.fr/htdocs/wordpress/wp-content/plugins/wp-super-cache/wp-cache-base.php on line 5 Call Stack: 0.0002 635064 1. {main}() /srv/data/web/vhosts/www.my-domain.fr/htdocs/index.php:0 0.0004 635544 2. require('/srv/data/web/vhosts/www.my-domain.fr/htdocs/wordpress/wp-blog-header.php')

    Same error than here : https://bugs.php.net/bug.php?id=59298

    I am encountering this problem in the context of the WordPress Supercache
    plugin:
    http://wordpress.org/support/topic/supercache-internal-zend-error-wtf
    http://mytech.dsa.me/en/2011/08/09/apc-include_once_override-problem-
    solve/#comments

    PHP version 5.3.1, APC version 3.1.9

    The code in that file (wp-content/plugins/wp-super-cache/wp-cache-base.php) is as follows:

    if (!class_exists('CacheMeta')) {
            class CacheMeta { //PHP FATAL ERROR APPEARS WITH THIS LINE REFERENCE
                    var $dynamic = false;
                    var $headers = array();
                    var $uri = '';
                    var $post = 0;
            }
    }

    It is weird because I have another blog with same configuration, and it's working fine...

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry, it's not something I can fix as it's a zend/php problem. :(

  3. Simon Wheatley
    Code for the People
    Posted 2 years ago #

    I found this line in php.ini, if you have access to such a thing, worked for me:

    apc.filters = wp-cache-base

    The problem seems to be related to APC/PHP/Zend or some interaction of the three.

  4. Simon Wheatley
    Code for the People
    Posted 2 years ago #

    BTW, my understanding of that apc.filters directive is that APC (which is a way of speeding up PHP) will not cache files with names matching 'wp-cache-base', but all other files in that request will be added to the opcode cache. From the APC config manual:

    A comma-separated list of POSIX extended regular expressions. If any pattern matches the source filename, the file will not be cached. Note that the filename used for matching is the one passed to include/require, not the absolute path. If the first character of the expression is a + then the expression will be additive in the sense that any files matched by the expression will be cached, and if the first character is a - then anything matched will not be cached. The - case is the default, so it can be left off.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic