https://bugzilla.wikimedia.org/show_bug.cgi?id=37383
Web browser: ---
Bug #: 37383
Summary: [SRF] 1.8 alpha; SRFGallery::addImageToGallery()
instance of Title, null given
Product: MediaWiki extensions
Version: master
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: SemanticResultFormats
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
## 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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l