[wp-trac] [WordPress Trac] #16651: Warnings on dashboard: Notice: Trying to get property of non-object in wp-includes/capabilities.php
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 24 20:22:53 UTC 2011
#16651: Warnings on dashboard: Notice: Trying to get property of non-object in wp-
includes/capabilities.php
-------------------------------+------------------------------
Reporter: grandslambert | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Warnings/Notices | Version: 3.1
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Comment (by grandslambert):
OK, I did a clean install of 3.1 and turned on debug mode and it does not
happen. Went back to other install and removed all plugins, still happens.
Then I noticed there were some comments for posts that were no longer on
the site. Once I deleted those from the database the errors went away.
Apparently another bug which I may not be able to track prevented these
comments from deleting when the posts were deleted. I will look into that,
but perhaps a check to make sure a comment is associated with a post could
prevent these errors -though it is not likely to happen all that often.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16651#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list