Last modified: 2014-04-09 17:35:21 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 T65367, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63367 - Wikibase repository extension breaks MediaWiki installer
Wikibase repository extension breaks MediaWiki installer
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Normal major (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-01 14:12 UTC by Sebastian Brückner
Modified: 2014-04-09 17:35 UTC (History)
3 users (show)

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


Attachments

Description Sebastian Brückner 2014-04-01 14:12:36 UTC
After installing the Wikibase extensions via composer (require wikibase/wikibase: *), the MediaWiki installer is broken. Apparently, the Wikibase classes expect the local config to exist even during the installer (where it might not exist yet - as it does in my case).
This is the backtrace:

[dabefbdf] /repo/mw-config/index.php?page=Language Exception from line 93 of /var/www/repo/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.

Backtrace:

#0 [internal function]: Wikibase\RepoHooks::onSetupAfterCache()
#1 /var/www/repo/includes/Hooks.php(206): call_user_func_array(string, array)
#2 /var/www/repo/includes/GlobalFunctions.php(4009): Hooks::run(string, array, NULL)
#3 /var/www/repo/includes/Setup.php(527): wfRunHooks(string)
#4 /var/www/repo/includes/WebStart.php(156): require_once(string)
#5 /var/www/repo/mw-config/index.php(29): require(string)
#6 {main}
Comment 1 Jeroen De Dauw 2014-04-01 14:59:05 UTC
You cannot include the app without specifying config first.
Comment 2 Sebastian Brückner 2014-04-01 15:18:58 UTC
But this is exactly what happens when you install Wikibase via composer (since composer's autoloading automatically includes Wikibase classes). This essentially breaks the installer's functionality of initializing database tables for extensions (like it used to be with Wikibase before composer-based installs).

This means you now have to install MediaWiki w/o Wikibase, create a config file, install Wikibase, add Wikibase config and then run maintenance/update.php since the installer is now not run anymore instead of letting the installer do the work.
Comment 3 Jeroen De Dauw 2014-04-09 17:35:21 UTC
> But this is exactly what happens when you install Wikibase via composer (since composer's autoloading automatically includes Wikibase classes).

The reason it breaks has nothing to do with composer whatsoever as far as I can tell. It breaks because you cannot include our entry point without including config first. This was the case before we used composer as well.

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


Navigation
Links