• Resolved wekhter

    (@wekhter)


    [ Moderator note: moved to Fixing WordPress. ]

    While looking through my debug.log trying to figure out another issue, I noticed this plugin is generating some PHP notices.

    PHP Notice:  Trying to get property of non-object in /wp-content/plugins/custom-post-type-permalinks/CPTP/Module/Permalink.php on line 288
    PHP Notice:  Trying to get property of non-object in /wp-content/plugins/custom-post-type-permalinks/CPTP/Module/Permalink.php on line 281
    PHP Notice:  Trying to get property of non-object in /wp-content/plugins/custom-post-type-permalinks/CPTP/Util.php on line 152
    PHP Notice:  Trying to get property of non-object in /wp-content/plugins/custom-post-type-permalinks/CPTP/Util.php on line 155

    Since this is generating 4 notices at a time, it’s filling up our debug.log pretty quickly.

    • This topic was modified 7 years, 10 months ago by wekhter.
    • This topic was modified 7 years, 10 months ago by Jan Dembowski.
Viewing 3 replies - 1 through 3 (of 3 total)
  • That notice is being generated by the Custom Post Type Permalinks plugin.

    You can see the files and the lines where it’s happening and what the actual errors are, so the best thing to do is post that in the support forum for that plugin, and hope that the plugins author can fix these and put out a new update.

    If you can’t, or don’t want to, wait then you’ll need to disable that plugin.

    Thread Starter wekhter

    (@wekhter)

    I was 100% sure I posted in the support forum for that plugin, so I’m pretty baffled as to what happened here, but I’m re-posting in the correct forum (again???)

    @wekhter

    I guess that get_post_type_object failed.

    The post type is registered ?

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