Forums

[resolved] Pages showing up blank, no source code (home page & posts fine) (8 posts)

  1. StrawburryMiwk
    Member
    Posted 2 years ago #

    My site is: http://danale.com (safe for work, but has some anthro artwork in case that offends you)

    My problem is: All of the pages (About, Contact, etc.) reveal a blank page when you click on them. When you try to look at the source code, that too is blank. When I log into my site, the pages and their info are still intact in WordPress, and the permalinks to them are still the same.

    Background: I was recently hacked two days ago. I have always kept the most recent version of WordPress, so I'm not sure how this happened. To resolve this, I backed up my database, deleted absolutely everything from my "public_html" account (since my blog is in the 'root' directory), and re-uploaded the latest version of WordPress. I had my customized theme backed up on my computer as well and re-uploaded that. None of the re-uploaded files were copies of the hacked files.

    I'm a novice at resolving these things, so when I was able to simply log back into my account I was happy enough with that. Everything seemed to be working fine. Today, even though the POSTS are still visible, the PAGES show up blank, even though their content is saved in the WordPress software on my site. I realized the admin account I was in was the new one made by the Hacker, so I created a new account for myself, attributed everything to me, and deleted the hacker admin account. There is now only one admin account, which is mine. The PAGES still show up blank.

    I'm not familiar with databases, so my only guess left is that something's wrong with that. Either that, or it may be from some plugins I installed and have since deleted since I decided I don't like that. One plugin involved adding a line to the original page.html of your theme, so maybe that borked it.

    Any and all help is appreciated. Thank you.

  2. ancawonka
    Member
    Posted 2 years ago #

    Have you tried making a new page? Does that show up blank as well?

    What about when you change your theme? Do the pages show up then?

  3. StrawburryMiwk
    Member
    Posted 2 years ago #

    Have you tried making a new page? Does that show up blank as well?

    Making a new page also appears blank, no source code.

    What about when you change your theme? Do the pages show up then?

    Hmm, changing the theme to WordPress Default 1.6 by Michael Heilemann lets the pages and their content appear and function as intended.

    This doesn't make much sense because outside of being Hacked, the theme I use (my modified version of "Cellar Heat") has always worked fine.

    Thoughts?

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

    The fact that the default theme works but your old theme doesn't suggests that you have an error in your theme. In your place, I'd start looking at functions.php and header.php.

  5. ancawonka
    Member
    Posted 2 years ago #

    The reason your page shows up blank is that there is some error in your theme code (either because of the theme, or because of a plugin), AND your web host isn't showing the PHP error (which would be very helpful, but open your up to potential future shenanigans).

    You might try this:

    1) If you have a page.php file, rename it to something else (like page-not.php). Then, your pages will display using the default functionality in index.php. Since posts appear to be functioning properly, there's a good chance this will resolve your problem.

    2) if you don't have a page.php file, search in your theme code for the text "is_page". (this would do something special in case it's a page).

    Good luck!

  6. StrawburryMiwk
    Member
    Posted 2 years ago #

    RESOLVED.

    The problem was indeed the plugin I was trying to use, called "The Attached Image". I reverted my page.php before I made the changes for the plugin and now it works.

    Thanks for the replies, anyway. :-)

  7. leish
    Member
    Posted 1 year ago #

    Hi there, I am having the same problem but as even more of a novice can not figure out how to attempt either of the two suggestions to resolve the problem.

    Can anyone shed anymore light? I would really appreciate it!

  8. Seye Kuyinu
    Member
    Posted 1 year ago #

    Hello Leish, I suggest you go through the check routine yourself.

    First of all, check that another theme works on your WP site, if it does, then your theme is problematic. If not check for your .htaccess file in your server's root directory. Check to see if it's there. Also, you may want to uninstall your plugins also.

Topic Closed

This topic has been closed to new replies.

About this Topic