Support » Fixing WordPress » error page after posting or editing a post

  • I have been having this problem ever since I loaded up the backups of my WordPress databases after switching hosts. Whenever I post a new entry or edit a previous entry, the page would load and give this message:

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

    Warning: Cannot modify header information – headers already sent by (output started at /home/deena/public_html/wp-admin/includes/post.php:112) in /home/deena/public_html/wp-includes/pluggable.php on line 391

    May I know what is causing this?

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same problem, same scenario – I just moved my site to a new server and domain.

    I poked through the code, traced everything back to the DB (thanks to this post letting me know it was DB related), and found this solution:

    In the table “wp_usermeta”, just clear out the meta_value that corresponds with the meta_key “wp_autosave_draft_ids” and the user ids effected.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘error page after posting or editing a post’ is closed to new replies.