https://bugzilla.wikimedia.org/show_bug.cgi?id=66555

            Bug ID: 66555
           Summary: Title::getTitleValue() fails because
                    ContentHandlerDefaultModelFor() is called for
                    interwiki page.
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

In this stacktrace, a Title object is created for "v:", which is an interwiki
page. $title->getTitleValue() silently fails (DB key is ""), and returns NULL,
causing an error later on.

In reality, ContentHandlerDefaultModelFor( $title, &$modelId ) hook should
probably not be called on such title objects.

[2014-06-12 19:45:23] Catchable fatal error: Argument 1 passed to
JsonConfig\JCSingleton::getSettings() must be an instance of TitleValue, null
given, called in
/usr/local/apache/common-local/php-1.24wmf8/extensions/JsonConfig/includes/JCSingleton.php
on line 359 and defined at
/usr/local/apache/common-local/php-1.24wmf8/extensions/JsonConfig/includes/JCSingleton.php
on line 293
Server: mw1184
Method: GET
URL: http://meta.wikimedia.org/wiki/v:
Cookie:
Backtrace:
#0
/usr/local/apache/common-local/php-1.24wmf8/extensions/JsonConfig/includes/JCSingleton.php(293):
JsonConfig\JCSingleton::getSettings()
#1
/usr/local/apache/common-local/php-1.24wmf8/extensions/JsonConfig/includes/JCSingleton.php(359):
JsonConfig\JCSingleton::getSettings(NULL)
#2 [internal function]:
JsonConfig\JCSingleton::onContentHandlerDefaultModelFor(Object(Title), NULL)
#3 /usr/local/apache/common-local/php-1.24wmf8/includes/Hooks.php(206):
call_user_func_array('JsonConfig\JCSi...', Array)
#4
/usr/local/apache/common-local/php-1.24wmf8/includes/GlobalFunctions.php(4056):
Hooks::run('ContentHandlerD...', Array, NULL)
#5
/usr/local/apache/common-local/php-1.24wmf8/includes/content/ContentHandler.php(204):
wfRunHooks('ContentHandlerD...', Array)
#6 /usr/local/apache/common-local/php-1.24wmf8/includes/Title.php(935):
ContentHandler::getDefaultModelFor(Object(Title))
#7 /usr/local/apache/common-local/php-1.24wmf8/includes/WikiPage.php(524):
Title->getContentModel()
#8 /usr/local/apache/common-local/php-1.24wmf8/includes/WikiPage.php(222):
WikiPage->getContentModel()
#9 /usr/local/apache/common-local/php-1.24wmf8/includes/WikiPage.php(208):
WikiPage->getContentHandler()
#10
/usr/local/apache/common-local/php-1.24wmf8/includes/actions/Action.php(92):
WikiPage->getActionOverrides()
#11
/usr/local/apache/common-local/php-1.24wmf8/includes/actions/Action.php(145):
Action::factory('view', Object(WikiPage), Object(RequestContext))
#12 /usr/local/apache/common-local/php-1.24wmf8/includes/Wiki.php(154):
Action::getActionName(Object(RequestContext))
#13 /usr/local/apache/common-local/php-1.24wmf8/includes/Wiki.php(527):
MediaWiki->getAction()
#14 /usr/local/apache/common-local/php-1.24wmf8/includes/Wiki.php(452):
MediaWiki->main()
#15 /usr/local/apache/common-local/php-1.24wmf8/index.php(46): MediaWiki->run()
#16 /usr/local/apache/common-local/w/index.php(3):
require('/usr/local/apac...')
#17 {main}

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to