Error with PHP 5.3+

Jump to: navigation, search

The following error occurs with SmoothGallery extension and PHP 5.3:

Detected bug in an extension! Hook smoothGalleryParserOutput failed to return a value

This is solved by changing the line in SmoothGallery.php:

function smoothGalleryParserOutput( &$outputPage, &$parserOutput )  {

to:

function smoothGalleryParserOutput( &$outputPage, $parserOutput )  {

Mediawiki specifies that the second parameter is not a reference, and when it was one, it broke the hook completely.

Robnich23:29, 1 August 2010

I'm pretty sure I already have this fix in SVN. If not, it is sitting on my local system waiting to be checked in.

Ryan lane13:37, 2 August 2010
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox