Last modified: 2012-06-19 21:09:38 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 T38777, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36777 - [SRF] [calendar]1.8 alpha; Using template option produces Invalid argument supplied for foreach()
[SRF] [calendar]1.8 alpha; Using template option produces Invalid argument su...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticResultFormats (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-11 17:49 UTC by MWJames
Modified: 2012-06-19 21:09 UTC (History)
2 users (show)

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


Attachments

Description MWJames 2012-05-11 17:49:18 UTC
The following #ask call

{{#ask:
  [[Category:News item]]
  [[News date::>{{#calendarstartdate:}}]]
  [[News date::<{{#calendarenddate:}}]]
  |?News date
  |format=calendar
  |template=Query/Scenario/Calendar/Template
}}

do not display any content via the template but instead produces:

Warning: Invalid argument supplied for foreach() in /srv/semantic-mediawiki_org/www/w/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php on line 186

An actual example can be seen at [1] using Semantic Result Formats (Version 1.8 alpha) (r113946)

[1] http://www.semantic-mediawiki.org/w/index.php?title=Special:RunQuery/Query/Scenario&month=3&year=2012&title=Special:RunQuery/Query/Scenario&sf_free_text=&wpRunQuery=Run%20query&Query/Scenario[scenario]=Calendar&Query/Scenario[lang]=en
Comment 1 Yaron Koren 2012-06-19 21:09:38 UTC
Hi,

I believe this is finally fixed - I had a fix a while ago, but I wasn't able to check in anything on Git until today. Anyway, I'm marking this as fixed - feel free to re-open if there are any problems.

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


Navigation
Links