Steps to reproduce
- go to https://test.wikimedia.beta.wmflabs.org/wiki/Special:ImportFile
- enter https://commons.wikimedia.org/wiki/File:Constantin_Hansen,_Et_selskab_af_danske_kunstnere_i_Rom,_1837,_KMS3236,_SMK.jpg
- submit
- no changes to the file, just click import
Error message
Internal error
[Wrz0XApEE4AAAAYYHzQAAAAE] /wiki/Special:ImportFile MWException from line 121 of /srv/mediawiki/php-master/includes/page/WikiPage.php: Invalid or virtual namespace -1 given.
Backtrace:
#0 /srv/mediawiki/php-master/includes/context/RequestContext.php(231): WikiPage::factory(Title)
#1 /srv/mediawiki/php-master/includes/context/DerivativeContext.php(196): RequestContext->getWikiPage()
#2 /srv/mediawiki/php-master/extensions/SpamBlacklist/includes/SpamBlacklistHooks.php(31): DerivativeContext->getWikiPage()
#3 /srv/mediawiki/php-master/includes/Hooks.php(177): SpamBlacklistHooks::filterMergedContent(DerivativeContext, WikitextContent, Status, NULL, User, boolean)
#4 /srv/mediawiki/php-master/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)
#5 /srv/mediawiki/php-master/extensions/FileImporter/src/Services/TextRevisionValidator.php(59): Hooks::run(string, array)
#6 /srv/mediawiki/php-master/extensions/FileImporter/src/Services/Importer.php(265): FileImporter\Services\TextRevisionValidator->validate(Title, User, WikitextContent, NULL, boolean)
#7 /srv/mediawiki/php-master/extensions/FileImporter/src/Services/Importer.php(140): FileImporter\Services\Importer->validateFileInfoText(User, FileImporter\Data\ImportPlan)
#8 /srv/mediawiki/php-master/extensions/FileImporter/src/Services/Importer.php(103): FileImporter\Services\Importer->importInternal(User, FileImporter\Data\ImportPlan)
#9 /srv/mediawiki/php-master/extensions/FileImporter/src/SpecialImportFile.php(283): FileImporter\Services\Importer->import(User, FileImporter\Data\ImportPlan)
#10 /srv/mediawiki/php-master/extensions/FileImporter/src/SpecialImportFile.php(177): FileImporter\SpecialImportFile->doImport(FileImporter\Data\ImportPlan)
#11 /srv/mediawiki/php-master/includes/specialpage/SpecialPage.php(522): FileImporter\SpecialImportFile->execute(NULL)
#12 /srv/mediawiki/php-master/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
#13 /srv/mediawiki/php-master/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
#14 /srv/mediawiki/php-master/includes/MediaWiki.php(861): MediaWiki->performRequest()
#15 /srv/mediawiki/php-master/includes/MediaWiki.php(524): MediaWiki->main()
#16 /srv/mediawiki/php-master/index.php(42): MediaWiki->run()
#17 /srv/mediawiki/w/index.php(3): include(string)
#18 {main}