Blank Pages in WordPress when changing themes

Whoopsie, I broke my WordPress installation (it’s fixed now obviously!) I switched to another theme/template and when it tried to refresh both the frontend, and admin area were just blank.

Going through the path of logic, I started at the beginning to find the bottleneck. The “index.php” file was fine, this then requires “wp-blog-header.php” which in turn requires “wp-load.php”. From then on I was just blagging my way through, because at that point I got lost. Logic isn’t my strongpoint.

Anyways, it turns out to be a theme problem, here’s the fix.

  1. Login to your phpMyAdmin and select your WordPress database.
  2. Go to the wp_options table.
  3. Find option_id 49 and 50 which relate to the template and stylesheet.
  4. Change these to another template which you had installed, or if you still have default installed, just change the value of these fields to “default” without the quotes.

Then simply visit your website and things should load normally!

2 thoughts on “Blank Pages in WordPress when changing themes”

Leave a Reply