Talk:Wikibase/Installation

Can we get some installation instructions for those without Composer? :) --GeorgeBarnick (talk) 01:02, 25 May 2014 (UTC)

Error fetching dependencies
I'm definitely in the correct directory, but when I try to run

php composer.phar install

I only get the message "Could not open input file: composer.phar". The

composer install

returns command not found, so I'm rather certain I should be using the other one. When I look inside the directory I indeed can't find any file named composer.phar. I installed Composer locally, in case it matters. I'm incredibly new to all of this and am just trying to get infoboxes working on my mediawiki installation... help? (For more information there: I've got Lua errors in Module:Wikibase at (various lines): attempt to index field 'wikibase' (a nil value) all over the place, and the one answer I could find by googling indicated it might be an issue with the wikibase client not being installed. If that's not the right answer, please point me in the right direction!) RhynnCollins (talk) 17:46, 7 November 2017 (UTC)

Duplicate inclusion
In addition to 68695 (after replacing a wrong "client" with "repo" in the include), I get: MediaWiki 1.24alpha Updater

Going to run database updates for wiki Depending on the size of your database this may take a while! ...wb_items_per_site doesn't exist. ...wb_items doesn't exist. ...wb_aliases doesn't exist. ...wb_texts_per_lang doesn't exist. [6508673d] [no req]  Exception from line 182 of /srv/vagrant/mediawiki/includes/Hooks.php: Invalid callback in hooks for LoadExtensionSchemaUpdates

Backtrace: --Nemo 23:10, 27 July 2014 (UTC)
 * 1) 0 /srv/vagrant/mediawiki/includes/GlobalFunctions.php(4031): Hooks::run(string, array, NULL)
 * 2) 1 /srv/vagrant/mediawiki/includes/installer/DatabaseUpdater.php(117): wfRunHooks(string, array)
 * 3) 2 /srv/vagrant/mediawiki/includes/installer/DatabaseUpdater.php(171): DatabaseUpdater->__construct(DatabaseMysqli, boolean, UpdateMediaWiki)
 * 4) 3 /srv/vagrant/mediawiki/maintenance/update.php(162): DatabaseUpdater::newForDB(DatabaseMysqli, boolean, UpdateMediaWiki)
 * 5) 4 /srv/vagrant/mediawiki/maintenance/doMaintenance.php(98): UpdateMediaWiki->execute
 * 6) 5 /srv/vagrant/mediawiki/maintenance/update.php(206): include(string)
 * 7) 6 {main}

Nevermind, I just to add the duplicate inclusion after the one mandated by installation instructions, that is the lines: require_once "$IP/extensions/Wikidata/extensions/PropertySuggester/PropertySuggester.php"; require_once "$IP/extensions/Wikidata/extensions/Wikibase/client/WikibaseClient.php"; require_once "$IP/extensions/Wikidata/extensions/Wikibase/repo/Wikibase.php"; --Nemo 23:14, 27 July 2014 (UTC)

Error readapidenied between private wikis
Hello

I installed Wikibase repo and 2 clients (all private) but the queries with the API of wikibase between the wikis don't work.

You can see the error when myfrwiki calls a query to myenwiki (event JS in the field page in the popup "Link with page")

I use the parameters for the family wiki and it works :
 * $wgCrossSiteAJAXdomains = array(       "en.xxxxx.fr",      "fr.xxxxx.fr",      "pool.xxxxx.fr" );
 * $wgSharedDB = "mydbpool";
 * $wgCookieDomain = ".xxxxx.fr";
 * $wgSharedTables[] = "ipblocks";
 * $wgSharedTables[] = "interwiki";

Can you help me ? Thanks--Karima Rafes (talk) 11:42, 18 November 2014 (UTC)


 * The reason is the API doesn't read the cookie between the Wiki. --Karima Rafes (talk) 22:37, 18 November 2014 (UTC)

composer command for installing dependencies
Hi,

I needed to run the composer install command instead of php composer.phar install in the extension's folder. I am new to wikibase and currently trying to get it to work on my own pc (Win7).

It appears I installed composer "globally", which would seem to be not what the installation guide expects. Maybe this could be added?

Instructions as given require MediaWiki 1.26
The instructions given here appear to download the tip of the development sources, which won't run on my MediaWiki 1.25 installation because it says it requires MediaWiki 1.26. The system requirements page says that Wikibase only requires MediaWiki 1.23. Could someone please fix the instructions so we can use Wikibase with a released version of MediaWiki? Thanks, Bovlb (talk) 06:28, 18 October 2015 (UTC)

Error in ContentHandler.php creating first item
I've successfully installed Mediawiki 1.26.2 on Ubuntu 15.04. I added the extension Wikibase Repository extension following these steps. The installation completed without any error.

I then logged in into my new (empty) wiki to start populating my repository, I reached the page Special:SpecialPages and clicked on "Create a new Item" Special:NewItem. I filled in the form and clicked "Create".

And then I get this error

Is this the right way to create new items?

Troubleshooting
So, how to overcome problem in section "troubleshooting" without composer? --Infovarius (talk) 14:23, 10 August 2016 (UTC)

"or to work with gerrit:"
Below the part on check-out-a-specific-version, there is a code example for "or to work with gerrit:". This is confusing, since it is unclear if it relates to the work with gerrit in general or only if one wants a specific version. (The code indicates the former, I think, the joining to the previous sentence via the "or" the latter) Jan Dittrich (WMDE) (talk) 06:58, 27 March 2017 (UTC)

Installing the "right" version
How can I ensure that I checkout the Wikibase version that works for my Mediawiki version? In particular, which Mediawiki version (last stable? master?) do I need, if I would do a normal  of wikibase? The documentation is currently not clear on this, but it seems to be essential to get it running. (maybe Tobi knows more?)  -- Jan Dittrich (WMDE) (talk) 06:35, 3 April 2017 (UTC)

Error "You need to have Wikibase enabled in order to use this maintenance script!"
Hello. I am trying to install Wikibase Extension on MediaWiki 1.29.0. I enabled only WikibaseClient in LocalSettings.php. Installation stopps at step "php repo/maintenance/rebuildItemsPerSite.php". Error is "You need to have Wikibase enabled in order to use this maintenance script!"

Now it is no longer possible to open an article, e. g. https://inklupedia.de/wiki/Leipzig MediaWiki pages like https://inklupedia.de/wiki/Spezial:Version are still working. There I see that Wikibase Client is already enabled:
 * Wikibase Client	0.5 alpha (10e9f91) 12:10, 2. Dez. 2017
 * Wikibase DataModel JavaScript	3.1.0
 * Wikibase JavaScript API	2.2.2
 * Wikibase Serialization JavaScript	2.1.0
 * WikibaseLib	0.5 alpha (10e9f91) 12:10, 2. Dez. 2017

To make wiki working again I will now disable the extension. --InkluPedia (talk) 09:45, 14 July 2018 (UTC)
 * After disabling Wikibase extension wiki works as expected. I assume that there is a problem with composer.local.json file. There was no such file in mediawiki directory so I created it with content described in https://www.mediawiki.org/wiki/Wikibase/Installation#Recommended_way . but "php composer.phar install --no-dev" does not install anything. But "php composer.phar update --no-dev" is installing something and failed by Installing wikibase/javascript-api :
 * - Installing wikibase/data-model-services (3.10.0):
 * - Installing wikibase/data-model-javascript (3.1.0):
 * - Installing wikibase/serialization-javascript (2.1.0):
 * - Installing wikibase/javascript-api (2.2.2): Downloading (failed)   Failed to download wikibase/javascript-api from dist: The "https://api.github.com/repos/wikimedia/mediawiki-extensions-WikibaseJavaScriptApi/zipball/64d0f11dc3357e72b60344dd516e48d62b7100fa" file could not be downloaded (HTTP/1.1 404 Not Found)
 * Now trying to download from source
 * - Installing wikibase/javascript-api (2.2.2): Cloning 64d0f11dc3
 * [RuntimeException]
 * Failed to clone https://github.com/wikimedia/mediawiki-extensions-WikibaseJavaScriptApi.git via https, ssh protocols, aborting.


 * - https://github.com/wikimedia/mediawiki-extensions-WikibaseJavaScriptApi.git
 * Cloning into '/var/www/(path to mediawiki)/vendor/wikibase/javascript-api'...
 * remote: Invalid username or password.
 * fatal: Authentication failed for 'https://github.com/wikimedia/mediawiki-extensions-WikibaseJavaScriptApi.git/'


 * - git@github.com:wikimedia/mediawiki-extensions-WikibaseJavaScriptApi.git
 * Cloning into '/var/www/(path to mediawiki)/vendor/wikibase/javascript-api'...
 * Permission denied (publickey).
 * fatal: Could not read from remote repository.


 * Please make sure you have the correct access rights
 * and the repository exists.


 * There is something wrong with installation of wikibase/javascript-api. Any idea how to fix it? --InkluPedia (talk) 11:07, 22 July 2018 (UTC)


 * Updated MediaWiki from 1.29.0 to 1.31.0. Now no error message during installation occured but a new problem: Original exception: ... /wiki/Hauptseite MWException from line 52 of /mediawiki-1.31.0/extensions/Wikibase/lib/includes/Store/Sql/SiteLinkTable.php: $wiki must be a string or false.