Closed gesinn-it-gea closed 1 year ago
This happens during an api call to api.php?action=pfautoedit
A quick workaround (to be validated and test covered) is:
if ( $this->params['captiontemplate'] !== '' && gettype($ig->mParser) == "object" ) {
$templateCode = "{{" . $this->params['captiontemplate'] .
"|imageraw=".$imgTitle->getPrefixedText()."|imagecaption=$imgCaption|imageredirect=$imgRedirect}}";
$imgCaption = $ig->mParser->recursiveTagParse( $templateCode );
}
This also happens when moving a page that contains a query with format gallery using a caption.
Steps to reproduce:
Display Title
CAPTION
for the image caption: [[:{{{imageraw}}}|{{{imagecaption|}}}]]
TEST
with the following content:
{{#ask: [[Category:File]]
|?Display title of
|format=gallery
|captionproperty=Display title of
|captiontemplate=RT Gallery Caption
|limit=3
}}
Error from line 341 of [...]/Gallery.php: Call to a member function recursiveTagParse() on bool