Blank Posts Page / index.php, everything else works
-
Hi guys,
I have now spent all day searching forums and the Internet for a solution to my problem and I am yet to solve it…
Basically I am working on a site for a client which I recently transferred from my testing server to the server it will be hosted at (but with Private WP active). I built the theme myself, and this morning when I started working on an IE6 css fix and was surveying the amount of “damage” to fix, I realised that the Updates page (page chosen to be the “Posts Page” in the CMS) was just white with no source code. I’m not sure if the page worked when I first transferred everything across but it still works on the testing server, and replacing it with that version did nothing. Only a few media files and one plugin (My Link Order) had been uploaded/installed since.
I saw a lot of people with white pages having other issues with the Admin pages etc but everything on my site works. Every other page and post is visible, I can add/edit/delete posts, pages, plugins, files, links, everything.
I have tried changing permalink structures, removing the plugins, reinstalling the core and removing the static page setting so that the index.php is the home page. In every case, everything works except the page bringing in the blog entries. A sidebar loop that also brings in the posts is outputting fine.
None of the similar posts on the forums seem to have quite my problem and those that do never got replied to strangely… there is a lot of mention of rogue index.html files which i don’t seem to have I have also tried various ways to turn error reporting on and that didn’t seem to work; that or there are no errors being reported.
I have put the theme into other WordPress installations I am working on and it works fine there, even if I install all the same plugins. Conversely, if I install another theme on the broken site that works fine too. As I already mentioned I tried replacing my index file with a different one, as well as removing the content completely to no avail.
I am completely lost at this point and after six hours of getting progressively more confused I am hoping some awesome person over on these forums knows exactly what is up and will shame me epically by revealing it’s the tiniest ever solution to fix it. I can take it, as long as this horror goes away!
I think I may have proven the code of the index page itself isn’t to blame but here it is anyway”
<?php get_header(); ?> <div id="main"> <h2 id="title">Blog</h2> <div id="loop"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class(); ?>> <h2 class="blog-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <p id="meta" class="meta"> Posted on <?php the_time('j F Y H:i'); ?> - <a href="<?php the_permalink(); ?>#comments" title="comments"><?php comments_number('No Comments' ,'1 Comment' ,'% Comments'); ?></a> </p> <?php the_excerpt(); ?> </div> <?php endwhile; ?> <div id="pagination"> <ul> <li class="older"> <?php next_posts_link('Older'); ?> </li> <li class="newer"> <?php previous_posts_link('Newer'); ?> </li> </ul> </div> <?php else : ?> <h2 class="page-title">Nothing Found</h2> <p>Sorry, there are no posts yet.</p> <p><a href="<?php echo get_option('home'); ?>">Return to the homepage</a></p> <?php endif; ?> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
Thank you anyone who helps me solve this one – sadly I am now actually allowed to unhide and link to the site but I hope suggestions will be enough to help me crack it.
– Dan
- The topic ‘Blank Posts Page / index.php, everything else works’ is closed to new replies.