Topic on Extension talk:Wikibase Repository

Cannot Edit/Add statements to an Item

21
E.Kuijt (talkcontribs)

Hi All, After running the wikibase/installation steps everything seemed to work just right. I can make Items and properties and these are added to my wiki.

But when I go to my new generated Item page, the +Add behind statements is missing.

In my inspect console i get this traceback.

Exception in module-execute in module wikibase.experts.getStore:

load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=04kt0mo:176 TypeError: Cannot set property 'getStore' of undefined TypeError: Cannot set property 'getStore' of undefined

    at load.php?debug=false&lang=en&modules=jquery.tipsy|jquery.wikibase.edittoolbar%2Csitelinkview%2Csnakview%2Ctoolbaritem%2Cwbtooltip|oojs-ui-core%2Coojs-ui-widgets|oojs-ui-core.styles|oojs-ui.styles.icons|wikibase.experts.getStore|wikibase.ui.entityViewInit&skin=vector&version=1dx8mfw:283

    at load.php?debug=false&lang=en&modules=jquery.tipsy|jquery.wikibase.edittoolbar%2Csitelinkview%2Csnakview%2Ctoolbaritem%2Cwbtooltip|oojs-ui-core%2Coojs-ui-widgets|oojs-ui-core.styles|oojs-ui.styles.icons|wikibase.experts.getStore|wikibase.ui.entityViewInit&skin=vector&version=1dx8mfw:284

    at Object.<anonymous> (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=04kt0mo:161)

    at fire (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=04kt0mo:45)

    at Object.add [as done] (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=04kt0mo:45)

    at Object.always (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=04kt0mo:46)

    at runScript (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=04kt0mo:160)

    at checkCssHandles (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=04kt0mo:161)

    at execute (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=04kt0mo:162)

    at Object.implement (load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=04kt0mo:168)

Can anyone help me with this? Thx

Eric

Thiemo Kreuz (WMDE) (talkcontribs)
E.Kuijt (talkcontribs)

Thx for your swift reply, I changed the line and I'm afraid it didn't work for my case.

The Errormessage now changed to: Error: Module "wikibase.experts.modules" is not loaded. Error: Module "wikibase.experts.modules" is not loaded.

Thiemo Kreuz (WMDE) (talkcontribs)

Uh. That sounds like you had a typo somewhere. Can you double-check?

E.Kuijt (talkcontribs)

Yep, was a typo, error message gone now. Unfortunately this didn't add the +Add at the Statements button.

Do I have to configure something else for that?

Thiemo Kreuz (WMDE) (talkcontribs)

No special configuration needed. If the buttons don't appear, but you do not get an error message on the JavaScript console any more, then something a bit more awkward is broken. Hard to track down from the distance. Maybe you can check what Special:Version lists and paste the relevant parts, namely the Wikibase Repository and the DataTypes lines?

E.Kuijt (talkcontribs)
Wikibase Client 0.5 alpha (35343ae)12:49, 14 September 2017 GPL-2.0+ Client for the Wikibase extension The Wikidata team and others
Wikibase DataModel JavaScript 3.1.0 GPL-2.0+ Javascript implementation of the Wikibase data model H. Snater
Wikibase JavaScript API 2.2.2 GPL-2.0+ Wikibase API client in JavaScript H. Snater
Wikibase Repository 0.5 alpha (35343ae)12:49, 14 September 2017 GPL-2.0+ Structured data repository The Wikidata team and others
Wikibase Serialization JavaScript 2.1.0 GPL-2.0+ JavaScript library containing serializers and deserializers for the Wikibase DataModel. H. Snater
Wikibase View 0.1-dev GPL-2.0+ Wikibase View H. Snater
WikibaseLib 0.5 alpha (35343ae)12:49, 14 September 2017 GPL-2.0+ Holds common functionality for the Wikibase and Wikibase Client extensions The Wikidata team and others

Maybe it would be wise to select a version branch?

Thiemo Kreuz (WMDE) (talkcontribs)

Sure, that would be wise, and we are working on it. What you pasted above looks right. Sorry, I do not have an other idea at the moment.

2A01:CB05:8097:8E00:9D95:28BD:BB6A:B123 (talkcontribs)

Hi,

I am having the same issue, i have the same Special:Version information for the wikibase extension. I also tried with the REL1_27 (REL1_29 and REL1_28 are broken it seems) and i do have the +add button but the "save" button to submit the form stays gray and not clickable.

Is there any older version of MediaWiki + Wikibase that work? I would like to have it up and running no matter which version.

Thank you very much in advance,

Sean.

Thiemo Kreuz (WMDE) (talkcontribs)

As Wikibase/Installation states you should use the master branches of both MediaWiki and Wikibase. Older releases are not necessarily compatible to each other.

2A01:CB05:8097:8E00:38B8:93B7:A8A1:8773 (talkcontribs)

Hi,

Thank you for your promt answer. I started working with the master version and given that i have data to transform and import as wikibase items i'm starting to play with the api. I added statements to an item hoping that the "edit" and "add value" button would be there but they arn't.

The good news is that it seems that everything is working propely server side and the statements are being displayed on the browser, but not editable. Should i check something about the rights of my user account?

Thanks,

Sean.

Thiemo Kreuz (WMDE) (talkcontribs)

Editing is allowed for everybody by default. So no, I don't thing this has something to do with user rights.

Jtuom (talkcontribs)

Hello.

I'd like to reactivate this question, because we installed Wikibase in early December 2017 and experience the same problem: Add button for adding statements does not exist. I checked the resources.php file mentioned in the discussion above, and it does already have the corrected line of code. Any new thoughts about what could be going on? I am not really computer savvy so unfortunately I cannot run any diagnostics without detailed instuctions.

Thanks.

Jouni

Thiemo Kreuz (WMDE) (talkcontribs)

Without knowing anything about your setup the only thing I can say is that you might check your local Special:Version. Make sure the Wikibase version you installed is compatible to your MediaWiki version. This is explained in more detail on Wikibase/Installation.

Tinker Bell (talkcontribs)

Hi, I've installed MediaWiki 1.31.1, and I have the same problem: the add button for adding statements doesn't show. I've followed the steps in Wikibase/Installation twice, I downloaded the branch branch REL1_31, and checked the change in resources.php, I don't know what other thing could cause the problem. Thanks.

In my Special:Version:

  • Wikibase Client: – (8178d16) 15:25 17 abr 2018
  • Wikibase Repository: – (8178d16) 15:25 17 abr 2018
  • Wikibase View: – (8178d16) 15:25 17 abr 2018
  • WikibaseLib: – (8178d16) 15:25 17 abr 2018
141.142.60.85 (talkcontribs)

Same issue for me here. Any help is greatly appreaciated

Skmp (talkcontribs)

I had the same problem and I think I found a solution. The problem was that if you download a specific version from github *without* using a command "git clone ..." but instead downloading it using "Download ZIP" button, you won't get the submodules you need. The solution is to download it using a git command like so: git clone --recursive --single-branch --branch REL1_31 https://github.com/wikimedia/mediawiki-extensions-Wikibase.git. Note the recursive key.

Thomas-topway-it (talkcontribs)

Hello, we have the same issue,

installing mediawiki REL1_34

and wikibase REL1_34

using

git clone --recursive https://gerrit.wikimedia.org/r/mediawiki/core.git --branch REL1_34 mediawiki

and

composer require wikibase/wikibase:dev-REL1_34

after install  the link "add statement" does not show

and we get the following error

mediawiki/includes/resourceloader/ResourceLoaderFileModule.php: ResourceLoaderFileModule::readScriptFiles: script file not found: ".../mediawiki/extensions/Wikibase/view/lib/wikibase-data-values/src/dataValues.js"


how can we solve that on that wikimedia / wikibase version ?

thanks

(Thomas)

PeaceDeadC (talkcontribs)

setting zlib.output_compression = Off in php.ini solved the issue in my case.

134.76.2.127 (talkcontribs)

Also doesn't work in my 1.37 version.

Neither recursive cloning nor turning zlib.compression off worked for me.

134.76.2.127 (talkcontribs)

Alright, I fixed it. Running

cd Wikibase

git submodule update --init --recursive

and then doing composer --no-dev and all php scripts again did it.

Reply to "Cannot Edit/Add statements to an Item"