Page MenuHomePhabricator

UploadWizard can't parse from the command line
Closed, ResolvedPublic

Description

manybubbles@deployment-bastion:~$ time sudo -u mwdeploy mwscript extensions/CirrusSearch/forceSearchIndex.php --wiki commonswiki --batch-size=50 --fromId=22259 | tee -a ~/commonswiki.log
Empty $mTitle in OutputPage::parse
Backtrace:
#0 /data/project/apache/common-local/php-master/includes/OutputPage.php(1681): OutputPage->parse('Template:Upload...', true, false)
#1 /data/project/apache/common-local/php-master/extensions/UploadWizard/includes/UploadWizardCampaign.php(177): OutputPage->parseInline('Template:Upload...')
#2 /data/project/apache/common-local/php-master/extensions/UploadWizard/includes/UploadWizardCampaign.php(200): UploadWizardCampaign->parseValue('Template:Upload...')
#3 /data/project/apache/common-local/php-master/extensions/UploadWizard/includes/UploadWizardCampaign.php(223): UploadWizardCampaign->parseArrayValues(Array)
#4 /data/project/apache/common-local/php-master/extensions/UploadWizard/includes/CampaignContent.php(109): UploadWizardCampaign->getParsedConfig()
#5 /data/project/apache/common-local/php-master/extensions/UploadWizard/includes/CampaignContent.php(94): CampaignContent->generateHtml(Object(Title))
#6 /data/project/apache/common-local/php-master/includes/WikiPage.php(3514): CampaignContent->getParserOutput(Object(Title), 31199, Object(ParserOptions))
#7 /data/project/apache/common-local/php-master/includes/PoolCounter.php(222): PoolWorkArticleView->doWork()
#8 /data/project/apache/common-local/php-master/includes/WikiPage.php(1126): PoolCounterWork->execute()
#9 /data/project/apache/common-local/php-master/extensions/CirrusSearch/CirrusSearchUpdater.php(182): WikiPage->getParserOutput(Object(ParserOptions), 31199)
#10 /data/project/apache/common-local/php-master/extensions/CirrusSearch/CirrusSearchUpdater.php(124): CirrusSearchUpdater::buildDocumentforRevision(Array)
#11 /data/project/apache/common-local/php-master/extensions/CirrusSearch/forceSearchIndex.php(113): CirrusSearchUpdater::updateRevisions(Array)
#12 /data/project/apache/common-local/php-master/maintenance/doMaintenance.php(113): ForceSearchIndex->execute()
#13 /data/project/apache/common-local/php-master/extensions/CirrusSearch/forceSearchIndex.php(298): require_once('/data/project/a...')
#14 /data/project/apache/common-local/multiversion/MWScript.php(97): require_once('/data/project/a...')
#15 {main}

real 0m1.855s
user 0m0.336s
sys 0m0.164s
manybubbles@deployment-bastion:~$


Version: unspecified
Severity: normal

Details

Reference
bz54376

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:04 AM
bzimport added a project: UploadWizard.
bzimport set Reference to bz54376.

Marking high priority because it gets in the way of testing.

This looks like a recently introduced problem in UploadWizard so I'm shifting it over there.

It turns out that _I_ don't test against commonswiki in beta and I'm not sure if anyone does but it still seems like a problem.

This looks related to the new campaign pages; assigning to Yuvi and CC'ing me.

Change 85330 had a related patch set uploaded by Yuvipanda:
Use parser directly to parse wikitext

https://gerrit.wikimedia.org/r/85330

Change 85330 merged by jenkins-bot:
Explicitly use $wgParser to parse wikitext

https://gerrit.wikimedia.org/r/85330

Closing as resolved since I haven't heard any more complaints :P

Gilles raised the priority of this task from High to Unbreak Now!.Dec 4 2014, 10:21 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to High.Dec 4 2014, 11:20 AM