• Hi,

    I’ve been looking for an answer to this for a while now. I’m getting this error…

    Warning: Cannot modify header information – headers already sent by (output started at /home/overdriv/public_html/clients/ntab/wp-content/themes/ntab/header.php:2) in /home/overdriv/public_html/clients/ntab/wp-includes/pluggable.php on line 552

    which would lead me to think that there is whitespace or something in the header file that is causing the problem, but there isn’t and I’m at a loss. I’ve looked through the other posts on this subject and can’t seem to find a solution. Any suggestions would be appreciated.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • which would lead me to think that there is whitespace or something in the header file that is causing the problem, but there isn’t and I’m at a loss.

    Yes, there is Or there is something inside that file that is sending output..

    Thread Starter aaffleck

    (@aaffleck)

    Well, I completely cleared the header file of all it’s contents and the error now moved to the actual content file that was calling the header file. It has to be something prior to both of those files, but how do you determine where?

    and that error is what?

    Thread Starter aaffleck

    (@aaffleck)

    Same error…

    Warning: Cannot modify header information – headers already sent by (output started at

    Please, I am not going to pull teeth here. It cannot be the same exact error, if you removed all of the content from header.php.

    Therefore, once again, what is the second error.

    Its a similar error, with a diff filename.

    For the record, Ive located the site your dealing with, and I see no errors visible on either of the front pages. So what file/page are you seeing this on?

    Thread Starter aaffleck

    (@aaffleck)

    yes, same error different file name. It was the header.php file and now it is a file called employees.php which was calling the header file. if you’ve located the site -> under NWO Job opps -> Service providers login, when you try to login using un:admin pass:admin is when you get the error. The template file being used is called employees.php.

    In header.php, whats on line 2?

    language_attributes() and some stuff before it .. whats all of it?

    Thread Starter aaffleck

    (@aaffleck)

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

    is the first two lines in header.php

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can’t figure out “Header already sent” error’ is closed to new replies.