Forums

[resolved] Strange error message (10 posts)

  1. djcayenne
    Member
    Posted 3 years ago #

    My blog http://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?

  2. moshu
    Member
    Posted 3 years ago #

    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

  3. terriann
    Member
    Posted 3 years ago #

    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

  4. djcayenne
    Member
    Posted 3 years ago #

    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.

  5. djcayenne
    Member
    Posted 3 years ago #

    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]

  6. moshu
    Member
    Posted 3 years ago #

    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?

  7. djcayenne
    Member
    Posted 3 years ago #

    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?

  8. moshu
    Member
    Posted 3 years ago #

    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!

  9. djcayenne
    Member
    Posted 3 years ago #

    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.

  10. djcayenne
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.