WordPress returns a blank page

Here’s a pro tip for anyone working with WordPress.  If you’re ever faced with a completely blank page when you visit your site, check that the theme you are meant to be using actually exists.  I just spent about half an hour checking permissions and error logs for my development environment, only to find that when I backed up the theme I was working on I inadvertently cut the theme’s folder instead of copy it.  It appears that when WordPress doesn’t find the theme it is meant to use it just returns an empty page instead of an error message.  Better than an error message, it could even try using the default theme and email the adminstrator that something has gone wrong with their chosen theme.  I’m using WordPress 2.7 at the moment, so if this is version specific or shouldn’t be happening, can someone please leave a comment or email me.

Given that WordPress appears to be open source, maybe I should attempt to write such a fix and finally contribute to an open source project like I’ve been planning to.

One thought on “WordPress returns a blank page

  1. It’s still doing this in 4.0. Despite forgetting that this post existed, at least it only took me a couple of minutes to realise what was going on.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>