Page MenuHomePhabricator

'Add Links' sidebar link doesn't work (Wikibase client)
Closed, ResolvedPublic

Description

After enabling Wikibase client I see 'Add Links' link on the sidebar, but when I click it the browser blocks the request because it goes to some unsecure location "http://repo.example.org/w/api.php?action=query&format=json&origin=..."

I've found this reference in extensions/Wikibase/client/config/WikibaseClient.example.php file, tried to change it there, but it didn't help. It feels this address comes from DB but I didn't find it there either.

Screen Shot 2020-05-04 at 1.12.36 AM.png (1×2 px, 569 KB)

This only happens if I click this link. If I copy its address and enter to the browser, it works fine, because in this case I copy exactly what is inside the href attribute and this is a correct link.

Also this issue is only when I'm logged-in.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Bugreporter subscribed.

Please use https in $wgWBClientSettings['repoUrl']. WikibaseClient.example.php is only an example, you should add the setting to InitialiseSettings.php (after any require_once) instead.

Thanks! I did all you suggested, also following the instructions from here https://www.mediawiki.org/wiki/Manual:InitialiseSettings.php but it didn't help.

Sergiidumyk claimed this task.

Finally and unexpectedly this is now working after installing and enabling UniversalLanguageSelector extension!