WordPress.org

Ready to get started?Download WordPress

Forums

recovering index.php? (8 posts)

  1. revolute
    Member
    Posted 8 years ago #

    I stupidly attempted to link my wordpress to Blogger, and was going to direct blogger to an index2. Somehow, it hijacked index.php.

    When I go into wp-admin, all of my posts are still there, however, when I view site - nothing appears live online.

    Posts, categories, comments are still in admin, in other words, I just have to figure out how to re-publish it so it shows up when you go to the site!

    Andy
    http://www.everythingbetween.com

  2. leita
    Member
    Posted 8 years ago #

    Andy, the same thing just happened to me today. I changed the name of the bad file (in my case it was index.html) to something else, i.e. indexbad.html, edited my most recent post and the correct page then loaded.

    I'm new to WP so there's probably a better way to solve the problem but it worked for me.

    Good luck.

  3. revolute
    Member
    Posted 8 years ago #

    Thanks. I've tried all kinds of things - including this and cannot get it to work. Fortunately all appears to NOT be lost on the wp-admin page, however, I cannot seem to find the posts or get them live no matter what I change the index page to, via the WP software, or FTP.

  4. revolute
    Member
    Posted 8 years ago #

    So basically, I still can't figure this out - searched everywhere and its probably in the end a mindless troubleshooting problem.

    But, for example, even when I post, it will show up on the wp-admin page, but nothing shows up on my site. I cannot find where in the files these posts / comments are databased. Someone please help.

  5. amory
    Member
    Posted 8 years ago #

    First off, the information is stored under your MySQL database. The files are only the interface and workings of it. Could you post your index file to http://pastebin.com/ for us to see if we can figure out what is wrong.

  6. revolute
    Member
    Posted 8 years ago #

    thanks for responding - i have done away with my index file, however. is there a template index.php i can use to redirect? I'm having trouble accessing the mySQL from my server right now. Any chance you have a template for a wordpress index that I can reformat?

    Thanks again

  7. Potter_System
    Member
    Posted 8 years ago #

    I guess you wrote index.php . Maybe you can download WordPress files again, and upload only index.php file to your server in the folder usually was that file (if you are using WordPress 1.5 or over, and you're using a WordPress theme too).

    I think that should be enough ;)

  8. amory
    Member
    Posted 8 years ago #

    Did you do away with the index.php file under the wordpress directory or under the themes/yourthemehere/ directory?

    If the earlier then here is the code:http://pastebin.com/356942
    If the latter then I do not know what theme you were using. Here is the classic theme's file: http://pastebin.com/356943

Topic Closed

This topic has been closed to new replies.

About this Topic