[wp-trac] [WordPress Trac] #7047: Saving post generates errors

WordPress Trac wp-trac at lists.automattic.com
Tue May 27 22:30:07 GMT 2008


#7047: Saving post generates errors
----------------------------+-----------------------------------------------
 Reporter:  zenopopovici    |       Owner:  anonymous              
     Type:  defect          |      Status:  new                    
 Priority:  high            |   Milestone:  2.5.2                  
Component:  Administration  |     Version:  2.5.1                  
 Severity:  critical        |    Keywords:  array, foreach, posting
----------------------------+-----------------------------------------------
 On certain configurations saving post generates errors:

 {{{
 Warning: Invalid argument supplied for foreach() in /home/zeno/public_html
 /wp-admin/includes/post.php on line 227

 Warning: array_search() [function.array-search]: Wrong datatype for second
 argument in /home/zeno/public_html/wp-admin/includes/post.php on line 326

 Warning: Illegal string offset: -1211911650 in /home/zeno/public_html/wp-
 admin/includes/post.php on line 333

 Warning: Cannot modify header information - headers already sent by
 (output started at /home/zeno/public_html/wp-admin/includes/post.php:227)
 in /home/zeno/public_html/wp-includes/classes.php on line 788
 }}}

 I belive arrays are improperly handled.
 I've attached a fix.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7047>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list