WordPress 2.7 – Smooth rollout

20060618 - the mess that is my computer right ...

I’ve rolled out WordPress 2.7 to around 15 blogs so far and haven’t had any issues at all. I’ve had a couple of friends who have had problems, but it was always plugins that caused a problem. It is imperative to remember to deactivate plugins before pushing an update out. Ok, strictly speaking it’s only those that modify database tables that need deactivation, but for the normal user, deactivating all plugins is a sure way to make sure you won’t have any problems.

The great news is that the next update of WordPress will be pretty easy, as the software now takes care of itself. You could compare it to taking one diet pill and not having any weight problems ever again. Upgrading is a matter of going to your Tools menu and selecting Upgrade. Goodbye FTP, goodbye Fantastico; WordPress just rocks!

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.