Warning when publishing a post

Avatar
  • Answered
When I click on the publish button then I get a warning. Though the post gets published an error appears.

"strtolower() expects parameter 1 to be string, array give in "the path to formatting.php" on line 1870"

cannot modify header information -headers already sent by (the same path as above) on line 197

cannot modify header information -headers already sent by (the same path as above) wp-includes/pluggable.php on line 1174.

Why am I getting this warning? The warnings are showing for the formatting.php, wp-post, and pluggable.php.
Avatar
Arn
Hello, I'm sorry you're getting these warnings in WordPress. The WordPress support forums provides this this link on troubleshooting the "Headers already sent" issue. Please review this link and double-check your wp-config.php file to see if it matches the issue that is described in the article. If that doesn't resolve it, then you approach the issue by simplifying your WordPress installation to identify the cause of the problem. Start with disabling your plugins and then if that doesn't identify the issue, change your WordPress theme to a default version. I hope this helps to fix your problem, please let us know if you require any further assistance. Regards, Arnel C.