WordPress.org

Ready to get started?Download WordPress

Forums

CMS Tree Page View
[resolved] Notice: trying to get property of non-object (3 posts)

  1. Peter Massey-Plantinga
    Member
    Posted 1 year ago #

    On every admin page, this error shows up when in debug mode. It'd be nice to clean this up. Lines 557-558 in functions.php

    It's easy to check if this is an object first:

    if ( !empty( $post_type_object ) )
    {
    ...
    }

    Thanks for considering it!

    http://wordpress.org/extend/plugins/cms-tree-page-view/

  2. Pär Thernström
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the report and the fix.

    I don't get this message myself. Have you perhaps added CMS Tree Page View for a custom post type, that you later on have removed?

    Anyway, I will add the fix to the next update.

  3. Peter Massey-Plantinga
    Member
    Posted 1 year ago #

    I have a few custom post types, but I'm pretty sure I never added a CMS Tree Page View for them and they're still active. Looks to me like the custom post types could be the reason, though.

    btw, adding/removing a tree view on custom post types results in a lot of notices and a WSOD. After this, the tree view works fine, so it's not super important, but could be worth looking into.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.