Last modified: 2014-01-30 14:05:56 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 T62612, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60612 - Exception on beta: Incomplete configuration: $wgWBRepoSettings["entityNamespaces"] has to be set to an array mapping content model IDs to namespace IDs
Exception on beta: Incomplete configuration: $wgWBRepoSettings["entityNamesp...
Status: RESOLVED DUPLICATE of bug 60606
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
backlog
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-30 08:50 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-01-30 14:05 UTC (History)
5 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2014-01-30 08:50:53 UTC
Some API calls on beta cluster throw exceptions which eventually lead to a fatal error.

Exception:

2014-01-30 01:17:23 deployment-apache33 enwiki: [48af842e] /w/api.php   Exception from line 84 of php-master/extensions/Wikidata/extensions/Wikibase/repo/Wikibase.hooks.php: Wikibase: Incomplete configuration: $wgWBRepoSettings["entityNamespaces"] has to be set to an array mapping content model IDs to namespace IDs. See ExampleSettings.php for details and examples.
#0 [internal function]: Wikibase\RepoHooks::onSetupAfterCache()
#1 php-master/includes/Hooks.php(206): call_user_func_array('Wikibase\RepoHo...', Array)
#2 php-master/includes/GlobalFunctions.php(3976): Hooks::run('SetupAfterCache', Array, NULL)
#3 php-master/includes/Setup.php(520): wfRunHooks('SetupAfterCache')
#4 php-master/includes/WebStart.php(153): require_once('/data/project/a...')
#5 php-master/api.php(44): require('/data/project/a...')
#6 w/api.php(3): require('/data/project/a...')
#7 {main}


Which then lead to the fatal error:



[30-Jan-2014 01:17:23] Fatal error: Call to a member function disable() on a non-object at php-master/includes/GlobalFunctions.php on line 2140
Server: i-0000031b
Method: POST
URL: http://en.wikipedia.beta.wmflabs.org/w/api.php
Cookie: XXXXXXX
Backtrace:
#0 php-master/includes/GlobalFunctions.php(2140): wfHttpError()
#1 php-master/includes/Exception.php(257): wfHttpError(500, 'Internal Server...', '[48af842e] /w/a...')
#2 php-master/includes/Exception.php(612): MWException->report()
#3 php-master/includes/Exception.php(686): MWExceptionHandler::report(Object(MWException))
#4 [internal function]: MWExceptionHandler::handle(Object(MWException))
#5 {main}


Note how line #1 of the fatal error stacktrace points to an error 500 generated by the exception.
Comment 1 Antoine "hashar" Musso (WMF) 2014-01-30 08:54:53 UTC
Note the exception is thrown before $wgOut has a chance to be initialized. That leads to a fatal error in wfHttpError() global functions when it attempts to call: $wgOut->disabled().


The configuration check for $wgWBRepoSettings["entityNamespaces"] seems to happen too early during initialization :(
Comment 2 Aude 2014-01-30 14:05:56 UTC
quite sure this is a duplicate and is resolved.  if it reoccurs, of course, reopen

*** This bug has been marked as a duplicate of bug 60606 ***

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


Navigation
Links