Error: Trying to Property of a Non-Object
-
Hey,
I’ve been working to clear PHP warnings on my site and one is from Analytify:
Trying to get property 'ID' of non-object in /home/fibrojedi/public_html/wp-content/plugins/wp-analytify/wp-analytify.php on line 463
This line reads:
$skip_tracking = (bool) get_post_meta( $post->ID, '_analytify_skip_tracking', true );
This means at the point it’s calling it
$post
is not an object, even thoughglobal $post;
is above it.I know PHP warnings aren’t errors. All the same, I’ve had to change some of my own plugins to reduce these messages myself, so hopefully it can still be helpful for your own bug fixing. Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Error: Trying to Property of a Non-Object’ is closed to new replies.