Warning: Cannot modify header

  • jhayes

    #2457

    Sometime on Sunday when I visited our website there was a blank screen with the following error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/indianan/public_html/index.php(1) : eval()’d code:37) in /home/indianan/public_html/wp-includes/pluggable.php on line 934

    To fix this I went to the update screen in the dashboard and reloaded WordPress. This is the 4th time this has happen in two months.

    Mod

    Kenneth John Odle

    #20289

    This really isn’t a Graphene theme bug at all.

    Apparently, there is either a space before an opening <?php tag or after a closing ?> tag somewhere in one of your WordPress core files–in this case, the index.php file. This is one reason you never want to edit core files (either WordPress, theme, or plugin), but want to use a child theme.

    The only solution here is to reinstall WordPress, which you’ve already done, and then don’t touch those files again! Use a child theme to make changes to your site.

    The other possibility is that you are using a redirect (specifically, WordPress’s wp_redirect() function) and your host has FastCGI set up. FastCGI and wp_redirect() are sometimes incompatible.

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

You must be logged in to reply to this topic.