WP Blog hacked...again! Can anyone tell me what this means?

6 replies
I cleaned out all the files - they had a php hijack/virus and reuploaded everything.

Now - when I go to the blog (wordpress) or try to go to the admin panel - all I get it this:

Warning: Cannot modify header information - headers already sent by (output started at /home/content/i/t/s/its4real4u/html/members/wp-admin/index.php:2) in /home/content/i/t/s/its4real4u/html/members/wp-includes/pluggable.php on line 866


Can you help me decipher this?
#blog #hackedagain #means
  • Profile picture of the author EndGame
    Hi,

    I can't tell you what the above means, but have you checked the permissions on your public html file?

    If they are set to 755, thats why you are getting hacked a lot. Set them to 750 and that should make things a lot more difficult for the hacker.

    I think that could be a mysql injection attack, but I am not overly sure. I have put up with loads of wp hack attacks and if you want a programmer to look over it for you and secure it, let me know, I know a good one who sorted my site out for a £100.

    If I can offer any help or assistance though, feel free to ask, I know how bad this crap is.
    Signature

    NA

    {{ DiscussionBoard.errors[2048657].message }}
  • Profile picture of the author wrcato2
    End game, that was some great advice. Also make sure you are updated with the latest word press version
    {{ DiscussionBoard.errors[2048670].message }}
  • Profile picture of the author welshgirl2
    You need to go into wp-admin folder, and look for the index.php file. Open it and on the first line you will see this

    "<?php"

    Make sure there isn't any spaces or blank lines under this. If there is then delete them. Then look at the bottom of the file and look for this:

    "?>"

    Make sure there are no empty spaces after this.

    In other words start of your file should look like this:

    <?php
    /**
    * Dashboard Administration Panel
    *
    * @package WordPress
    * @subpackage Administration
    */
    and not this:

    <?php

    /**
    * Dashboard Administration Panel
    *
    * @package WordPress
    * @subpackage Administration
    */
    Make sure all you php files have no spaces after the "<?php" and after the "?>" at the end.

    EDIT: You are getting this message because you probably left some spaces in some of your php files when you were cleaning them out.
    Signature
    Affordable Business Website Design
    Free Domain Name & Hosting
    {{ DiscussionBoard.errors[2048707].message }}
  • Profile picture of the author winebuddy
    Welshgirl!!! You my girl! That was it - had some spaces in my search and replace thing - that fixed it right up!

    Thank you!
    Signature
    "Knowledge is NOT power... ACTION on Knowledge is power"
    {{ DiscussionBoard.errors[2048838].message }}
  • Profile picture of the author Istvan Horvath
    How to read error messages of the type

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/your-server-path/members/wp-admin/index.php:2)
    Always look at the last part before the closing bracket - in this case:
    wp-admin/index.php:2

    It tells you
    - the directory (wp-admin)
    - the file name (index.php)
    - the line number (#2)
    where to look for an issue.
    You can ignore the rest
    Signature

    {{ DiscussionBoard.errors[2049017].message }}
  • Profile picture of the author Dan Riffle
    Not to hijack the thread or take away from any of the other excellent comments, but I know I'm going to learn something useful whenever I see that Itsvan has commented in a thread.

    As such, I just wanted to give him a public thank you for all that he provides to this forum.

    ~riff
    Signature

    Raising a child is akin to knowing you're getting fired in 18 years and having to train your replacement without actively sabotaging them.

    {{ DiscussionBoard.errors[2049629].message }}

Trending Topics