[wp-hackers] Weird Warning: Creating default object

Andrew Nacin wp at andrewnacin.com
Sat Jul 2 14:06:14 UTC 2011

On Fri, Jul 1, 2011 at 11:43 AM, Andrew Gray <andrew at graymerica.com> wrote:

> Has anyone ever seen this error before?
> I am installing my first WP site on a NGINX platform, that was build by the
> client IT department and am getting this error.
> Warning: Creating default object from empty value in
> /var/www/blog/wp-admin/includes/post.php on line 421
> Should I be worried, or should I just hide it.

Hide it.

We should have a $post = new stdClass; there (ticket/patch welcome), but PHP
will handle it just fine.


More information about the wp-hackers mailing list