• Whenever I try to post on my site-in-progress, I get this error:

    Warning: Invalid argument supplied for foreach() in /home/user/public_html/projects/prayer/wp-includes/post.php on line 2347

    Warning: Cannot modify header information – headers already sent by (output started at /home/user/public_html/projects/prayer/wp-includes/post.php:2347) in /home/user/public_html/projects/prayer/wp-includes/pluggable.php on line 890

    I checked post.php, according to the WP FAQ Troubleshooting page it’s supposed to end in ?> but didn’t. I added that but it made no difference, same error when trying to post. Can someone help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter redkitecreative

    (@redkitecreative)

    I did check the whitespace before and after the code on posts.php per the FAQ.

    When I look at one of the test posts’ HTML I see this: <p>\r\n\r\n</p> and this: I\d rather than I’d.

    Try deactivating any plugins you have, does that fix it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Headers already sent error’ is closed to new replies.