• I’ve been creating my own theme, and everything was working just fine.

    I’ve been working on the Comments section for the past few hours, and all of a sudden, then I attempted to log into the WP Admin, I received the following error:

    Warning: Cannot modify header information – headers already sent by (output started at C:\xampp\htdocs\wordpress\wp-content\themes\boomerbazaar\functions.php:60) in C:\xampp\htdocs\wordpress\wp-includes\pluggable.php on line 897

    This was so strange as it simply came out of nowhere!

    I’ve read in previous posts from users who’ve received similar errors that it’s due to extra spaces–but my question is where?

    If I look at link 897 in the pluggable.php file, that line reads:

    header(“Location: $location”, true, $status);

    I am at a complete loss. Any help is appreciated.

    Thanks in advance.

    Ron

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

    (@rgwhitaker)

    Oh, as a follow-up, I forgot to mention that I’m simply developing on my laptop using xampp. This isn’t on a server.

    I don’t know if that makes any difference.

    Thread Starter rgwhitaker

    (@rgwhitaker)

    Followup:

    I noticed in some other postings that some people were adding ob_start(); to the start of their functions.php file. I did that, and it worked!

    Question: I take it the ob_start(); goes right after the <?php tag, right?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Receving "Cannot modify header information – headers already sent by" error’ is closed to new replies.