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.

MAMP After Upgrading to Leopard

I just went to do some work on a WordPress theme for my girltrond and discovered that upgrading to Leopard has broken my MAMP setup.  Here is a quick rundown on what I’ve done to fix it.  First of all, trying to visit pages under my user account’s Sites folder left me with a HTTP 403 Forbidden error. In order to fix this I follwed the instructions on Apple’s support site.

Next, to get PHP running.  I was using entropy to get PHP5 with Tiger, however it appears that Leopard includes a PHP5 install by default.  To enable it, we need to edit Apache’s configuration file (httpd.conf) which you can do with the following command in Terminal (under Utilities):


sudo nano /etc/apache2/httpd.conf

Continue reading