Forums

WordPress 3.2 Headers already sent error (9 posts)

  1. adamjang
    Member
    Posted 10 months ago #

    Warning: Cannot modify header information - headers already sent by (output started at /home1/acceles0/public_html/sitename/index.php(1) : eval()'d code:37) in /home1/acceles0/public_html/sitename/wp-includes/pluggable.php on line 934

    This is the error I am getting, when viewing the site. I can't access any pages, but I can go to the login screen. Once I am logged in, the site is fine. The site has been live for months with no problems.

    After I noticed the error, I updated to the latest version of WordPress, and tried disabling all plugins, but nothing has fixed it.

    Anyone know what the problem could be?

  2. kmessinger
    Member
    Posted 10 months ago #

    Open index.php. Make sure the first line is <?php with no space before it.

  3. Chip Bennett
    Member
    Posted 10 months ago #

    Also, look for whitespace at the end of wp-config.php.

  4. adamjang
    Member
    Posted 10 months ago #

    There is no white space in either.

  5. kmessinger
    Member
    Posted 10 months ago #

    The error is very specific. It says index.php(1) which means the first line of that file. There should be 18 lines. Make sure you use a plain text editor.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

  7. kmessinger
    Member
    Posted 10 months ago #

    Sorry but that sounds like a hack.

    What was the clue?

  8. esmi
    Theme Diva & Forum Moderator
    Posted 10 months ago #

    eval()'d code

  9. adamjang
    Member
    Posted 10 months ago #

    Hey,

    Thanks for all the help. I never would have expected my site to get hacked, but this article put me on the right track.
    http://ottopress.com/2009/hacked-wordpress-backdoors/

    There was an eval code sitting in the main index.php file. I got rid of it and it seems to have gotten back to normal.

Reply

You must log in to post.

About this Topic