[wp-trac] [WordPress Trac] #15498: Notice: Trying to get property of non-object in wp-admin/edit-form-advanced.php on line 281

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 11 10:44:17 UTC 2012


#15498: Notice: Trying to get property of non-object in wp-admin/edit-form-
advanced.php on line 281
--------------------------+-----------------------
 Reporter:  wpdavis       |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Users         |     Version:  3.3.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------
Changes (by Ludwig C.):

 * keywords:   => needs-patch
 * resolution:  invalid =>
 * status:  closed => reopened
 * component:  Import => Users
 * version:   => 3.3.2


Comment:

 This error does still exist when deleting a user and reasigning the posts
 to an other user. Not only the post_author in wp_posts should be changed,
 please update wp_postmeta too.

 UPDATE `wp_postmeta` SET `meta_value`='NEW-USER-ID' WHERE
 `meta_key`='_edit_last';

 An other solution would be to check the object in edit-form-advanced.php
 and display 'unknown user' when it is null.

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


More information about the wp-trac mailing list