Title: Some errors
Last modified: March 25, 2019

---

# Some errors

 *  [jsg9in9nl](https://wordpress.org/support/users/jsg9in9nl/)
 * (@jsg9in9nl)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/some-errors-19/)
 * Get some errors when debug mode is on.
    Wordpress v5.1.1
 * WPSC v1.6.4
    Expert Mode = on mod-rewrite = on
 * Error log:
    [25-Mar-2019 21:45:18 UTC] PHP Notice: Undefined property: WP_Post::
   $filter in /domain.com/wp-includes/class-wp-post.php on line 342 [25-Mar-2019
   21:45:18 UTC] PHP Warning: Cannot modify header information – headers already
   sent by (output started at /domain.com/wp-includes/class-wp-post.php:342) in /
   domain.com/wp-includes/pluggable.php on line 1251 [25-Mar-2019 21:45:18 UTC] 
   PHP Warning: Cannot modify header information – headers already sent by (output
   started at /domain.com/wp-includes/class-wp-post.php:342) in /domain.com/wp-includes/
   pluggable.php on line 1254

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

 *  [Saša](https://wordpress.org/support/users/stodorovic/)
 * (@stodorovic)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/some-errors-19/#post-11356532)
 * PHP Warnings (_headers already sent by_) are consequence of first PHP notice.
   I didn’t notice something similar in my logs.
 * Could you provide back-trace for PHP notice? This gist will explain how to enable
   the back-trace in your website: [https://gist.github.com/jrfnl/5925642](https://gist.github.com/jrfnl/5925642)
 *  Thread Starter [jsg9in9nl](https://wordpress.org/support/users/jsg9in9nl/)
 * (@jsg9in9nl)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/some-errors-19/#post-11363502)
 * Hello,
    This is the back-trace log. Forget to say this errors show when deleting
   a page!
 *     ```
       [27-Mar-2019 18:17:21 UTC] Backtrace from warning 'Undefined property: WP_Post::$filter' at /domain.com/wp-includes/class-wp-post.php 342: /domain.com/wp-includes/class-wp-post.php 358 calling __get() | /domain.com/wp-includes/post.php 730 calling filter() | /domain.com/wp-content/plugins/wp-super-cache/wp-cache-phase2.php 2638 calling get_post() | /domain.com/wp-content/plugins/wp-super-cache/wp-cache-phase2.php 2741 calling wpsc_delete_post_archives() | /domain.com/wp-includes/class-wp-hook.php 286 calling wpsc_post_transition() | /domain.com/wp-includes/class-wp-hook.php 310 calling apply_filters() | /domain.com/wp-includes/plugin.php 465 calling do_action() | /domain.com/wp-includes/post.php 4446 calling do_action() | /domain.com/wp-includes/post.php 3852 calling wp_transition_post_status() | /domain.com/wp-includes/post.php 4028 calling wp_insert_post() | /domain.com/wp-includes/post.php 2988 calling wp_update_post() | /domain.com/wp-admin/post.php 249 calling wp_trash_post()
       [27-Mar-2019 18:17:21 UTC] PHP Notice:  Undefined property: WP_Post::$filter in /domain.com/wp-includes/class-wp-post.php on line 342
       [27-Mar-2019 18:17:21 UTC] PHP Stack trace:
       [27-Mar-2019 18:17:21 UTC] PHP   1. {main}() /domain.com/wp-admin/post.php:0
       [27-Mar-2019 18:17:21 UTC] PHP   2. wp_trash_post() /domain.com/wp-admin/post.php:249
       [27-Mar-2019 18:17:21 UTC] PHP   3. wp_update_post() /domain.com/wp-includes/post.php:2988
       [27-Mar-2019 18:17:21 UTC] PHP   4. wp_insert_post() /domain.com/wp-includes/post.php:4028
       [27-Mar-2019 18:17:21 UTC] PHP   5. wp_transition_post_status() /domain.com/wp-includes/post.php:3852
       [27-Mar-2019 18:17:21 UTC] PHP   6. do_action() /domain.com/wp-includes/post.php:4446
       [27-Mar-2019 18:17:21 UTC] PHP   7. WP_Hook->do_action() /domain.com/wp-includes/plugin.php:465
       [27-Mar-2019 18:17:21 UTC] PHP   8. WP_Hook->apply_filters() /domain.com/wp-includes/class-wp-hook.php:310
       [27-Mar-2019 18:17:21 UTC] PHP   9. wpsc_post_transition() /domain.com/wp-includes/class-wp-hook.php:286
       [27-Mar-2019 18:17:21 UTC] PHP  10. wpsc_delete_post_archives() /domain.com/wp-content/plugins/wp-super-cache/wp-cache-phase2.php:2741
       [27-Mar-2019 18:17:21 UTC] PHP  11. get_post() /domain.com/wp-content/plugins/wp-super-cache/wp-cache-phase2.php:2638
       [27-Mar-2019 18:17:21 UTC] PHP  12. WP_Post->filter() /domain.com/wp-includes/post.php:730
       [27-Mar-2019 18:17:21 UTC] PHP  13. WP_Post->__get() /domain.com/wp-includes/class-wp-post.php:358
       [27-Mar-2019 18:17:23 UTC] Backtrace from warning 'Cannot modify header information - headers already sent by (output started at /domain.com/wp-config.php:222)' at /domain.com/wp-includes/pluggable.php 1251: /domain.com/wp-includes/pluggable.php 1251 calling header() | /domain.com/wp-admin/post.php 259 calling wp_redirect()
       [27-Mar-2019 18:17:23 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /domain.com/wp-config.php:222) in /domain.com/wp-includes/pluggable.php on line 1251
       [27-Mar-2019 18:17:23 UTC] PHP Stack trace:
       [27-Mar-2019 18:17:23 UTC] PHP   1. {main}() /domain.com/wp-admin/post.php:0
       [27-Mar-2019 18:17:23 UTC] PHP   2. wp_redirect() /domain.com/wp-admin/post.php:259
       [27-Mar-2019 18:17:23 UTC] PHP   3. header() /domain.com/wp-includes/pluggable.php:1251
       [27-Mar-2019 18:17:23 UTC] Backtrace from warning 'Cannot modify header information - headers already sent by (output started at /domain.com/wp-config.php:222)' at /domain.com/wp-includes/pluggable.php 1254: /domain.com/wp-includes/pluggable.php 1254 calling header() | /domain.com/wp-admin/post.php 259 calling wp_redirect()
       [27-Mar-2019 18:17:23 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /domain.com/wp-config.php:222) in /domain.com/wp-includes/pluggable.php on line 1254
       [27-Mar-2019 18:17:23 UTC] PHP Stack trace:
       [27-Mar-2019 18:17:23 UTC] PHP   1. {main}() /domain.com/wp-admin/post.php:0
       [27-Mar-2019 18:17:23 UTC] PHP   2. wp_redirect() /domain.com/wp-admin/post.php:259
       [27-Mar-2019 18:17:23 UTC] PHP   3. header() /domain.com/wp-includes/pluggable.php:1254
       ```
   
 *  Thread Starter [jsg9in9nl](https://wordpress.org/support/users/jsg9in9nl/)
 * (@jsg9in9nl)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/some-errors-19/#post-11372202)
 * Any idea about this issue? Does WPSC need a update?!
 *  [Saša](https://wordpress.org/support/users/stodorovic/)
 * (@stodorovic)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/some-errors-19/#post-11375573)
 * I was able to reproduce this issue. It seems that we need to avoid get_post in
   _wpsc\_delete\_post\_archives_. I’ll try to create PR which will fix it.
 *  [Kokomo](https://wordpress.org/support/users/kokomoweb/)
 * (@kokomoweb)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/some-errors-19/#post-11505908)
 * Same issue. following
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [7 years ago](https://wordpress.org/support/topic/some-errors-19/#post-11534125)
 * [@kokomoweb](https://wordpress.org/support/users/kokomoweb/) [@jsg9in9nl](https://wordpress.org/support/users/jsg9in9nl/)–
   can you edit wp-cache-phase2.php and look for the function “wpsc_delete_post_archives”.
   It should be around line 2654. The first line of that function is:
 * `$post = get_post( $post );`
 * Can you change that line, adding “@” before get_post so it looks like this:
 * `$post = @get_post( $post );`
 * That will hide the warning message you’re getting. Does that work?
 *  [hjalle](https://wordpress.org/support/users/hjalle/)
 * (@hjalle)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/some-errors-19/#post-11677091)
 * [@donncha](https://wordpress.org/support/users/donncha/) I had the same problem
   and your suggestion fixed it for me. Will this be fixed in next version of the
   plugin?
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/some-errors-19/#post-11678099)
 * [@hjalle](https://wordpress.org/support/users/hjalle/) – yes, it will.

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

The topic ‘Some errors’ is closed to new replies.

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

## Tags

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

 * 8 replies
 * 5 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/some-errors-19/#post-11678099)
 * Status: not resolved