[wp-trac] [WordPress Trac] #14606: Fatal error: Cannot use object of type stdClass as array
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 13 00:04:11 UTC 2010
#14606: Fatal error: Cannot use object of type stdClass as array
--------------------------+-------------------------------------------------
Reporter: bigtalk | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.0.1
Severity: blocker | Keywords:
--------------------------+-------------------------------------------------
I get the PHP error:
{{{
Fatal error: Cannot use object of type stdClass as array
}}}
The most recent one was from wp-includes/post.php on line 1830 when trying
to trash a comment.
I have already fixed numerous instances of this problem in the app I have
installed just to get it to install. At this point, there are too many
instances for me to fix them all.
I am using PHP 5.3.2
I believe it is a matter of changing (for example on line 1830 of wp-
includes/post.php)"
{{{
add_post_meta($post_id,'_wp_trash_meta_status', $post['post_status']);
}}}
to
{{{
add_post_meta($post_id,'_wp_trash_meta_status', $post->post_status);
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14606>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list