Last modified: 2013-04-02 09:38:08 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 T48762, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46762 - [Regression] Installation of TitleBlacklist throws "MWException: ResourceLoader duplicate registration error."
[Regression] Installation of TitleBlacklist throws "MWException: ResourceLoad...
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
TitleBlacklist (Other open bugs)
master
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-01 22:14 UTC by [[kgh]]
Modified: 2013-04-02 09:38 UTC (History)
5 users (show)

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


Attachments

Description [[kgh]] 2013-04-01 22:14:16 UTC
I am getting the following error messages after installing this extensions v1.4.2 (8ce1eeb) of 2013-03-12 on 1.20.3

MediaWiki internal error.

Original exception: exception 'MWException' with message 'ResourceLoader duplicate registration error. Another module has already been registered as mediawiki.api.titleblacklist' in /.../includes/resourceloader/ResourceLoader.php:238
Stack trace:
#0 /.../includes/resourceloader/ResourceLoader.php(206): ResourceLoader->register(Array)
#1 /.../includes/OutputPage.php(2504): ResourceLoader->__construct()
#2 /.../includes/OutputPage.php(432): OutputPage->getResourceLoader()
#3 /.../includes/OutputPage.php(457): OutputPage->filterModules(Array, 'bottom')
#4 /.../includes/OutputPage.php(527): OutputPage->getModules(true, 'bottom', 'mModuleMessages')
#5 /.../includes/OutputPage.php(2757): OutputPage->getModuleMessages(true, 'bottom')
#6 /.../includes/OutputPage.php(2870): OutputPage->getScriptsForBottomQueue(false)
#7 /.../includes/Skin.php(583): OutputPage->getBottomScripts()
#8 /.../includes/SkinTemplate.php(390): Skin->bottomScripts()
#9 /.../includes/OutputPage.php(1989): SkinTemplate->outputPage()
#10 /.../includes/Wiki.php(543): OutputPage->output()
#11 /.../includes/Wiki.php(446): MediaWiki->main()
#12 /.../index.php(59): MediaWiki->run()
#13 {main}

Exception caught inside exception handler: exception 'MWException' with message 'ResourceLoader duplicate registration error. Another module has already been registered as mediawiki.api.titleblacklist' in /.../includes/resourceloader/ResourceLoader.php:238
Stack trace:
#0 /.../includes/resourceloader/ResourceLoader.php(206): ResourceLoader->register(Array)
#1 /.../includes/OutputPage.php(2504): ResourceLoader->__construct()
#2 /.../includes/OutputPage.php(432): OutputPage->getResourceLoader()
#3 /.../includes/OutputPage.php(457): OutputPage->filterModules(Array, 'bottom')
#4 /.../includes/OutputPage.php(527): OutputPage->getModules(true, 'bottom', 'mModuleMessages')
#5 /.../includes/OutputPage.php(2757): OutputPage->getModuleMessages(true, 'bottom')
#6 /.../includes/OutputPage.php(2870): OutputPage->getScriptsForBottomQueue(false)
#7 /.../includes/Skin.php(583): OutputPage->getBottomScripts()
#8 /.../includes/SkinTemplate.php(390): Skin->bottomScripts()
#9 /.../includes/OutputPage.php(1989): SkinTemplate->outputPage()
#10 /.../includes/Exception.php(227): OutputPage->output()
#11 /.../includes/Exception.php(272): MWException->reportHTML()
#12 /.../includes/Exception.php(620): MWException->report()
#13 /.../includes/Exception.php(690): MWExceptionHandler::report(Object(MWException))
#14 /.../includes/Wiki.php(449): MWExceptionHandler::handle(Object(MWException))
#15 /.../index.php(59): MediaWiki->run()
#16 {main}
Comment 1 Bartosz Dziewoński 2013-04-01 22:16:03 UTC
You're using incompatible versions of the extension and MediaWiki itself. The newest (master) version of TitleBlacklist is only compatible with MediaWiki 1.21 (not yet released); you have to use a 1.20-compatible one.
Comment 2 Alex Monk 2013-04-01 22:16:52 UTC
You're running an old version of MediaWiki. A module was moved over from core (deleted from core, added to TitleBlacklist). The only way this can happen is if you have the pre-move core and post-move extension.
Comment 3 [[kgh]] 2013-04-02 09:38:08 UTC
Ouch, that is indeed my mistake and a bit embarrassing for me. :| Things are now up and running. :) This [1] is the last version working with MW 1.20.x

Still I have a little suggestion: In case of "breaking" changes like this one it would be nice to increment the version number of the extension in case it is a versioned one. I think it should still be done as a follow up to the change.

[1] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/TitleBlacklist.git;a=snapshot;h=358b42174ad30f652a12898a3c5f314a9dcd6558;sf=tgz

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


Navigation
Links