WordPress.org

Ready to get started?Download WordPress

Forums

Blog Hacked, Replaced index.php Page, Updated... Now this... (4 posts)

  1. jgo0326
    Member
    Posted 2 years ago #

    hi all

    I have a WP site @ http://www.powerwashcleaning.co.uk

    The website was hacked last week and I was informed off my host that I have to replace the index.php file with an original index.php ... I created another WP blog and downloaded the index.php file, then I overwritten the hacked index.php file.

    After that only my home page would show, non of the other pages would work, alls I'd get is 404 error etc...

    Then, I logged into the WP Admin area, and I click 'update' or 'upgrage' the version of the WP which was done automatically.

    After that, all's I now get is:

    "Fatal error: Cannot redeclare the_editor() (previously declared in /home/leekenny/public_html/wp-includes/general-template.php:1789) in /home/leekenny/public_html/wp-includes/deprecated.php on line 2635"

    I am using cPanel to host this website.

    If anyone can shed any light on what I can do to correct this, I would really appreciate it.

    What would happen if I made a mySQL database backup via cPanel, deleted the WP site, then created another WP site then reinstall the SQL database? Would this work?

    Thanks in advance,

    JAMiE

  2. threestyler
    Member
    Posted 2 years ago #

    I would first of all suggest you rename the last active theme to something else and see if you can get back into the admin to complete the upgrade.

    Failing that, make a copy of your wp-config.php file and overwrite everything else manually with a current copy of the latest build of WordPress from here:

    http://wordpress.org/latest.zip

    Depending on which version of WordPress you were using instead of replacing the new wp-config file with the old copy you would likely be better to use the latest wp-config details with your current database settings.

    As a precaution I would also change your database and administration passwords.

  3. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

  4. jgo0326
    Member
    Posted 2 years ago #

    Hi threestyler, that has done the job... Many thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.