Forums

[resolved] All pages blank except home page (11 posts)

  1. boxxen
    Member
    Posted 7 months ago #

    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!

  2. nsathees
    Member
    Posted 7 months ago #

    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.

  3. boxxen
    Member
    Posted 7 months ago #

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

  4. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

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

  5. boxxen
    Member
    Posted 7 months ago #

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

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

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

    What file is being referenced?

  7. boxxen
    Member
    Posted 7 months ago #

    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!

  8. boxxen
    Member
    Posted 7 months ago #

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

  9. kionae
    Member
    Posted 7 months ago #

    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.

  10. boxxen
    Member
    Posted 7 months ago #

    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...

  11. boxxen
    Member
    Posted 7 months ago #

    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.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.