echo "hey, it works" > /dev/null

just enough to be dangerous

WordPress woes


Okay, this isn't going so well. I've edited the About page, and now I get a 404 on it. I'm sure it worked before, and all I did was edit content. And none of the category links are working either. I started mucking with the theme code, I'm pretty knackered at the moment, and that's not the best time to start hacking with themes, but I can't see that I would have done anything bad. I'm not sure what I broke.

[Update: hmm, not even the links to posts work]

Importing my blogroll


I subscribe to a whole lot of feeds (well, a whole lot for me is about 30, I don't know how people pretend to keep up with thousands). There's this blogroll feature on WordPress, so I think, wouldn't it be great if I could just import my feeds to the blogroll. Turns out you can. In theory.

I log in as admin and click "Blogroll", and I see an "Import Links" tab, where I can import links as OPML. All good, I've heard of OPML. I successfully export all my feeds from NetNewsWire, and try to upload them to WordPress.

Unable to create directory /home/xnwq/public_html/twofish/michael/blog/wp-content/uploads/2007/02. Is its parent directory writable by the server?

Well, no, uploads doesn't exist. The default installation doesn't have anywhere to upload to. And if I create an uploads directory I have to give it at least 707 permissions so that the server can upload to it. I'm no expert, but that's bad, right? As an experiment, I change the permissions of the wp-content directory to 707, and sure enough, the server creates the uploads directory - with 707 permissions owned by the server. I'm not comfortable with that, so I delete the directory and change the permissions back.

However, just because WordPress created the directory doesn't mean everything was okay except the permissions.

XML error: Invalid document end at line 1

Not a particularly good error message, and actually incorrect. The file is indeed valid XML. Okay, let me be more precise; the file is well-formed XML, I haven't validated it against an OPML schema or DTD.

Hmm, more investigation required on both counts.