Hello, some people might wonder how to use the main namespace for items so maybe it could be useful to add a section about that to the installation guide. This is the configuration I'm using but I'm not sure if it's the best way to do it. Thanks, cheers and all the best!
Talk:Wikibase/Installation/Advanced configuration
Appearance
The Advanced configuration page mentions "rebuildAllData.php". I cannot find this file in my installation of the Wikibase extension. Has it been removed from the extension?
The script was broken and dropped in 2015 via gerrit:188353. I removed the section.
On my first attempt at using the dispatchChanges.php script, I got the following error message:
Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /pathtomywiki/w/extensions/Wikibase/lib/includes/SettingsArray.php on line 59
I changed line 59 from:
58 public function getSetting( $settingName ) {
59 if ( !$this->offsetExists( $settingName ) && !array_key_exists( $settingName, $this ) ) {
60 throw new OutOfBoundsException( 'Attempt to get non-existing setting "' . $settingName . '"' );
61 }
to:
58 public function getSetting( $settingName ) {
59 if ( !$this->offsetExists( $settingName ) && !property_exists( $this, $settingName ) ) {
60 throw new OutOfBoundsException( 'Attempt to get non-existing setting "' . $settingName . '"' );
61 }
Now I'm getting this error:
OutOfBoundsException from line 60 of /pathtomywiki/w/extensions/Wikibase/lib/includes/SettingsArray.php: Attempt to get non-existing setting "repoDatabase"
I have repoDatabase defined in WikibaseClient.example.php which I have updated with my repo values:
$wgWBClientSettings['repositories'] = [
'' => [
'repoDatabase' => 'myrepodatabase',
'baseUri' => $wgWBClientSettings['repoUrl'] . '/entity',
'entityNamespaces' => [
'item' => WB_REPO_NS_ITEM,
'property' => WB_REPO_NS_PROPERTY
],
'prefixMapping' => [ '' => '' ],
]
];
Perhaps this script is not meant to be run manually from the command line? I'm guessing it's run automatically from the client, where the repoDatabase value is defined?
hello, we are trying to configure a local wikibase but interlinks do not seem working.
After clicking "add links" on the navbar the "language" textfield remains empty.
The script indicated for "Poll for changes" is in a different location:
extensions/Wikibase/repo/maintenance/dispatchChanges.php
and not
extensions/Wikibase/lib/maintenance/dispatchChanges.php
and when executed I get the following error
"/mediawiki/extensions/Wikibase/lib/includes/SettingsArray.php: Attempt to get non-existing setting "repoDatabase""
I don't know whether the 2 issues are related.
Thanks
(Thomas)
After carefully studing & following the installation instructions wikibase (1.32) with mediawiki (1.32), wikibase does not seems to function correctly. For ex. when 'dispatchChanges.php' is run the message: 'Could not lock any of the candidate client wikis for dispatching' msg is appearing.
Could someone please update the documentation? Or is someone who can give me some support for installation?
@Lcristianiim: can you please better specify what is your specific issue with the extension and some more information on your installation?
Have you installed Client and Repo unto the same mediawiki installation or two of them?
Apart from the error message given by this script, what is specifically not working?
You have issue creating Properties or Items or accessing them?
In the documentation it is written that the 'extensions/Wikibase/lib/maintenance/dispatchChanges.php' must be run from the client. I am running mediawiki 1.32 (latest version) with wikibase for 1.32 and I saw that the script is located on a different location: 'extensions/Wikibase/repo/maintenance/dispatchChanges.php'.
So should this script must be run from the client side (as it is written in documentation) or must be run from the repo side? (because it is located in the 'repo' folder of Wikibase extension)
Hi, i am new to Wikibase. I want to populate a wikibase instance, but i need to delete first the data that is already there. i didn't install the instance but it was done with docker. Looking at this wiki it seems that the 'deleteAllData.php' script is what i need, but i didn't find it in the server. If someone could shed light on it and explain me how to delete the current database, i would really appreciate it. THANKS!
I can get step by step to help me get error
When I'm setting up Wikibase on my MeidaWiki site following the guidance of "Items in a dedicated item namespace" section, update.php
complains about duplicate definitions
The notes are as follows
PHP Notice: Constant WB_NS_ITEM already defined in /x/cpwiki/root/LocalSettings.php on line 247 PHP Notice: Constant WB_NS_ITEM_TALK already defined in /x/cpwiki/root/LocalSettings.php on line 248 PHP Notice: Constant WB_NS_PROPERTY already defined in /x/cpwiki/root/LocalSettings.php on line 249 PHP Notice: Constant WB_NS_PROPERTY_TALK already defined in /x/cpwiki/root/LocalSettings.php on line 250
The content from line 247 are
define( 'WB_NS_ITEM', $baseNs ); define( 'WB_NS_ITEM_TALK', $baseNs + 1 ); define( 'WB_NS_PROPERTY', $baseNs + 2 ); define( 'WB_NS_PROPERTY_TALK', $baseNs + 3 );
Then I removed these definitions in LocalSettings.php
, the note is gone. I'm not sure if it's only me or the manual here needs an update. I'm using MW 1.31.0-wmf.8.
I see that the example code has one line
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";
which in the end refers to /extensions/Wikibase/repo/config/Wikibase.example.php
. It contains definition of those namespeces already, so I don't need to repeat them in LocalSettings.php.
Can we have some proper documentation on how {{#statement}} actually works? People are going around saying {{#property}} is deprecated and a lot of Lua Wikidata scripts can be replaced by {{#statement}}, but it's hard to do that without full documentation of what this parser function can do.