WordPress PHP code error - http required

Disclaimer: I know ABSOLUTELY NOTHING about PHP. I work with WordPress sites and am well versed in HTML and CSS but am completely new to PHP.

When you type the URL www.fringeseattle.com, the page returns this error:
Warning : Cannot modify header information - headers already sent by (output started at /home/content/20/7608020/html/index.php:2) in /home/content/20/7608020/html/wp-includes/pluggable.php on line 1251

Warning : Cannot modify header information - headers already sent by (output started at /home/content/20/7608020/html/index.php:2) in /home/content/20/7608020/html/wp-includes/pluggable.php on line 1254

I am clueless as to how to fix it. The text in that file (pluggable.php) from lines 1251-1254 is this:
header( “X-Redirect-By: $x_redirect_by” );
}

	header( "Location: $location", true, $status );

If you type in http://www.fringeseattle.com the page loads just fine.

I am wondering if this has anything to do with the fact that I’m on a very old version of WordPress and our PHP version is 5. I can’t upgrade it because our site’s theme will break. We’re working on a new site but it won’t be ready for a few more weeks.

Can anyone point me in the right direction to fix this?

Have a look at the top of your index.php file, make sure there’s no whitespace before the opening <?php tag.

THANK YOU!
There was a blank line and the <?php tag started on line 2.
Appears to have fixed the issue. I really appreciate your help!

Sponsor our Newsletter | Privacy Policy | Terms of Service