• Resolved djcayenne

    (@djcayenne)


    My blog https://babygotbooks.com is displaying a strange error message right now:

    Warning: Cannot modify header information – headers already sent by (output started at /home/.hector/timandjen/babygotbooks.com/wp-blog-header.php:1) in /home/.hector/timandjen/babygotbooks.com/wp-includes/pluggable.php on line 770

    Anyone have any idea what’s wrong and how to fix this?

Viewing 9 replies - 1 through 9 (of 9 total)
  • babygotbooks.com/wp-blog-header.php:1
    Empty space or line at the top (line #1) in that file!

    The search works:
    Answers-Troubleshooting#Headers_already_sent

    in your wp-blog-header.php file there’s probably a line break, comment or any content before the <?php

    Try removing that and ensuring the file starts with <?php

    -Terri

    Thread Starter djcayenne

    (@djcayenne)

    Sorry for violating protocol and not searching first for a solution. I am a little unsure how to access the file if I can not reach the login screen, but will try going through my FTP server for access. Also, I am curious why this issue would suddenly appear. I have not made any changes to that file, and things were working well earlier today.

    Thread Starter djcayenne

    (@djcayenne)

    It looks like I’ve been hacked. Here’s what my header.php feel looks like (can I just simply replace from my backup?):

    [spam code moderated]

    but will try going through my FTP server for access.

    That’s, actually, the only way to to do it! You can NOT edit WP core files through the admin panel, anyway.

    Well, if you didn’t mess with any WP files lately, check carefully your whole site and look for suspicious modification dates. Maybe you were hacked?

    Thread Starter djcayenne

    (@djcayenne)

    Everything is back to normal. Thanks to terriann, I simply deleted all the stuff before the <?php and that did the trick.

    Thanks for the feedback. How do I prevent this type of attack in the future?

    Your post about being hacked has been caught by Akismet as spam (released).

    Note: the theme’s header.php and the wp-blog-header.php are two (2) different files!

    Thread Starter djcayenne

    (@djcayenne)

    Thanks, Moshu. I will check out my other files to see what else may be lurking.

    I was definitely hacked and a little freaked out about it.

    Thread Starter djcayenne

    (@djcayenne)

    Moshu – the file that I edited to fix the problem was the wp-blog-header.php file. Sorry for the confusion.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Strange error message’ is closed to new replies.