DB system (MySQL, Blazegraph, etc.) and version: MariaDB 10.1.44
Issue
A request in calendar format results in the following error:
Error from line 327 of /var/www/mediawiki/extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php: Call to undefined method Parser::disableCache()
Bug solved by replacing $parser->disableCache();with $parser->getOutput()->updateCacheExpiry(0); line 327 in extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php
Three types of warnings are then displayed:
Notice: Array to string conversion in extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php on line 372
Notice: Array to string conversion in extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php on line 374
Warning: Cannot modify header information - headers already sent by (output started at extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php:374) in includes/WebResponse.php on line 74
Steps to reproduce the observation (recommendation is to use the sandbox):
Example of calendar request not found in sandbox
Setup
Issue
A request in calendar format results in the following error:
Error from line 327 of /var/www/mediawiki/extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.php: Call to undefined method Parser::disableCache()
Bug solved by replacing
$parser->disableCache();
with$parser->getOutput()->updateCacheExpiry(0);
line 327 in extensions/SemanticResultFormats/formats/calendar/SRF_Calendar.phpThree types of warnings are then displayed:
Steps to reproduce the observation (recommendation is to use the sandbox): Example of calendar request not found in sandbox