Trying to get property of non-object
-
Hi,
I get an error message on my home page that says:
Notice: Trying to get property of non-object in /Library/WebServer/Documents/wordpress/wp-includes/comment-template.php on line 932
I located the error to your plugin and the function comments_open(), which you check in two places, one when you add CSS files and one when you add JavaScript files.
if ( comments_open() && is_singular() && ( $options['comments'] != '0') && !is_null($options['comments']) ) { $this->add_styles(); } if ( comments_open() && is_singular() && ( $options['comments'] != '0') && !is_null($options['comments']) ) { $this->add_scripts(); }
I suspect that the error is caused because you are trying check for comments on the home page, which do not use comments in this case.
Here are some details that might be useful for you:
PHP 5.3.2
WordPress 3.7.1
BBPress 2.5.1Thanks
https://www.ads-software.com/plugins/basic-comment-quicktags/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Trying to get property of non-object’ is closed to new replies.