Last modified: 2013-07-30 04:46:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53956, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51956 - ttmserver-export.php: Empty $mTitle in OutputPage::parse
ttmserver-export.php: Empty $mTitle in OutputPage::parse
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CentralNotice (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Matt Walker
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-24 11:01 UTC by Max Semenik
Modified: 2013-07-30 04:46 UTC (History)
13 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Max Semenik 2013-07-24 11:01:28 UTC
maxsem@tin:/a/common$ mwscript extensions/Translate/scripts/ttmserver-export.php --wiki=metawiki

[snip]
18156 1623.97  25.0M  Forked thread 20340 to handle Centralnotice-tgroup-B13_0724_mobile_dropdown_staged_enGB
Empty $mTitle in OutputPage::parse
Backtrace:
#0 /a/common/php-1.22wmf11/extensions/CentralNotice/includes/Banner.php(64): OutputPage->parse('{{MediaWiki:FR2...')
#1 /a/common/php-1.22wmf11/extensions/CentralNotice/includes/BannerMessageGroup.php(42): Banner->extractMessageFields()
#2 /a/common/php-1.22wmf11/extensions/Translate/messagegroups/MessageGroupOld.php(300): BannerMessageGroup->getDefinitions()
#3 /a/common/php-1.22wmf11/extensions/Translate/utils/MessageGroupStats.php(374): MessageGroupOld->initCollection('aa')
#4 /a/common/php-1.22wmf11/extensions/Translate/utils/MessageGroupStats.php(327): MessageGroupStats::calculateGroup(Object(BannerMessageGroup), 'aa')
#5 /a/common/php-1.22wmf11/extensions/Translate/utils/MessageGroupStats.php(265): MessageGroupStats::forItemInternal(Array, Object(BannerMessageGroup), 'aa')
#6 /a/common/php-1.22wmf11/extensions/Translate/utils/MessageGroupStats.php(114): MessageGroupStats::forGroupInternal(Object(BannerMessageGroup))
#7 /a/common/php-1.22wmf11/extensions/Translate/scripts/ttmserver-export.php(118): MessageGroupStats::forGroup('Centralnotice-t...')
#8 /a/common/php-1.22wmf11/extensions/Translate/scripts/ttmserver-export.php(84): TTMServerBootstrap->exportGroup(Object(BannerMessageGroup))
#9 /a/common/php-1.22wmf11/maintenance/doMaintenance.php(115): TTMServerBootstrap->execute()
#10 /a/common/php-1.22wmf11/extensions/Translate/scripts/ttmserver-export.php(166): require_once('/a/common/php-1...')
#11 /a/common/multiversion/MWScript.php(97): require_once('/a/common/php-1...')
#12 {main}


Very easy to repro on testwiki.
Comment 1 Matt Walker 2013-07-24 17:18:46 UTC
This seems most likely to be a 'bug' in CentralNotice -- we are leveraging wgOut's parser instance instead of creating an instance for ourselves -- but apparently that has a dependency on being fully initialized which is not when in a maintenance script.
Comment 2 Nemo 2013-07-24 17:35:02 UTC
Is this blocking vanadium->zinc migration, is there a bug for that and is current priority appropriate for this report?
Comment 3 Gerrit Notification Bot 2013-07-24 23:03:12 UTC
Change 75808 had a related patch set uploaded by Mwalker:
Banner Rendering to use the Parser Directly

https://gerrit.wikimedia.org/r/75808
Comment 4 Gerrit Notification Bot 2013-07-24 23:42:30 UTC
Change 75808 merged by Adamw:
Banner Rendering to use the Parser Directly

https://gerrit.wikimedia.org/r/75808
Comment 5 Niklas Laxström 2013-07-27 19:39:06 UTC
Can someone confirm that this bug has been fixed?
Comment 6 Matt Walker 2013-07-29 19:36:01 UTC
Works on my local; was going to deploy today.
Comment 7 Matt Walker 2013-07-30 01:14:55 UTC
Testing on testwiki indicates it works. I'm just letting it finish up if you want to take its output.
Comment 8 Matt Walker 2013-07-30 02:23:49 UTC
Actually; the script was running on metawiki; and it finished successfully at 10,000 seconds.
Comment 9 Nemo 2013-07-30 04:46:11 UTC
(In reply to comment #8)
> Actually; the script was running on metawiki; and it finished successfully at
> 10,000 seconds.

That seems to have fixed bug 52148 too.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links