error page after posting or editing a post (3 posts)

  1. naddie
    Posted 8 years ago #

    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.

  2. mykeamend
    Posted 8 years ago #

    Same problem, same scenario - I just moved my site to a new server and domain.

  3. mykeamend
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic