Last modified: 2014-05-19 20:56:41 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 T67386, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65386 - Error: invalid magic word 'ns'
Error: invalid magic word 'ns'
Status: VERIFIED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-16 06:41 UTC by Tisza Gergő
Modified: 2014-05-19 20:56 UTC (History)
7 users (show)

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


Attachments

Description Tisza Gergő 2014-05-16 06:41:33 UTC
When enabling the UploadWizard role in Vagrant and opening the QUnit test page, I get:

[31cbf2e2] /wiki/Special:JavaScriptTest/qunit?debug=true Exception from line 340 of /vagrant/mediawiki/includes/MagicWord.php: Error: invalid magic word 'ns'

Backtrace:

#0 /vagrant/mediawiki/includes/MagicWord.php(263): MagicWord->load(string)
#1 /vagrant/mediawiki/includes/parser/Parser.php(5108): MagicWord::get(string)
#2 /vagrant/mediawiki/includes/parser/CoreParserFunctions.php(60): Parser->setFunctionHook(string, array, integer)
#3 /vagrant/mediawiki/includes/parser/Parser.php(276): CoreParserFunctions::register(Parser)
#4 [internal function]: Parser->firstCallInit()
#5 /vagrant/mediawiki/includes/StubObject.php(105): call_user_func_array(array, array)
#6 /vagrant/mediawiki/includes/StubObject.php(125): StubObject->_call(string, array)
#7 /vagrant/mediawiki/includes/cache/MessageCache.php(1025): StubObject->__call(string, array)
#8 /vagrant/mediawiki/includes/cache/MessageCache.php(1025): StubObject->firstCallInit()
#9 /vagrant/mediawiki/includes/cache/MessageCache.php(1002): MessageCache->getParser()
#10 /vagrant/mediawiki/includes/Message.php(986): MessageCache->transform(string, boolean, Language, Title)
#11 /vagrant/mediawiki/includes/Message.php(666): Message->transformText(string)
#12 /vagrant/mediawiki/includes/Message.php(729): Message->toString()
#13 /vagrant/mediawiki/includes/OutputPage.php(897): Message->text()
#14 /vagrant/mediawiki/includes/OutputPage.php(945): OutputPage->setHTMLTitle(Message)
#15 /vagrant/mediawiki/includes/specialpage/SpecialPage.php(357): OutputPage->setPageTitle(string)
#16 /vagrant/mediawiki/includes/specials/SpecialJavaScriptTest.php(44): SpecialPage->setHeaders()
#17 /vagrant/mediawiki/includes/specialpage/SpecialPage.php(379): SpecialJavaScriptTest->execute(string)
#18 /vagrant/mediawiki/includes/specialpage/SpecialPageFactory.php(510): SpecialPage->run(string)
#19 /vagrant/mediawiki/includes/Wiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
#20 /vagrant/mediawiki/includes/Wiki.php(599): MediaWiki->performRequest()
#21 /vagrant/mediawiki/includes/Wiki.php(451): MediaWiki->main()
#22 /vagrant/mediawiki/index.php(46): MediaWiki->run()
#23 {main}

----

This is presumably caused by the grouppage-upwizcampeditors and mwe-upwiz-help-desk-url messages which contain {{ns:project}} (which is valid though as far as I code - not sure if this is an UW error or an error in the core i18n code).
Comment 1 Tisza Gergő 2014-05-16 07:14:57 UTC
On the Special:UploadWizard page I get

Fatal error: Call to a member function matchStartAndRemove() on a non-object in /vagrant/mediawiki/includes/parser/Parser.php on line 3348 Call Stack: 0.0002 643400 1. {main}() /vagrant/mediawiki/index.php:0 0.1066 3415664 2. MediaWiki->run() /vagrant/mediawiki/index.php:46 0.2851 9068656 3. MWExceptionHandler::handle() /vagrant/mediawiki/includes/Wiki.php:465 0.2852 9068656 4. MWExceptionHandler::report() /vagrant/mediawiki/includes/exception/MWExceptionHandler.php:141 0.2852 9068736 5. MWException->report() /vagrant/mediawiki/includes/exception/MWExceptionHandler.php:45 0.2882 9078024 6. MWException->reportHTML() /vagrant/mediawiki/includes/exception/MWException.php:238 0.2888 9078768 7. OutputPage->prepareErrorPage() /vagrant/mediawiki/includes/exception/MWException.php:186 0.2888 9078848 8. OutputPage->setPageTitle() /vagrant/mediawiki/includes/OutputPage.php:2184 0.2892 9081904 9. OutputPage->setHTMLTitle() /vagrant/mediawiki/includes/OutputPage.php:945 0.2893 9081824 10. Message->text() /vagrant/mediawiki/includes/OutputPage.php:897 0.2893 9081960 11. Message->toString() /vagrant/mediawiki/includes/Message.php:729 0.2896 9082240 12. Message->transformText() /vagrant/mediawiki/includes/Message.php:666 0.2896 9082240 13. MessageCache->transform() /vagrant/mediawiki/includes/Message.php:986 0.2935 9352640 14. Parser->transformMsg() /vagrant/mediawiki/includes/cache/MessageCache.php:1010 0.2935 9352640 15. Parser->preprocess() /vagrant/mediawiki/includes/parser/Parser.php:4976 0.3078 10086400 16. Parser->replaceVariables() /vagrant/mediawiki/includes/parser/Parser.php:636 0.3167 10898312 17. PPFrame_DOM->expand() /vagrant/mediawiki/includes/parser/Parser.php:3226 0.3169 10908504 18. Parser->braceSubstitution() /vagrant/mediawiki/includes/parser/Preprocessor_DOM.php:1153
Comment 2 Bawolff (Brian Wolff) 2014-05-16 11:37:05 UTC
You could try running updateLocalisationCache.php --force
Comment 3 Tisza Gergő 2014-05-17 00:21:25 UTC
That did not help unfortunately.
Comment 4 Tisza Gergő 2014-05-17 18:20:31 UTC
Actually it did, I was just running it on the wrong virtual machine. D'oh!
Thanks for the tip.

I suppose there is still some sort of bug that made this happen (maybe the recent core issues with serialization?) but I have no idea how to reproduce, so I'll just close as worksforme.
Comment 5 Tisza Gergő 2014-05-19 20:56:41 UTC
Recently this occurred again, and the cache update did not help this time but an apache restart did. Weird.

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


Navigation
Links