All my posts give 404 errors!!! Scary error from WP Super Cache update

I just had a scary experience – I went to edit a post on a WordPress install, everything was fine in the admin panel but when I hit ‘preview’ all I got was a 404 error! Whaaaaaat?!

Thinking maybe it was a one off server error I checked some other posts – they were all 404 too! Scary!

Assuming it might be caused by a plugin I had recently deactivated (I’ve been making an effort to clean up my plugin usage lately), I immediately went to the Plugins page and there I noticed a highlighted note about WP Super Cache being deactivated because I needed to save the settings.

I had recently updated WP Super Cache and I must have been in a hurry because I didn’t notice this note at the time.

I re-configured the settings and activated WP Super Cache and thankfully – no more 404 errors!

I think my posts were probably out of action for about a week so this could be very damaging to active blogs (luckily this was on one of my less active websites).

If you’re seeing all of your posts getting 404 errors and you’ve recently updated or installed WP Super Cache, you could be seeing the same error – so go ahead and check your settings!

WordPress error “Unable to create directory uploads/2013/04. Is its parent directory writable by the server?”

Today I was working on a WordPress site and received this error when I tried to upload an image:

“Unable to create directory uploads/2013/04. Is its parent directory writable by the server?”

I immediately went to my FTP program and changed the permissions on the uploads directory to ‘777’ – this didn’t fix it.

So I started googling to see if this was a known error and how it could be fixed. Other people were having the error and it was suggested that people go (in the WordPress admin panel) to Settings > Media and change the setting so that files are not stored in date based folders.

Doing this made me realise what the actual error was – I had changed hosting servers a few months previously so the file path that WordPress had stored in the database was no longer correct! I had forgottten about the change and expected WordPress to just keep working as normal.

In the ‘Store uploads in this folder’ section of the Media > Settings page I updated the setting to my new server path:


and all is well :)

(*Update: As of WordPress version 3.5 there is no longer a ‘Store uploads in this folder’ option in the admin panel. There is a handy plugin from ‘RVOLA’ here that should do the trick: wp-original-media-path/ and some other suggestions in the comments below)

I thought I’d make a quick post about this here on my blog just in case it’s helpful to anyone else who has this problem. Hey we all forget things from time to time!