Topic on Extension talk:Wikibase Repository

Reception123 (talkcontribs)

Getting some errors after enabling Wikibase Repository:

[01-Nov-2017 17:17:30 UTC] PHP Notice:  Undefined index: wikibase-item in /srv/mediawiki/w/extensions/Wikibase/repo/Wikibase.hooks.php on line 85
[01-Nov-2017 17:17:30 UTC] PHP Notice:  Undefined index: wikibase-property in /srv/mediawiki/w/extensions/Wikibase/repo/Wikibase.hooks.php on line 85

Not sure how these indexes need to be "defined".

Thiemo Kreuz (WMDE) (talkcontribs)
Reception123 (talkcontribs)

I have checked and I do have all the settings.

There are two errors that appear. One looks to be known already upstream (https://phabricator.wikimedia.org/T179295) Then there is

[04-Nov-2017 07:26:00 UTC] PHP Notice:  Undefined variable: wikibaseRepo in /srv/mediawiki/w/extensions/Wikibase/repo/Wikibase.php on line 833
[04-Nov-2017 07:26:00 UTC] PHP Notice:  Constant WB_NS_ITEM already defined in /srv/mediawiki/config/Wikibase.php on line 11
Thiemo Kreuz (WMDE) (talkcontribs)

What is config/Wikibase.php? Such a file doesn't exist in my installation. What are you using as a source?

Reception123 (talkcontribs)
This post was hidden by TMg (history)
Thiemo Kreuz (WMDE) (talkcontribs)

It sounds like certain code is executed twice. I'm afraid there is nothing else to say since you did not explained your setup, and what specific source you used.

Also please don't mention my name every single time. Flow allows me to watch this thread if I want to. I don't need to be notified twice. Especially since this is not a personal thread, but everybody familiar with setting third-party Wikibase installations up should feel encouraged to respond. Thank you.

Reception123 (talkcontribs)
Thiemo Kreuz (WMDE) (talkcontribs)

I'm afraid I'm entirely lost now. Do you work on that Miraheze project? What is your setup? What do you want to do? What version of MediaWiki are you using, and what version of the Wikibase code? Or is this about the work-in-progress Docker image?

Please understand I can not help you if you do not provide a minimal amount of information. How to report a bug might help.

Reception123 (talkcontribs)

Yes, I'm a volunteer there. The entire setup can be seen here: https://github.com/miraheze/mw-config, but the two files I have linked are the most important regarding Wikibase Repo. The farm needs the Wikibase extensions for several wikis who want to create items, etc.

Version: 1.29.1 and Wikibase REL1_29 branch.

Thiemo Kreuz (WMDE) (talkcontribs)

Is the code at https://github.com/miraheze/mw-config the version of the code that is broken right now? Or are the error messages you posted from a modified local copy?

You also posted two different sets of error messages above, but never explained what you changed in between.

An error about a constant already being defined quite literally means that the relevant define() is executed twice. I would add some debug output (e.g. throw new Exception( 'I just want a stack trace' );) right before this line to understand better what's going on. But this is basic debugging I can not really help you with.

Reply to "Undefined indexes"