Page MenuHomeMiraheze

Wikibase error when adding sitelinks in the miraheze siteLinkGroup (gratisdatawiki)
Closed, InvalidPublic

Description

List of steps to reproduce:

  • Let's take the main page wikibase item as an instance
    • Step one; Go to this page,
    • Step two; Go to the sitelink section
    • Click on the empty sitelink box (that's pretagged with wiki) and try entering a site db name (let's use moviepediawiki)
    • Enter Main Page in the pagelink box that's pretagged with page) and click on the save button at the top.
    • See an error that says Could not save due to an error.

What happens?:
Trying to save in the sitelink section doesn't work, it throws an error that says; Could not save due to an error.

What should have happened instead?:
After click the save button, it should show a success message, that the save was successful.

Event Timeline

Excelsis triaged this task as Normal priority.Apr 5 2022, 15:18
Excelsis created this task.
Excelsis renamed this task from Wikibase error when adding sitelinks in the miraheze siteLinkGroup to Wikibase error when adding sitelinks in the miraheze siteLinkGroup (gratisdatawiki).Apr 5 2022, 15:21
Excelsis raised the priority of this task from Normal to High.Apr 5 2022, 16:28

Well, nothing can actually be edited in the wikibase aspect of the said wiki (gratisdatawiki). Statements can't be added, sitelinks can't be added, aliases and descriptions can't be added too.

Oh, I doubt if that's the cause though, but it actually started before that was merged, I first thought it was a network issue I had, it's been long a bit.

And by the way, that setting was to take effect on gratispaideiawiki not gratisdatawiki.

According to @Danniel (see diff), He said he didn't encountered any error when he was making this edit. Hmm, especially weird, but I am still personally investigating this issue.

In T9032#182854, @Ugochimobi wrote:

According to @Danniel (see diff), He said he didn't encountered any error when he was making this edit. Hmm, especially weird, but I am still personally investigating this issue.

Yes, I was able to make that edit without problems. But now that I am trying to make more edits, I am unable. The error message you described shows up every time I attempt to.

Reception123 lowered the priority of this task from High to Normal.Apr 7 2022, 05:49

Let me quicly point on something, when you want to update the item's statements directly from the item's page, they fail, for example updating the name, description, aliases, statements, sitelinks from the item's page fails, but updating the name, description, aliases from the /Special:SetLabelDescriptionAliases/, then the sitelinks with the /Special:SetSiteLink/ special pages, they all work fine.

@Ugochimobi I can't reproduce this error, I was able to add a link just fine after following the steps you set out.

curprev  16:53, 17 April 2022‎ Reception123 talk contribs block‎  4,128 bytes +108‎  ‎Added link to [moviepediawiki]: Main Page rollback 1 editundo

Did you went through Special:SetSiteLink? Because I still get the error wen trying to add sitelinks. Like I said earlier, adding statements also don't work, even adding description and aliases don't work too.

IMG_20220417_181421.jpg (927×480 px, 67 KB)

In T9032#184357, @Ugochimobi wrote:

Did you went through Special:SetSiteLink? Because I still get the error wen trying to add sitelinks. Like I said earlier, adding statements also don't work, even adding description and aliases don't work too.

IMG_20220417_181421.jpg (927×480 px, 67 KB)

No, I did it through the page as you said in your reproduction steps

Refused to connect to 'http://gratisdata.miraheze.org/w/api.php?action=query&format=json&meta=tokens&type=csrf ' because it violates the following Content Security Policy directive: "connect-src 'self' *.miraheze.org *.betaheze.org www.wikidata.org *.wikipedia.org www.mediawiki.org *.wikimedia.org *.wikinews.org *.wiktionary.org cdn.jsdelivr.net storage.googleapis.com".

I see this on Console.... I don't know if it will help though.

It definitely helps but I don't know how that makes sense

Unknown Object (User) added a comment.Apr 28 2022, 06:24
In T9032#184766, @Ugochimobi wrote:

Refused to connect to 'http://gratisdata.miraheze.org/w/api.php?action=query&format=json&meta=tokens&type=csrf ' because it violates the following Content Security Policy directive: "connect-src 'self' *.miraheze.org *.betaheze.org www.wikidata.org *.wikipedia.org www.mediawiki.org *.wikimedia.org *.wikinews.org *.wiktionary.org cdn.jsdelivr.net storage.googleapis.com".

I see this on Console.... I don't know if it will help though.

What are you loading from the API that is trying to use http, not https?

(ー_ーゞ
humm, I think, I just found out that wmgWikibaseRepoUrl is using http instead of https.

....hmm, and now everything seems fine now, working atleast as usual.

Excelsis claimed this task.
Excelsis moved this task from Backlog to Short Term on the MediaWiki (SRE) board.
Unknown Object (User) added a comment.Apr 28 2022, 15:55
In T9032#185482, @Ugochimobi wrote:

(ー_ーゞ
humm, I think, I just found out that wmgWikibaseRepoUrl is using http instead of https.

That would be why.

In T9032#185482, @Ugochimobi wrote:

(ー_ーゞ
humm, I think, I just found out that wmgWikibaseRepoUrl is using http instead of https.

That would be why.

yeah, that's exactly why.