Ticket #7047 (new defect)

Opened 6 months ago

Last modified 4 months ago

Saving post generates errors

Reported by: zenopopovici Assigned to: anonymous
Priority: high Milestone: 2.9
Component: Administration Version: 2.5.1
Severity: critical Keywords: array, foreach, posting
Cc: myself@zeno.ro

Description

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.

Attachments

save.diff (0.9 kB) - added by zenopopovici on 05/27/08 22:30:26.

Change History

05/27/08 22:30:26 changed by zenopopovici

  • attachment save.diff added.

07/15/08 16:24:07 changed by ryan

  • milestone changed from 2.5.2 to 2.9.

Milestone 2.5.2 deleted