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

  1. Peter Massey-Plantinga
    Posted 3 years 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!


  2. Pär Thernström
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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

  • CMS Tree Page View
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.