Page MenuHomePhabricator

MediaWiki internal error, when visiting redirect page of Media namespace
Closed, ResolvedPublic

Description

When visiting the url, there is a MediaWiki internal error.

Original exception: exception 'MWException' with message 'MWNamespace::getTalk does not make any sense for given namespace -2' in /usr/local/apache/common-local/php-1.18/includes/Namespace.php:40
Stack trace:
#0 /usr/local/apache/common-local/php-1.18/includes/Namespace.php(84): MWNamespace::isMethodValidFor(-2, 'MWNamespace::ge...')
#1 /usr/local/apache/common-local/php-1.18/includes/Title.php(2844): MWNamespace::getTalk(-2)
#2 /usr/local/apache/common-local/php-1.18/includes/Skin.php(197): Title->getTalkPage()
#3 /usr/local/apache/common-local/php-1.18/includes/Skin.php(176): Skin->preloadExistence()
#4 /usr/local/apache/common-local/php-1.18/skins/Vector.php(31): Skin->initPage(Object(OutputPage))
#5 /usr/local/apache/common-local/php-1.18/includes/SkinTemplate.php(153): SkinVector->initPage(Object(OutputPage))
#6 /usr/local/apache/common-local/php-1.18/includes/OutputPage.php(1856): SkinTemplate->outputPage(Object(OutputPage))
#7 /usr/local/apache/common-local/php-1.18/includes/Wiki.php(380): OutputPage->output()
#8 /usr/local/apache/common-local/php-1.18/includes/Wiki.php(625): MediaWiki->finalCleanup()
#9 /usr/local/apache/common-local/php-1.18/includes/Wiki.php(531): MediaWiki->main()
#10 /usr/local/apache/common-local/php-1.18/index.php(57): MediaWiki->run()
#11 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#12 {main}

Exception caught inside exception handler: exception 'MWException' with message 'MWNamespace::getTalk does not make any sense for given namespace -2' in /usr/local/apache/common-local/php-1.18/includes/Namespace.php:40
Stack trace:
#0 /usr/local/apache/common-local/php-1.18/includes/Namespace.php(84): MWNamespace::isMethodValidFor(-2, 'MWNamespace::ge...')
#1 /usr/local/apache/common-local/php-1.18/includes/Title.php(2844): MWNamespace::getTalk(-2)
#2 /usr/local/apache/common-local/php-1.18/includes/Skin.php(197): Title->getTalkPage()
#3 /usr/local/apache/common-local/php-1.18/includes/Skin.php(176): Skin->preloadExistence()
#4 /usr/local/apache/common-local/php-1.18/skins/Vector.php(31): Skin->initPage(Object(OutputPage))
#5 /usr/local/apache/common-local/php-1.18/includes/SkinTemplate.php(153): SkinVector->initPage(Object(OutputPage))
#6 /usr/local/apache/common-local/php-1.18/includes/OutputPage.php(1856): SkinTemplate->outputPage(Object(OutputPage))
#7 /usr/local/apache/common-local/php-1.18/includes/Exception.php(183): OutputPage->output()
#8 /usr/local/apache/common-local/php-1.18/includes/Exception.php(209): MWException->reportHTML()
#9 /usr/local/apache/common-local/php-1.18/includes/Exception.php(392): MWException->report()
#10 /usr/local/apache/common-local/php-1.18/includes/Exception.php(471): MWExceptionHandler::report(Object(MWException))
#11 /usr/local/apache/common-local/php-1.18/includes/Wiki.php(534): MWExceptionHandler::handle(Object(MWException))
#12 /usr/local/apache/common-local/php-1.18/index.php(57): MediaWiki->run()
#13 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#14 {main}


Version: 1.20.x
Severity: normal
URL: http://commons.wikimedia.org/w/index.php?title=Media:Sin_escudo.svg&redirect=no

Details

Reference
bz32030

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:59 PM
bzimport set Reference to bz32030.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #2)

Fixed in r101656.

Not live.

The problem exists in 1.20.5:

MediaWiki internal error.
Original exception: exception 'MWException' with message 'MWNamespace::getTalk does not make any sense for given namespace -2' in /opt/www/public_html/w/includes/Namespace.php:55
Stack trace:
#0 /opt/www/public_html/w/includes/Namespace.php(118): MWNamespace::isMethodValidFor(-2, 'MWNamespace::ge...')
#1 /opt/www/public_html/w/includes/Title.php(1020): MWNamespace::getTalk(-2)
#2 /opt/www/public_html/w/includes/Skin.php(218): Title->getTalkPage()
#3 /opt/www/public_html/w/includes/Skin.php(198): Skin->preloadExistence()
#4 /opt/www/public_html/w/includes/SkinTemplate.php(156): Skin->initPage(Object(OutputPage))
#5 /opt/www/public_html/w/includes/OutputPage.php(1989): SkinTemplate->outputPage()
#6 /opt/www/public_html/w/includes/Wiki.php(543): OutputPage->output()
#7 /opt/www/public_html/w/includes/Wiki.php(446): MediaWiki->main()
#8 /opt/www/public_html/w/index.php(59): MediaWiki->run()
#9 {main}
Exception caught inside exception handler: exception 'MWException' with message 'MWNamespace::getTalk does not make any sense for given namespace -2' in /opt/www/public_html/w/includes/Namespace.php:55
Stack trace:
#0 /opt/www/public_html/w/includes/Namespace.php(118): MWNamespace::isMethodValidFor(-2, 'MWNamespace::ge...')
#1 /opt/www/public_html/w/includes/Title.php(1020): MWNamespace::getTalk(-2)
#2 /opt/www/public_html/w/includes/Skin.php(218): Title->getTalkPage()
#3 /opt/www/public_html/w/includes/Skin.php(198): Skin->preloadExistence()
#4 /opt/www/public_html/w/includes/SkinTemplate.php(156): Skin->initPage(Object(OutputPage))
#5 /opt/www/public_html/w/includes/OutputPage.php(1989): SkinTemplate->outputPage()
#6 /opt/www/public_html/w/includes/Exception.php(227): OutputPage->output()
#7 /opt/www/public_html/w/includes/Exception.php(272): MWException->reportHTML()
#8 /opt/www/public_html/w/includes/Exception.php(620): MWException->report()
#9 /opt/www/public_html/w/includes/Exception.php(690): MWExceptionHandler::report(Object(MWException))
#10 /opt/www/public_html/w/includes/Wiki.php(449): MWExceptionHandler::handle(Object(MWException))
#11 /opt/www/public_html/w/index.php(59): MediaWiki->run()
#12 {main}

(one of the users just posted such a redirect on my wiki, the page printed this)

duplicatebug claimed this task.

Seems fixed, because the provided url does not show a stacktrace