Last modified: 2012-06-08 21:19:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39383, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37383 - [SRF] 1.8 alpha; SRFGallery::addImageToGallery() instance of Title, null given
[SRF] 1.8 alpha; SRFGallery::addImageToGallery() instance of Title, null given
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticResultFormats (Other open bugs)
master
All All
: Unprioritized minor (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-06 22:57 UTC by MWJames
Modified: 2012-06-08 21:19 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MWJames 2012-06-06 22:57:48 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.
Comment 1 Jeroen De Dauw 2012-06-08 21:19:34 UTC
Gerrit change #10733

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links