Last modified: 2012-06-08 21:19:34 UTC
## Error Catchable fatal error: Argument 2 passed to SRFGallery::addImageToGallery() must be an instance of Title, null given, called in ...\extensions\SemanticResultFormats\Gallery\SRF_Gallery.php on line 166 and defined in ...\extensions\SemanticResultFormats\Gallery\SRF_Gallery.php on line 181 ## Query {{#ask: [{...:: ...]]|?Has caption|autocaptions=no|format=gallery|galleryformat=carousel|captionproperty=Has caption}} ## Problem The statement [{...:: ...]] caused the error, mainly because of { instead of [ ## Solution Make sure $imgTitle is not null Line 163 (current gerrit branch) + if ( is_null( $imgTitle) ) continue; I haven't had the time to make patch therefore I keep this as reminder.
Gerrit change #10733