Empty page after posting comments fixed

It seems that anyone posting a comment on my blog (and me, when I created posts) got a completely empty page. The comment or post was saved successfully, but no page was displayed afterwards.

A quick look in the error logs showed the following:


[Sat Dec 20 14:18:56 2008] [error] [client 82.18.18.58] PHP Catchable fatal error: Object of class WP_Error could n
ot be converted to string in /websites/davidp/blog/wordpress-svn/wp-content/plugins/sitemap/sitemap.php on line 1026

So, it was the Google Sitemaps plugin causing the problem – disabling it cured the issue. I’ll see if there’s a newer version of the plugin which solves this.