Title: cannot access protected method WP_Spider_Cache_Output::status_header()
Last modified: August 31, 2016

---

# cannot access protected method WP_Spider_Cache_Output::status_header()

 *  Resolved [jrfoell](https://wordpress.org/support/users/jrfoell/)
 * (@jrfoell)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-protected-method-wp_spider_cache_outputstatus_header/)
 * I just noticed my apache error log filled with PHP warnings regarding:
 * PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback,
   cannot access protected method WP_Spider_Cache_Output::status_header()
 * I noticed the status_header declaration is:
 * `protected function status_header( $status_header, $status_code = 200 )`
 * But it’s also being used as a filter in WP_Spider_Cache_Output::start()
 * [https://wordpress.org/plugins/wp-spider-cache/](https://wordpress.org/plugins/wp-spider-cache/)

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

 *  Plugin Author [John James Jacoby](https://wordpress.org/support/users/johnjamesjacoby/)
 * (@johnjamesjacoby)
 * [9 years ago](https://wordpress.org/support/topic/cannot-access-protected-method-wp_spider_cache_outputstatus_header/#post-9152406)
 * Sorry about that. I fixed this in a version not long after you noticed it.
 *  Thread Starter [jrfoell](https://wordpress.org/support/users/jrfoell/)
 * (@jrfoell)
 * [9 years ago](https://wordpress.org/support/topic/cannot-access-protected-method-wp_spider_cache_outputstatus_header/#post-9158211)
 * No worries John – I fixed it myself after reporting it. I’ll submit a pull request
   next time 🙂 Is this the spot? [https://github.com/stuttter/wp-spider-cache](https://github.com/stuttter/wp-spider-cache)

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

The topic ‘cannot access protected method WP_Spider_Cache_Output::status_header()’
is closed to new replies.

 * ![](https://ps.w.org/wp-spider-cache/assets/icon-256x256.png?rev=1534002)
 * [WP Spider Cache](https://wordpress.org/plugins/wp-spider-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-spider-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-spider-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-spider-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-spider-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-spider-cache/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 2 replies
 * 2 participants
 * Last reply from: [jrfoell](https://wordpress.org/support/users/jrfoell/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/cannot-access-protected-method-wp_spider_cache_outputstatus_header/#post-9158211)
 * Status: resolved