• Whenever you open a feed (domain.tld/feed/) our Sentry logs the following error message:

    ErrorException: Trying to get property 'post_type' of non-object
    #8 wp-content/plugins/disable-blog/public/class-disable-blog-public.php(191): handleError
    #7 wp-content/plugins/disable-blog/public/class-disable-blog-public.php(191): disable_feed
    #6 wp-includes/class-wp-hook.php(286): apply_filters
    #5 wp-includes/class-wp-hook.php(310): do_action
    #4 wp-includes/plugin.php(465): do_action
    #3 wp-includes/functions.php(1399): do_feed
    #2 wp-includes/template-loader.php(40): require_once
    #1 wp-blog-header.php(19): require
    #0 index.php(17): null

    Do you have any information what I can do to fix this error message?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Hey there, thanks for alerting me to this! Sorry for any inconveniences. I’ll get a patch/update going as soon as I’m able.

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Hey there, I just pushed a new version (0.4.6) that should resolve this issue. Let me know if you have any questions or further issues!

    Thread Starter Matthias Kittsteiner

    (@kittmedia)

    Thank you, this particular error has been resolved!

    However, another error may occur now:

    ErrorException: Trying to get property 'post_type' of non-object
    #9 wp-includes/class-wp-query.php(4094): handleError
    #8 wp-includes/class-wp-query.php(4094): is_singular
    #7 wp-includes/query.php(731): is_singular
    #6 wp-content/plugins/disable-blog/public/class-disable-blog-public.php(74): redirect_posts
    #5 wp-includes/class-wp-hook.php(286): apply_filters
    #4 wp-includes/class-wp-hook.php(310): do_action
    #3 wp-includes/plugin.php(465): do_action
    #2 wp-includes/template-loader.php(13): require_once
    #1 wp-blog-header.php(19): require
    #0 index.php(17): null
    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Hey there,

    A quick follow up on this issue – I’ve gone down a bit of a rabbit hole around the is_singular being used within the template_redirect hook, looks like this is an issue in core that I’ll need to work around.

    I haven’t given up on this, just a heads up that it will take me a little more time than I initially thought and thus it might be a few days before I have an opportunity to work on it.

    Thanks,
    Joshua

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trying to get property ‘post_type’ of non-object’ is closed to new replies.