Index page corrupt : "Sorry the page you looking for had been deleted"

Discussion in 'WordPress' started by JakeThePeg, Oct 26, 2009.

  1. #1
    I've just been toying with a couple of different themes on my blog, tshirt alert.

    When I switched back to my proper theme, it all went pear-shaped!

    Now all I see on the index page is the header, sidebar and footer, plus Sorry the page you looking for had been deleted.

    I've also tried creating a static home page using the same code as the current Index page (index.php), and this yielded the same result.

    Does anyone have any clues what could have possibly gone wrong here?
     
    JakeThePeg, Oct 26, 2009 IP
  2. getadviced

    getadviced Well-Known Member

    Messages:
    557
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    130
    #2
    can't tell anything based on the information you have provided.
    Can u post the index.php file?
     
    getadviced, Oct 26, 2009 IP
  3. JakeThePeg

    JakeThePeg Active Member

    Messages:
    230
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    I don't think it's the index file, I tried another theme and exactly the same message appeared. Regardless, here's the Index file (which is exactly the same as it was yesterday, when it was working :) )

    Index.php
    
    
    <?php get_header(); ?>
    
    <div id="post-entry">
    
    <?php featuredposts(); ?>
    
    <?php if (have_posts()) : ?>
    
    <?php while (have_posts()) : the_post(); ?>
    
    <div class="post-meta" id="post-<?php the_ID(); ?>">
    <div class="top-meta">
    <div class="post-title">
    <div class="imgauthorthumb" ><a href="<?php bloginfo('url'); ?>/?author=<?php the_author_ID(); ?>"><?php userphoto_the_author_thumbnail(); ?></a></div>
    <div class="authorname"><a href="<?php bloginfo('url'); ?>/?author=<?php the_author_ID(); ?>"><?php the_author_firstname(); ?> <?php the_author_lastname(); ?></a>&nbsp;<?php _e('brings to you:'); ?></div>
    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
    
    </div>
    </div>
    
    <div class="post-content">
    <div class="post-author"><b><?php the_time('l, F jS Y') ?>&nbsp;&nbsp;&nbsp;<?php edit_post_link('edit'); ?></b></div><br>
    <?php the_content('...click here to read more'); ?>
    
    <?php include (TEMPLATEPATH . '/submit.php'); ?>
    <?php include (TEMPLATEPATH . '/ratings.php'); ?>
    
    
    <?php if($postcount < 4): ?>
    
    <!--[if !IE]> if you want to used your own google tracking code. just replace the code inside the p tag<![endif]-->
    
    <p>
    <!-- You will NOT be able to see the ad on your site! This unit is hidden on your page, and will only display to your search engine traffic (from US and CA). To preview, paste the code up on your site, then add #chitikatest=mortgage to the end of your URL in your browser's address bar.  Example:  www.yourwebsite.com#chitikatest=mortgage. This will show you what the ad would look like to a user who is interested in "mortgages." -->
    <script type="text/javascript"><!--
    ch_client = "JakeThePeg";
    ch_type = "mpu";
    ch_width = 468;
    ch_height = 180;
    ch_non_contextual = 4;
    ch_vertical ="premium";
    ch_sid = "Tshirt Alert Home Page";
    var ch_queries = new Array( );
    var ch_selected=Math.floor((Math.random()*ch_queries.length));
    if ( ch_selected < ch_queries.length ) {
    ch_query = ch_queries[ch_selected];
    }
    //--></script>
    <script  src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript">
    </script>
    </p>
    
    <!--[if !IE]> end if 3 loop in post <![endif]-->
    
    <?php endif; ?>
    
    <p class="enjoyit"><a href="<?php bloginfo('rss2_url'); ?>">If you enjoyed this post, feel free to subscribes to our rss feeds</a></p>
    </div>
    
    
    <?php include (TEMPLATEPATH . '/social.php'); ?>
    
    </div>
    
    <?php $postcount++; ?>
    
    <?php endwhile; ?>
    
    <?php include (TEMPLATEPATH . '/paginate.php'); ?>
    
    <?php else: ?>
    
    <?php include (TEMPLATEPATH . '/result.php'); ?>
    
    <?php endif; ?>
    
    </div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    
    Code (markup):
     
    JakeThePeg, Oct 26, 2009 IP
  4. JakeThePeg

    JakeThePeg Active Member

    Messages:
    230
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    anyone? I am really a bit flustered about this issue - it's not pretty!
     
    JakeThePeg, Oct 27, 2009 IP
  5. JakeThePeg

    JakeThePeg Active Member

    Messages:
    230
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Database must have been corrupt, I restored it to a backup from a week ago, and it's now all fine again! Yay!
     
    JakeThePeg, Oct 27, 2009 IP
  6. JakeThePeg

    JakeThePeg Active Member

    Messages:
    230
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    table was corrupt. fingers crossed anyone else who had this problem is backing up their database, cos you're gunna need to restore
     
    JakeThePeg, Oct 30, 2009 IP