WordPress.org

Ready to get started?Download WordPress

Forums

Batcache
PHP Notices for undefined 'status_header' and 'query' (5 posts)

  1. Weston Ruter
    Member
    Posted 1 year ago #

    I am getting PHP notices about $batcache->status_header and $batcache->query not being defined. If I add array( 'status_header ' => false, 'query' => array() ) to be $batcache config, then these errors go away. These keys should be declared in the class definition. The notices get generated on:

    117: 'status_header' => $this->status_header,
    248: 'query' => $batcache->query,

    http://wordpress.org/extend/plugins/batcache/

  2. Alan Delval
    Member
    Posted 1 year ago #

  3. Weston Ruter
    Member
    Posted 1 year ago #

    @Alan: Why? The one on the plugin directory was updated as late as today (2012-12-11), but the one you link to has not been touched in 7 months?

  4. Alan Delval
    Member
    Posted 1 year ago #

    Because it worked for me. :)

    but, both plugins work.

    Try using http://wordpress.org/extend/plugins/apc/ as object cache, with batcache.

    WP/wp-content/object-cache.php

  5. Weston Ruter
    Member
    Posted 1 year ago #

    It's not a question of it not working. It does work. It's just it generates PHP Notices, which indicates some code that needs to be tightened up.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags