Page MenuHomePhabricator

[SRF] [calendar]1.8 alpha; Using template option produces Invalid argument supplied for foreach()
Closed, ResolvedPublic

Description

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


Version: unspecified
Severity: normal

Details

Reference
bz36777

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:20 AM
bzimport set Reference to bz36777.

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.