• Hello,

    My site is logging the following errors on 404 pages and empty archives where the global $post is empty:

    PHP Notice:  Trying to get property 'post_type' of non-object in /wp-content/plugins/events-manager/classes/em-location-post.php on line 85
    PHP Notice:  Trying to get property 'post_type' of non-object in /wp-content/plugins/events-manager/classes/em-event-post.php on line 99

    Could the conditionals here have an additional check for ! empty( $post ) to prevent these notices from cropping up, please?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Trying to get Property of Non-Object’ is closed to new replies.