[wp-trac] [WordPress Trac] #10461: Multiple php notices from dashboard

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 11 17:49:52 UTC 2011


#10461: Multiple php notices from dashboard
------------------------------+-----------------------
 Reporter:  mrmist            |       Owner:
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:
Component:  Warnings/Notices  |     Version:  3.1
 Severity:  normal            |  Resolution:
 Keywords:                    |
------------------------------+-----------------------
Changes (by sterlo):

 * status:  closed => reopened
 * version:  2.9 => 3.1
 * resolution:  worksforme =>


Comment:

 This is happening for me - just not on IIS.

 I'm running standard LAMP on the latest trunk.

 Just viewing the dashboard with no plugins activated:
 {{{
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 918
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 918
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 918
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 918
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 918
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 918
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 919
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 Notice: Trying to get property of non-object in /Users/grok/Projects/Local
 Development/wordpress/trunk/wp-includes/capabilities.php on line 922
 }}}

 It's not recognizing "$post_type->cap" as valid.

 And...here's why - I added this (/wp-includes/capabilities.php):
 {{{
  918 echo "POST TYPE: Y U NO OBJECT?\n";
  919 var_dump($post_type);
 }}}

 And got:
 {{{
 POST TYPE: Y U NO OBJECT?
 NULL
 }}}

 So in this context...the post type is null and the code was not expecting
 that.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10461#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list