Support » Fixing WordPress » PHP code only on login page

Viewing 10 replies - 1 through 10 (of 10 total)
  • delete the config file from the wp folder and drop all the tables in your wp database
    and try to reinstall

    Thanks for the suggestion. Unfortunately, it didn’t seem to help. I know that the tables were cleared earlier today so the message saying I should still do it is odd.

    Here’s the link to the page in case that helps (

    Here’s the blog main page (
    And the login page (

    thats very weird, ok here is my suggestion, delete the database, make a new user with a new database, than download a nee copy of wordpress and try to install again, i just can;t see what is causing this, and put the wordpress install in a new folder on the your server, lets see if its installs, if not than it must be the hosting, or the php on the server

    So basically, start from scratch…sigh. Oh well, I suppose it’s better than slamming my head into the wall every 5 minutes 🙂

    Thanks for your help.

    yeah and once you have a working install, you can migrate the posts files form the wp-content folder and the database of the posts, but its kinda tricky, but doable

    Will it help that I (luckily) exported the blog before it went all screwy? Will I be able to just import the .xml file?

    yeah it should 🙂 , did you also save the wp-content, where all the images and so on is saved

    I was saving images in another folder, which I backed up. In future I’ll keep it all in wp-content. I found another thread that suggested the PHP processor on the server isn’t processing the php code, which is why it’s serving that instead. It makes sense, especially since I’ve since uploaded a phpinfo.php file, which doesn’t display at all. I’m getting my hosting company to check PHP and Apache and see if that makes a difference. I’ll post here if that was the problem.

    Thanks for you help.

    I am having the same problem. At first, the main index page for the blog was just blank. I saw that the .htaccess file had been modified. I could not tell what was done to it, so I wrote a new one and put the right code in it and this fixed the blog’s index page and everything to appear as normal from the outside. But I am getting the same when I try to log in:

    publish) ) { // with feeds, anyone can tell how many posts there are. Just unlink if…

    I tried rewriting all of the wp-admin files and that did not help.

    On the page with this garbled text, there are a couple of links that go to other admin areas. I clicked on one and got a normal looking admin page. It looks like the problem is that wp-admin/ is not forwarding to wp-admin/index.php. /wp-admin/index.php and everything after it seems to function and look fine.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘PHP code only on login page’ is closed to new replies.