Found any bugs yet?

Well, the November bug hunt has finally kicked off and if you were thinking of taking part then there’s not much time left. Unfortunately I just don’t have the bandwidth to take part, the twins have really sucked away any free time I had and I have a huge pile of things that are in my to do list.

I am looking forward to the new version of WordPress (2.9) being released soon, and thanks to the one-click upgrade it should be relatively easy to roll it out to my blogs. No more uploading or looking for disk mounts. Just one click and away we go.

Go find some bugs

WordPress Error: You do not have sufficient permissions to access this page

If you upgrade WordPress and get:

WordPress Error: You do not have sufficient permissions to access this page

you might have had a problem whereby WordPress thinks you’ve completed the upgrade but in fact some things have been left unfinished.

If this is the case, you can find a fix here. You’ll need to download a fix and run it on your server but I’ve had great success with it fixing this problem.

Call to undefined function: wp()

I came across a frustrating bug today that has a pretty simple solution. I had an installation of WordPress that had been created by Fantastico. I needed to modify wp-config.php, but once I saved it back to the server WordPress just refused to start. It returned the following error:

Call to undefined function: wp() in wp-blog-header.php

Anyway, I tried a number of different things to resolve the issue and almost ended up tearing my hair out, but in the end I managed to resolve it. Turns out that the line endings in the wp-config.php file created by Fanstastico aren’t standard CR/LFs. When I opened the file up in Notepad2, my text editor of choice, they appeared to me “Mac-type” line terminations. Setting these to normal CR/LFs and deleting any extra lines at the end of the file resolved the issue.