Thread:Extension talk:RandomImageByCategory/HTTP 500 Internal Server Error

We installed this on our internal wiki but when we try and use it we get an 'HTTP 500 Internal Server Error' - any ideas?

Other pages are not affected, just once we add the parser to the page with a valid category.