• WordPress 3.6 running on local (MAMP) development server.

    After activating Edit Flow, I’m receiving the following notice in the Name and Slug columns of the Categories page of the dashboard:

    Notice: Trying to get property of non-object in /.../wp-includes/post-template.php on line 29

    Curiously, it also appears to insert the notice text into the Slug box on the Edit Category page of the Dashboard. Deactivating Edit Flow causes the error/notice to go away.

    http://wordpress.org/plugins/edit-flow/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey Nomina – did you ever get a solve for this? We’re having the same problem.

    Did you turn on debugging?
    define( ‘WP_DEBUG’, true ); // to wp-config.php file.

    xdebug showed me that the error originated with wp_unique_post_slug( )
    So I’m assuming it’s because the slug or ‘post_name’ property had already been created and it was a duplicate (even though the duplicate was in the trash for me). Hence the error.

    You could see if the slug exists by getting the post by slug, if not, create your new post. If it’s a duplicate, modify the name somehow and check again.
    http://codex.wordpress.org/Template_Tags/get_posts#Get_a_post_by_its_slug

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Non-Object Notice’ is closed to new replies.