• Resolved boxxen

    (@boxxen)


    Hi all

    Any help on this would be much appreciated.

    My website recently became corrupted: the home page is there but all other pages, including the login page, are blank. Obviously, I have no access to the admin area. This happened spontaneously – ie I hadn’t upgraded / installed / posted anything for a few weeks beforehand.

    I noticed in the backend that several new and random php files had appeared in the root directory – looks like I’ve been hacked. So I deleted all files and reinstalled the backup I had of the home directory. No joy.

    I’ve also tried:
    – Checking the mod_rewrite settings in the htaccess file
    – Reimporting the database from a backup
    – Changing the PHP memory limit from 32 to 64
    – Checking for extra blank lines in wp-config
    – Disabling all plugins via phpMyAdmin
    – Checking file permissions (all folders 755 and all files 644 – is this correct?)

    I still have the same problem: the home page works, nothing else does.

    My htaccess file looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Any help would be hugely appreciated – I’ve run out of ideas.

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • if your .htaccess file is more than couple of bytes (> 300) open the file and scroll all the way down and check that there are no other entries below the visible area. I had once this problem and took me more than 1 hour to find that out.

    Thread Starter boxxen

    (@boxxen)

    Thanks – just double checked and it’s not that, but I suspect it’s something equally simple / annoying!

    Have you tried switching to the Twenty Eleven theme to rule out any theme-specific problems.

    Thread Starter boxxen

    (@boxxen)

    Thanks for the suggestion – just tried that and no joy.

    My error log is showing some “File does not exist” errors, if that helps..

    What file is being referenced?

    Thread Starter boxxen

    (@boxxen)

    The log has been wiped now but it was referencing the 404 page and several categories (which are in the menu).

    I’ve neglected the site for quite a while so suspect this may be down to the outdated theme / plugins / WP version but tried turning theme / plugin off through phpMyAdmin and no joy.

    Anyway, thanks!

    Thread Starter boxxen

    (@boxxen)

    This is the site if it helps anyone work out what’s going on: http://www.listentoafrica.com/

    Have you tried simply setting debug to true in your wp-config.php file? That should at least give the error that’s killing PHP on internal pages, which might point you in the right direction.

    Thread Starter boxxen

    (@boxxen)

    Bingo – thank you!

    Fatal error: Cannot redeclare wp_clone() (previously declared in /***/***/public_html/wp-settings.php:283) in /***/***/public_html/wp-includes/functions.php on line 2902

    So, I fixed that (using these suggestions). Now getting a database connection error but should be able to fix that.

    Thanks! Progress at last…

    Thread Starter boxxen

    (@boxxen)

    OK, this is resolved. Not sure I can help anyone else having this problem in future though as mine was caused by multiple issues, mostly around outdated plugins (CMS Navigation was a major culprit) as well as being stuck on a very old version of WP. After several attempts to restore both the database and the home directory (with plugins disabled), I finally managed to log into the admin and update everything.

    Anyway, thanks for the help – resolved.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘All pages blank except home page’ is closed to new replies.