• I’m getting an error when creating or updating a post.

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/moonworks.tv/httpdocs/wp-content/themes/moonworkstv/functions.php:1) in /var/www/vhosts/moonworks.tv/httpdocs/wp-includes/pluggable.php on line 890

    It still happens even if I have a completly blank functions.php file, but it won’t happen if I delete the functions.php file.

    The problem I have, is that I need to have some code in there, so I can’t just not include it.

    It was all working fine and then just started up and, from what I can recall, for no reason. I hadn’t just added a new plugin or anything.

    It also happens when activating/deactivating a plugin and with all plugins deactivated.

    Thanks

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

    (@horroruk)

    Thanks for the link.

    I have looked at these two lines countless times, but cannot see the difference in the two bits of code :o/

    If the error message states:Warning: Cannot modify header information - headers already sent by (output started at /path/blog/wp-config.php:34) in /path/blog/wp-login.php on line 42, then the problem is at line #34 of wp-config.php, not line #42 of wp-login.php. In this scenario, line #42 of wp-login.php is the victim. It is being affected by the excess whitespace at line #34 of wp-config.php.

    If the error message states: Warning: Cannot modify header information - headers already sent by (output started at /path/wp-admin/admin-header.php:8) in /path/wp-admin/post.php on line 569, then the problem is at line #8 of admin-header.php, not line #569 of post.php. In this scenario, line #569 of post.php is the victim. It is being affected by the excess whitespace at line #8 of admin-header.php.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error message when posting’ is closed to new replies.