wordpress

In September 2008 I will be heading off to Mekelle University in northern Ethiopia for a year on a VSO placement, training teachers in IT and helping to improve the universities IT infrastructure. You'll be able to track my progress, both preparation and whilst I'm away on the blog below...

Simple as Pie

alex August 8th, 2008

The eagle eyed amongst you will have noticed that I’ve added a ‘VSO feeds’ section to the side bar. I wanted to be able to aggregate feeds from other VSO volunteers to show on my site, unfortunately the RSS widget built into Wordpress won’t aggregate feeds for you - you’d need to create a new wdiget for each feed - not really what I wanted.

However, I did find the SimplePie Plugin for Wordpress which has done exactly what I needed and was very straightforward to get up and running. The display is all done via templates and is very configurable. The only (very small) niggle that I have is that you need to specify the feed urls in the code, rather than in the Wordpress admin pages, e.g.

<?php
echo @SimplePieWP(array(
     'http://markvso.blogspot.com/feeds/posts/default',
     'http://siddypen.wordpress.com/feed',
     http://nonoincambodia.blogspot.com/feeds/posts/default'
      ), array(
     'items' => 10,
     'date_format' => 'j M Y',
     'truncate_item_description' => 100
  ));
?>

At the moment I’m only showing feeds from 3 blogs, but if you have a feed that you’d like me to add then please send it on.

Rather unfortunately the blogging system that VSO uses (http://www.vso-stories.net/) doesn’t provide RSS feeds of the postings (!) - though it does provide an email subscription service. So there are several other blogs I’d like to include in my aggregator which would be very relevant, e.g. Julian Bass’s blog, but I can’t until vso-stories provides an RSS feed factility :-(

Wordpress 2.5 - Error uploading to Media Library

alex April 22nd, 2008

Whilst writing my previous post and trying to upload the relevant screenshot using the ‘add media’, I kept getting the (rather unspecific) error message: “HTTP Error, An error occurred in the upload. Please try again later.”

There’s a Wordpress forum thread which mentions this error (plus other problems people are having with the Media Library), but the easiest solution I found was just to edit the .htaccess file.

WPOpenID debug messages in PHP logs

alex April 3rd, 2008

Have just updated this site to the most recent version of WordPress, which was as easy as ever ;-) I do like the new admin interface too!

However on upgrading I noticed quite a large PHP error_log file which seems to consist mainly of messages like this:

[03-Apr-2008 08:46:31] -------------------wpopenid-------------------
[03-Apr-2008 08:46:31] WPOpenID Status: file:error_log [info]: Logging errors via PHP's
error_log faculty to: error_log
[03-Apr-2008 08:46:31] WPOpenID Status: userinterface hooks: Enabled (finished including
and instantiating, passing control back to wordpress)

Turns out that debugging for WPOpenID is on by default, and you can only change the setting by changing the code - rather than through the admin pages :-(

Anyway, all I needed to do to stop the constant entries into the log was change the \wpopenid\openid-registration.php file so that WORDPRESSOPENIDREGISTRATION_DEBUG was set to false (line 20).