Page MenuHomePhabricator

"Invalid call hook poem" with refreshLinks.php
Closed, ResolvedPublic

Description

I've successfuly imported the dumps ptwikisource-20080108-pages-meta-current.xml.bz2 and ptwikisource-20080108-interwiki.sql.gz on my XAMPP 1.6.5 @ WinXP Home SP2. But running php refreshLinks.php I get this error:

C:\xampp\htdocs\w>php maintenance\refreshLinks.php
Refreshing links table.
Starting from page_id 1 of 32897.
100
200
300
400
500
600
700
800
900
1000
1100
1200
Invalid call hook poem
Backtrace:
#0 C:\xampp\htdocs\w\includes\Parser.php(5474): Parser->extensionSubstitution(Ar
ray, Object(PPTemplateFrame))
#1 C:\xampp\htdocs\w\includes\Parser.php(5497): PPFrame->expand(Object(DOMElemen
t), 0)
#2 C:\xampp\htdocs\w\includes\Parser.php(5497): PPFrame->expand(Object(DOMElemen
t), 0)
#3 C:\xampp\htdocs\w\includes\Parser.php(3439): PPFrame->expand(Object(DOMDocume
nt))
#4 C:\xampp\htdocs\w\includes\Parser.php(5427): Parser->braceSubstitution(Array,
Object(PPFrame))
#5 C:\xampp\htdocs\w\includes\Parser.php(5497): PPFrame->expand(Object(DOMElemen
t), 0)
#6 C:\xampp\htdocs\w\includes\Parser.php(5497): PPFrame->expand(Object(DOMElemen
t), 0)
#7 C:\xampp\htdocs\w\includes\Parser.php(3172): PPFrame->expand(Object(DOMDocume
nt), 0)
#8 C:\xampp\htdocs\w\includes\Parser.php(949): Parser->replaceVariables('<!-- ??

  1. CABE?...')

#9 C:\xampp\htdocs\w\includes\Parser.php(329): Parser->internalParse('<!-- ??1.
CABE?...')
#10 C:\xampp\htdocs\w\maintenance\refreshLinks.inc(113): Parser->parse('<!-- ??1
. CABE?...', Object(Title), Object(ParserOptions), true, true, 50983)
#11 C:\xampp\htdocs\w\maintenance\refreshLinks.inc(69): fixLinksFromArticle(1290
)
#12 C:\xampp\htdocs\w\maintenance\refreshLinks.php(44): refreshLinks(1, NULL, NU
LL, NULL, NULL)
#13 {main}

I'm using r29984 atm with this additional config:

$wgExtraNamespaces[100] = "Portal";
$wgExtraNamespaces[101] = "Portal Discussão";
$wgExtraNamespaces[102] = "Autor";
$wgExtraNamespaces[103] = "Autor Discussão";
$wgExtraNamespaces[104] = "Galeria";
$wgExtraNamespaces[105] = "Galeria Discussão";
$wgExtraNamespaces[106] = "Página";
$wgExtraNamespaces[107] = "Página Discussão";
$wgExtraNamespaces[108] = "Em Tradução";
$wgExtraNamespaces[109] = "Discussão Em Tradução";
$wgExtraNamespaces[110] = "Anexo";
$wgExtraNamespaces[111] = "Anexo Discussão";

require_once( 'extensions/Cite/Cite.php' );
require_once( 'extensions/ImageMap/ImageMap.php' );
require_once( 'extensions/inputbox/inputbox.php');
require_once( 'extensions/LabeledSectionTransclusion/lst.php' );
require_once( 'extensions/ParserFunctions/ParserFunctions.php' );
require_once( 'extensions/Poem/Poem.php');


Version: 1.12.x
Severity: normal

Details

Reference
bz12705

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:06 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz12705.

Seeing this with poem, imagemap, and ref at least. Something definitely awry.

(No problems when running with old parser class.)

Setting blocking on the tracking bug and assigning to Tim.