Quantcast
Channel: Topic Tag: error | WordPress.org
Viewing all articles
Browse latest Browse all 31588

peterhebert on "[Plugin: Widget CSS Classes] PHP error: Trying to get property of non-object"

$
0
0

When I have no published posts, the plugin produces the following PHP error in all widget areas:

Notice: Trying to get property of non-object in /wp-includes/post-template.php on line 29

Upon publishing a post, the notices go away. When I deactivate the plugin, no errors. I deactivated all other plugins, narrowed it down to this one. Same thing happens across multiple themes (tested with twenty fourteen and my custom theme).

Having no posts is not a common scenario, of course, but the bug should be fixed nonetheless.

http://wordpress.org/plugins/widget-css-classes/


Viewing all articles
Browse latest Browse all 31588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>