Trying to get property of non-object
-
I have installed the plugin on a multi-site WordPress v4.3.1, but the plugin generates an error message:
Notice: Trying to get property of non-object in /var/www/…/wp-content/plugins/wp-hide-title/wp-hide-title .php on line 127
It seems $post is undefined. Searching I found a number of other sites using the plugin with the same error message. I am not sure how to fix – except adding a
if(!is_null($post))
around the offending line, but I am not sure if it affects the functionality.
- The topic ‘Trying to get property of non-object’ is closed to new replies.