Extension talk:RandomImage/Archive

Please submit bug reports and feature requests for this extension to the extension's maintainer, Rob Church, via email.

Method renderHook not loading
An email was sent to Rob Church, this is just to document the bug and provide a fix.

When installed and tested on MediaWiki 1.10.0, and 1.11.0, the extension would not render an imagebox and provided the following warning: Warning: call_user_func_array [function.call-user-func-array]: Unable to call RandomImage::renderHook in ${IP}/mediawiki-1.11.1/includes/Parser.php on line 626

The fault appears to be in the declaration of the renderHook method on line 48 of RandomImage.php If you modify;

$wgparser->setHook( 'randomimage', 'RandomImage::renderHook' ); to; $wgParser->setHook( 'randomimage', array('RandomImage', 'renderHook')); the method becomes accessible and the extension works. --~