Skip to content

[calendar] Calendar format through Special:Ask-page gives fatal error #990

@djoris

Description

@djoris

Issue seen in previous versions of SMW, but at least in current version of Semantic Result Formats 5.1.0

When the calendar format is invoked through the Special:Ask page, a Fatal exception is thrown.
Easiest STR is trying a direct URL to Special:Ask with the query URL:
https://sandbox.semantic-mediawiki.net/wiki/Sp%C3%A9cial:Requ%C3%AAter/-5B-5BModification-20date::%E2%89%A52026-5D-5D/-3FModification-20date/mainlabel%3D/offset%3D0/format%3Dcalendar

The same query invoked as inline query gives no error: https://sandbox.semantic-mediawiki.net/wiki/Minimal_Calendar

Seemingly any query through Special:Ask gives this issue.

The error message received on our own installation:

[bea7463b45f3c6e0972412cd] /index.php?title=Special:Ask& Error: Call to a member function updateCacheExpiry() on null

Backtrace:

from INSTALLATIONDIRECTORY/extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php(330)
#0 INSTALLATIONDIRECTORY/extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php(273): SRFCalendar->displayCalendar(array)
#1 INSTALLATIONDIRECTORY/extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php(78): SRFCalendar->getResultText(SMW\Query\QueryResult, int)
#2 INSTALLATIONDIRECTORY/extensions/SemanticMediaWiki/src/Query/ResultPrinters/ResultPrinter.php(302): SRFCalendar->buildResult(SMW\Query\QueryResult)
#3 INSTALLATIONDIRECTORY/extensions/SemanticMediaWiki/src/MediaWiki/Specials/SpecialAsk.php(493): SMW\Query\ResultPrinters\ResultPrinter->getResult(SMW\Query\QueryResult, array, int)
#4 INSTALLATIONDIRECTORY/extensions/SemanticMediaWiki/src/MediaWiki/Specials/SpecialAsk.php(307): SMW\MediaWiki\Specials\SpecialAsk->fetchResults(SRFCalendar, SMWQuery, SMW\Utils\UrlArgs)
#5 INSTALLATIONDIRECTORY/extensions/SemanticMediaWiki/src/MediaWiki/Specials/SpecialAsk.php(167): SMW\MediaWiki\Specials\SpecialAsk->makeHTMLResult()
#6 INSTALLATIONDIRECTORY/includes/specialpage/SpecialPage.php(728): SMW\MediaWiki\Specials\SpecialAsk->execute(null)
#7 INSTALLATIONDIRECTORY/includes/specialpage/SpecialPageFactory.php(1717): MediaWiki\SpecialPage\SpecialPage->run(null)
#8 INSTALLATIONDIRECTORY/includes/actions/ActionEntryPoint.php(504): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#9 INSTALLATIONDIRECTORY/includes/actions/ActionEntryPoint.php(146): MediaWiki\Actions\ActionEntryPoint->performRequest()
#10 INSTALLATIONDIRECTORY/includes/MediaWikiEntryPoint.php(200): MediaWiki\Actions\ActionEntryPoint->execute()
#11 INSTALLATIONDIRECTORY/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#12 INSTALLATIONDIRECTORY/wikiroot/index.php(7): require(string)
#13 {main}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions