• Hi, thanks for any help! Here’s what happened:

    1) Got an email from hosting co. re. security issues (I have multiple sites all attached to 1 main hosting account)
    2) 1 domain affected (WP installed), but cannot access WP admin. This message is displayed:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /home/content/w/o/w/wowcv/html/jobsearching/wp-settings.php on line 42

    3) I’ve opened wp-settings.php, line 42 looks like this:

    $ff .= substr(pack(‘H*’, sha1($fa.$ff.$fe)), 0, $n);

    Really don’t want to pay $150 or more to fix this if I can help it.

    Note: the site in question is not critical to me, if needed I can delete everything on it via FTP access, but not sure this will fix it, and don’t want to do that unless I have to.

    Any ideas?

    • This topic was modified 9 years, 3 months ago by gerardleroux.
Viewing 1 replies (of 1 total)
  • Hi gerardleroux,
    If you want to clean the site yourself, you can start by removing the malicious code in wp-settings.php and then proceed to scan the site and remove any other malware you may find in other files. You also need to change all passwords (WP admin, database). Remove all plugins and themes that are no longer being updated.

    Deleting the site and putting up a new one should work in most cases but there are no guarantees when you haven’t established exactly how the site was hacked. If you set up a new site and install the same plugin that caused you to get hacked, you will of course get hacked soon again.

    Best of luck with the cleanup!

Viewing 1 replies (of 1 total)

The topic ‘Hacked / Cannot Access WP Admin / How to Fix?’ is closed to new replies.