• Resolved suzstephens

    (@suzstephens)


    I think I accidentally deleted my home page, I guess from my database. I’ve tried uploading new copies of all the various index.php, but that didn’t resolve my problem. What do I need to do to replace my missing homepage?

Viewing 7 replies - 1 through 7 (of 7 total)
  • you cannot delete index.php from your database.

    files are stored on the server, just like they are stored on your home computer.

    posts are stored within the database.

    files control how posts are displayed.

    which index.php did you delete?

    Every theme comes with a unique index.php.
    There is an index.php in the root of your WordPress folder, ie, where wp-config.php is located.

    which index.php did you delete?

    If you deleted a theme index.php you simply need to re-upload the index.php for the theme.

    If you deleted the index.php that normally resides in the root of your WP install, then download a copy of the version of WordPress you are using, unzip it, and upload a new index.php

    And I would really suggest making sure of what you have done, rather than simply “thinking” you did something, and attempting to correct. You really need to ‘know’ what you did, before attempting to undo it.

    Thread Starter suzstephens

    (@suzstephens)

    I would appreciate your patience with me, whooami. This is only my second day of working on my new WordPress installation. I have twelve years experience in Web site design, but am new to both WordPress and php. So if I sound like I don’t know what I’m doing, it’s because I don’t know what I’m doing.

    OK, I’m pretty sure this is what happened: I was trying to install a contact form plugin on my “contact’ page. On my first attempt, I somehow managed to paste the code for it in the post area of my home page. I tried to delete it using Safari and everytime I deleted it, it reappeared. (I learned awhile later that Safari doesn’t work sometimes). So I think that while I was in the window trying to delete the tag, I accidently deleted something more.

    When I go to my blog homepage, instead of post-related stuff in the middle panel, I see “Not Found…Sorry, but you are looking for something that isn’t here.” My Social plug in and edit links are gone.

    http://www.suzstephens.com/blog/

    I uploaded replacement copies of the index.php files to my server, in both the main WordPress folder and in my theme folder.

    http://suzstephens.com/blog/wp-content/themes/bananaidea-10/index.php

    thats a good sign — thats what you ought to see when you call that file directly. that doesnt necessarily account for the content of the file though, it just tells me the file is there.

    what does the index.php look like that you uploaded to the root of your WordPress install? whats inside of it? does it look this?

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    if so, thats the proper file.

    If both those index files are where they need to be, and contain what they need to — then your current issue is caused by something else.

    Something else being that the theme index.php doesn’t show any categories, posts, etc.. Perhaps youve deleted something else?

    Thread Starter suzstephens

    (@suzstephens)

    This is the root index.php file’s contents:
    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-blog-header.php’);
    ?>

    I don’t think there’s anything wrong with the sidebar content on the blog home page. It’s as I would have expected from what I’ve done.

    I have not added any posts to the home page. The only post that used to be there was the …well, I’ve forgotten exactly what it said but it was something like, “Hello, this is your first post.” The Sociable thing used to be above it, as well as an edit link and whatever I’ve forgotten. All that’s gone now.

    when you go into your admin area, is that post still there? You have no categories displayed, which tells me you dont have any categories, or you dont have any posts, since categories are only displayed when they have posts inside them.

    Go make a post 🙂 put it in a category, and see if it shows up on the front page — if its there, you are all good and your problem has been solved 🙂

    Thread Starter suzstephens

    (@suzstephens)

    Adding a post did it! So simple, thanks for your help.

    I had deleted my index.php file(where wp_config is present) thanks for the replacement idea.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘deleted home page’ is closed to new replies.