Topic on Project:Support desk

Antonkarpp (talkcontribs)

Hello! I tried to install the Wikibase plugin today. I didn’t succeed even though I installed Composer and did everything I had to. When I went to the wiki, I got a message that the page is not working. What did I do wrong? And I added wfLoadExtension ('Wikibase'); to LocalSettings.php but i took it away because my page didn't work.

Malyacko (talkcontribs)

Nobody can tell without an exact error message and basic information (see the sidebar on this page). Please provide sufficient information.

Antonkarpp (talkcontribs)

So, I didn't get any error message. When I installed Composer, I did everything I read in their instructions. Eventually, I added the extension to the wiki and the LocalSettings.php file, saved and navigated to the wiki: the page cannot process the request at this time. It's Google's own message, there was no error message.

Antonkarpp (talkcontribs)

Hey! I added this to the LocalSettings.php file:

$wgEnableWikibaseRepo = true; $wgEnableWikibaseClient = false; require_once "$IP/extensions/Wikibase/repo/Wikibase.php"; require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php"; $wgWBRepoSettings['siteLinkGroups'] = [ 'mywikigroup' ]; $wgLocalDatabases = [ 'enwiki', 'fawiki' ]; $wgWBRepoSettings['localClientDatabases'] = array(

   'en' => 'enwiki',
   'fa' => 'fawiki'

);

And I got a wiki notification like this:

[e13e8d549475939e333e81d7] /index.php Error from line 35 of /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/lib/WikibaseLib.entitytypes.php: Class 'Wikibase\DataModel\Entity\ItemId' not found Backtrace:

  1. 0 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/includes/WikibaseRepo.php(789): require()
  2. 1 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/includes/WikibaseRepo.php(404): Wikibase\Repo\WikibaseRepo::getDefaultEntityTypes()
  3. 2 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/includes/WikibaseRepo.php(561): Wikibase\Repo\WikibaseRepo::newInstance()
  4. 3 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/RepoHooks.php(104): Wikibase\Repo\WikibaseRepo::getDefaultInstance()
  5. 4 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/Hooks.php(174): Wikibase\RepoHooks::onSetupAfterCache()
  6. 5 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
  7. 6 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/Setup.php(794): Hooks::run(string)
  8. 7 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/WebStart.php(81): require_once(string)
  9. 8 /home/antsamed/fi.antsawiki.antsamedia.eu/index.php(41): require(string)
  10. 9 {main}


Can you help? Thank you. :)

Malyacko (talkcontribs)

Again: Please see the sidebar. It explicitly says "please always indicate which versions you are using". Which exact version/branch of Wikibase? Which exact version/branch of MediaWiki?

Antonkarpp (talkcontribs)

I have the latest Wikibase plugin. I have a MediaWiki 1.34. I have downloaded WikibaseLexeme and also the only Wikibase. I don't know what version they are when I can't access the Special:Version page of my wiki, and I don't see that sidebar. But I only downloaded those Wikibase extensions and there on the download page read "latest version." I checked Wikipedia, both on August 3, 2020 and (0ed7703).

Antonkarpp (talkcontribs)
Antonkarpp (talkcontribs)

I checked the Wikibase version of the extension-repo.json of the Wikibase extension. The version of Wikibase is 1.35 and MediaWiki is 1.34. And the extension-client.json file also says 1.35. But package.json says: "version": "0.1.0".

Malyacko (talkcontribs)

If you mix 1.34 and 1.35 then there can easily be problems. You should use the same branches.

Malyacko (talkcontribs)
Antonkarpp (talkcontribs)

Now I downloaded this: https://github.com/wikimedia/mediawiki-extensions-Wikibase and I extracted it to my own extensions folder, I added this to the LocalSettings.php file:

wfLoadExtension( 'mediawiki-extensions-Wikibase-master');

I received this message from Google: the page is down.

My wiki page cannot process the request at this time.

Malyacko (talkcontribs)

I am afraid I don't understand why you keep downloading random things, why Google sends you messages (or what "page" they or you refer to), or why you prefer not to answer previous questions.

Antonkarpp (talkcontribs)

I can't answer previous questions. My sidebar doesn't show anything when I load the plugin. I refer to my wiki on my page.

Antonkarpp (talkcontribs)

I now downloaded Wikibase REL_1.34 and 1.34 also reads extension-repo-wip.json files. When you add wfLoadExtension ('Wikibase') to the LocalSettings.php file;

my wiki is not working i.e. i get the same notification from google. When you add require_once "$ IP / extensions / Wikibase / repo / Wikibase.php";

I get this error:

[326a724e46b8b20b1eb29e78] /index.php/Toiminnot:Toimintosivut Error from line 35 of /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/lib/WikibaseLib.entitytypes.php: Class 'Wikibase\DataModel\Entity\ItemId' not found Backtrace:

  1. 0 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/includes/WikibaseRepo.php(789): require()
  2. 1 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/includes/WikibaseRepo.php(404): Wikibase\Repo\WikibaseRepo::getDefaultEntityTypes()
  3. 2 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/includes/WikibaseRepo.php(561): Wikibase\Repo\WikibaseRepo::newInstance()
  4. 3 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/RepoHooks.php(104): Wikibase\Repo\WikibaseRepo::getDefaultInstance()
  5. 4 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/Hooks.php(191): Wikibase\RepoHooks::onSetupAfterCache()
  6. 5 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/Hooks.php(219): Hooks::callHook(string, array, array, NULL)
  7. 6 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/Setup.php(794): Hooks::run(string)
  8. 7 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/WebStart.php(81): require_once(string)
  9. 8 /home/antsamed/fi.antsawiki.antsamedia.eu/index.php(41): require(string)
  10. 9 {main}
Taavi (talkcontribs)

If I remember correctly that error comes up when you haven't installed Wikibase dependencies, see Wikibase/Installation for instructions.

Antonkarpp (talkcontribs)

Yes I already have that in there composer.local.json file. So this: {

 "extra": {
   "merge-plugin": {
     "include": [
       "Extensions / Wikibase / composer.json"
     ]
   }
 },
 "require": {
   "monologue / monologue": "~ 1.25.5"
 }

}

Bawolff (talkcontribs)

it should be extensions/Wikibase/composer.json not Extensions / Wikibase / composer.json

Did you run composer update ? You dont just need to edit the file.

Antonkarpp (talkcontribs)

I will complete the tasks with Composer tomorrow. But then what do I need to add to Localsettings.php? I got pretty far today, but then I got an error message on my wiki saying there was no Entity-id. Could someone friendly do this for me? For a small fee, because I'm still with it so bad I can not answer any questions.

Bawolff (talkcontribs)

if composer is the issue, then there is nothing you need to add to LocalSettings.php other than what you already have. All you need to do is run the composer update command. From there hopefully it works or we get an exciting new ereor message (and if nothing changes we look for other things that might have gone wrong)

for information on paid support, please see Professional development and consulting

Antonkarpp (talkcontribs)

I don't know if my Composer is in the right place. That is, it is located in C:/users/Anton/composer. When I start Composer from there, it opens for a moment but then disappears completely. In the same place (C:/users/Anton/composer) there is also a folder vendor, composer.local.json, composer.phar and composer.lock. Then I also have Composer in another location: C:/users/Anton and there is only an application for Composer and a file called composer.phar. For some reason, other files like enwiki, fawiki, .bash_history, and .node_repl_historry have come to the same place. Yes I have Node.js. When I open another Composer (C:/users/Anton) it also runs for a while but executes some command. Yes, I notice that somewhere in the posting would read "Composer" in pretty capital letters. I don’t know if the Composers are located where they should be, and I don’t know why I can’t execute the commands myself.

Antonkarpp (talkcontribs)

I created a new wiki and used Xampp to help. I got the following error on my wiki:

Fatal error: Uncaught Exception: Unable to open file C:\xampp\htdocs\mediawiki/extensions/ WikibaseClient/extension.json: filemtime(): stat failed for C:\xampp\htdocs\mediawiki/extensions/ WikibaseClient/extension.json in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php:136 Stack trace: #0 C:\xampp\htdocs\mediawiki\includes\GlobalFunctions.php(52): ExtensionRegistry->queue('C:\\xampp\\htdocs...') #1 C:\xampp\htdocs\mediawiki\LocalSettings.php(176): wfLoadExtension(' WikibaseClient') #2 C:\xampp\htdocs\mediawiki\includes\Setup.php(124): require_once('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\mediawiki\includes\WebStart.php(81): require_once('C:\\xampp\\htdocs...') #4 C:\xampp\htdocs\mediawiki\index.php(41): require('C:\\xampp\\htdocs...') #5 {main} thrown in C:\xampp\htdocs\mediawiki\includes\registration\ExtensionRegistry.php on line 136

Bawolff (talkcontribs)

Based on your last comment it sounds like you are running windows, but all the earlier errors sounded like linux. Make sure you are running the commands on your webserver.


For example, you might connect to the server using puTTY, and then from that prompt type:

cd /home/antsamed/fi.antsawiki.antsamedia.eu
composer update

(if you are actually on windows, use command prompt and you might have to put full path of php binary in front of composer. Paths will be different. This is generally more complex on windows)


You may also want to check out various wikibase bundles which might come with dependencies preinstalled

Bawolff (talkcontribs)

Fatal error: Uncaught Exception: Unable to open file C:\xampp\htdocs\mediawiki/extensions/ WikibaseClient/extension.json: filemtime(): stat failed


Means that WikibaseClient extension is not installed and needs to be downloaded.

Antonkarpp (talkcontribs)

I downloaded the Wikibase plugin and added this to the LocalSettings.php file:

$wgEnableWikibaseRepo = false; $wgEnableWikibaseClient = true; require_once "$IP/extensions/Wikibase/client/WikibaseClient.php"; require_once "$IP/extensions/Wikibase/client/ExampleSettings.php"; $wgWBClientSettings['repoUrl'] = 'https://pool.my.wiki'; $wgWBClientSettings['repoScriptPath'] = ; $wgWBClientSettings['repoArticlePath'] = '/wiki/$1'; $wgWBClientSettings['repositories'][]['repoDatabase'] = 'poolwiki'; $wgWBClientSettings['repositories'][]['changesDatabase'] = 'poolwiki'; $wgWBClientSettings['siteLinkGroups'] = [ 'mywikigroup' ]; $wgWBClientSettings['siteGlobalID'] = 'en';

So I copied that code here: Wikibase/Installation I still get the same error.

Antonkarpp (talkcontribs)

Now I got the Wikibase downloaded correctly from Git. I uploaded the former to the wrong folder. Now I got the following error:

[597f67fab1023accee2e2a57] 2020-08-10 08:59:12: Fatal exception of type "Error"

Bawolff (talkcontribs)

please set $wgShowExceptionDetails=true; in LocalSettings.php

Antonkarpp (talkcontribs)

And now that I only want the Wikibase Client, I get the following notification:

Fatal error: Uncaught Error: Class 'Wikibase\DataModel\Entity\ItemId' not found in C:\xampp\htdocs\mediawiki\extensions\Wikibase\lib\WikibaseLib.entitytypes.php:35 Stack trace: #0 C:\xampp\htdocs\mediawiki\extensions\Wikibase\client\includes\WikibaseClient.php(539): require() #1 C:\xampp\htdocs\mediawiki\extensions\Wikibase\client\includes\WikibaseClient.php(768): Wikibase\Client\WikibaseClient::getDefaultEntityTypes() #2 C:\xampp\htdocs\mediawiki\extensions\Wikibase\client\includes\WikibaseClient.php(949): Wikibase\Client\WikibaseClient::newInstance() #3 C:\xampp\htdocs\mediawiki\extensions\Wikibase\client\ClientHooks.php(185): Wikibase\Client\WikibaseClient::getDefaultInstance() #4 C:\xampp\htdocs\mediawiki\includes\Hooks.php(174): Wikibase\ClientHooks::onBeforePageDisplay(Object(OutputPage), Object(SkinVector)) #5 C:\xampp\htdocs\mediawiki\includes\Hooks.php(234): Hooks::callHook('BeforePageDispl...', Array, Array, NULL, '\\Wikibase\\Clien...') #6 C:\xampp\htdocs\mediawiki\includes\OutputPage.php(2571): Hooks::runWitho in C:\xampp\htdocs\mediawiki\extensions\Wikibase\lib\WikibaseLib.entitytypes.php on line 35

But if I only want Wikibase Reposity, I get the following: [597f67fab1023accee2e2a57] 2020-08-10 08:59:12: Fatal exception of type "Error"

Antonkarpp (talkcontribs)

Now I got the following message on my wiki:

[abc45c605f5f386cfab2e8cd] /index.php/Special:SpecialPages Error from line 35 of /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/lib/WikibaseLib.entitytypes.php: Class 'Wikibase\DataModel\Entity\ItemId' not found Backtrace:

  1. 0 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/includes/WikibaseRepo.php(789): require()
  2. 1 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/includes/WikibaseRepo.php(404): Wikibase\Repo\WikibaseRepo::getDefaultEntityTypes()
  3. 2 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/includes/WikibaseRepo.php(561): Wikibase\Repo\WikibaseRepo::newInstance()
  4. 3 /home/antsamed/fi.antsawiki.antsamedia.eu/extensions/Wikibase/repo/RepoHooks.php(104): Wikibase\Repo\WikibaseRepo::getDefaultInstance()
  5. 4 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/Hooks.php(191): Wikibase\RepoHooks::onSetupAfterCache()
  6. 5 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/Hooks.php(219): Hooks::callHook(string, array, array, NULL)
  7. 6 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/Setup.php(794): Hooks::run(string)
  8. 7 /home/antsamed/fi.antsawiki.antsamedia.eu/includes/WebStart.php(81): require_once(string)
  9. 8 /home/antsamed/fi.antsawiki.antsamedia.eu/index.php(41): require(string)
  10. 9 {main}

And this post came to the Hosting service wiki. I want to extend Wikibase here to the wiki generated by my hosting service.

Bawolff (talkcontribs)

this still sounds like the same error as before where you need to run composer update

Antonkarpp (talkcontribs)

I added this to LocalSettings.php:

$wgEnableWikibaseRepo = false; $wgEnableWikibaseClient = true; require_once "$IP/extensions/Wikibase/client/WikibaseClient.php"; require_once "$IP/extensions/Wikibase/client/ExampleSettings.php"; $wgWBClientSettings['repoUrl'] = 'https://pool.my.wiki'; $wgWBClientSettings['repoScriptPath'] = ; $wgWBClientSettings['repoArticlePath'] = '/wiki/$1'; $wgWBClientSettings['repositories'][]['repoDatabase'] = 'poolwiki'; $wgWBClientSettings['repositories'][]['changesDatabase'] = 'poolwiki'; $wgWBClientSettings['siteLinkGroups'] = [ 'mywikigroup' ]; $wgWBClientSettings['siteGlobalID'] = 'enwiki';

And I got the following notification on my wiki:

Not an entry point. Load WikibaseClient.php first.

What to do? My Composer doesn't work when I turn it on, the Composer runs for a while but then disappears completely.

Bawolff (talkcontribs)

that error normally means you missed the line require_once "$IP/extensions/Wikibase/client/WikibaseClient.php";. It is not related to composer

Reply to "Wikibase-error"