Project:Support desk

About this board

Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to ask :

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
Previous page history was archived for backup purposes at Project:Support_desk/old on 2015-07-30.
Other languages: English  العربية čeština Esperanto français 日本語 中文

getting wikidata translation options into wikibase

1
Wikirik123 (talkcontribs)

There are 2 terms Wikidata does in terms of cross-lange searching that my wiki-repo which used Wikibase and ULS extension does NOT do:

  1. it gives cross-language results in the search box dropdown, eg my settings are set to English, yet when I search for "organisatie", a Dutch word, the search dropdown here gives as the 4th result the English word "organization" with the Dutch word "organisatie" in brackets behind it. My wiki-repo does not do this.
  2. it gives cross-language results in the search results. Again, settings to English, when i search for "organisatie" and press enter, the search results give English results with the Dutch translation behind it with "Dutch" in small italic letters superscript. My wiki-repo does not do this. It DOES list the English item in the search results, but it does not list the Dutch translation behind it with "Dutch" in small italic letters superscript.

Just to note: in my own repo i do have the item "organization" both in English and with the Dutch translation "organisatie", just as on Wikidata.

Can anyone help me in getting these great features that are present on Wikidata also onto my wiki-repo?

Reply to "getting wikidata translation options into wikibase"

How to change defaults fonts to MonserratFont extension

1
SamiWey (talkcontribs)
Reply to "How to change defaults fonts to MonserratFont extension"

Create account/reset pwd timeouts and log-in failures

5
TyronX1 (talkcontribs)

I have a mediawiki v1.34 over at https://wiki.vintagestory.at/ and rather suddenly I can no longer log in with my account. I get the message "Incorrect username or password entered. Please try again.".

I did not change my password. I also unsuccessfully tried to fix it using the direct database modification as suggested here: Manual:Resetting passwords#Direct database modification

Attempting to create an account or reset the password results in a timeout after a long time of loading. I can verify that it is not due to the SMTP settings.

This is all super weird to me and I have no idea on how to debug this. I'm the owner of the site so I can access all the files and database, if more information is needed.

Thanks for reading!


Bawolff (talkcontribs)

i guess the timeout could be if pbkdf2 config had too many rounds ($wgPasswordConfig), but that would be really weird, so maybe its not that.

2A03:EC00:B188:375:F57E:A2BC:16C0:825F (talkcontribs)

Thank you for the response, Bawolff, I have not changed the value of $wgPasswordConfig. Are you aware of any debug option that would help me narrow down the cause?

TyronX1 (talkcontribs)

Ops, i was not logged in it seems

Bawolff (talkcontribs)

i mean, always check your error log just in case. If you are getting timeouts, you could try enabling profiling to see where mediawiki is getting stuck.

Reply to "Create account/reset pwd timeouts and log-in failures"

help needed with Enabling sitelinks in Wikibase installation

2
Wikirik123 (talkcontribs)

Hi all, i need some help with Enabling the sitelinks in my Wikibase installation. I have Wikimedia 1.34 and Wikibase 1.34 installed.

I am trying to follow this guideline: Wikibase/Installation#Enable Sitelinks but i'm stuck. I followed the instructions in step 1 to create the custom groups in my LocalSettings.php. There was no such entry yet in the LocalSettings.php file, so i made a new one. This appears to have worked. I used this code:

$wgWBRepoSettings['siteLinkGroups'] = [ 'Wikidata', 'Wikimedia Commons', 'MediaWiki', 'Wikispecies', 'Wikibooks', 'Wikimania', 'Wikinews', 'Wikipedia', 'Wikiquote', 'Wikisource', 'Wikiversity', 'Wikivoyage', 'Wiktionary', 'OpenStreetMap', 'other sites' ];

However, then in Step 2 i am instructed to Localize these groups. I did that by creating a page, for example, for <domain name>/wiki/MediaWiki:Wikibase-sitelinks-Wikimedia_Commons and by writing "Wikimedia Commons" on that page. If i understand the guideline correctly, this is supposed to change the heading for Wikimedia Commons from "⧼wikibase-sitelinks-Wikidata⧽" to "Wikimedia Commons". However, when i go to a random item on my wiki page, this sitelink still looks like this ""⧼wikibase-sitelinks-Wikidata⧽". So i am wondering if i did something wrong.

In step 3 i am instructed to add the sitelinks to my repo-wiki, but here i really do not know what to do. The instructions are unclear to me, i'm not sure what edit where, even with the specific instructions that Step 3 refers to.

Any help would be much appreciated!!


Wikirik123 (talkcontribs)

Edit: the problem of step 2 is solved - it took a while for the changes to become visible, but now the names are changed. Problem of Step 3 remains: the instructions there are a mystery to me.

Reply to "help needed with Enabling sitelinks in Wikibase installation"

Category tags list on top of the pages?

2
S0ring (talkcontribs)

Is it possible to get the Category tags list on top instead on the bottom of the pages?

Jonathan3 (talkcontribs)

I guess you could shift it with jQuery.

Reply to "Category tags list on top of the pages?"

contribute to "Support 'maps' parameter in TemplateData GUI editor"

5
Summary by Jonathan3

Related to GSoC project.

Soumyaa.rao (talkcontribs)

Hi! I am Soumya Rao from India. I am a sophomore at Indira Gandhi Delhi Technical University for Women. I am well versed in web development. I would like to contribute to "Support 'maps' parameter in TemplateData GUI editor" project. Please guide me through the process.

Malyacko (talkcontribs)
Jonathan3 (talkcontribs)
SSethi (WMF) (talkcontribs)
Jonathan3 (talkcontribs)

List of all contributors, including IP addresses?

6
Summary by Jonathan3

No existing extension but can be done using MySQL.

Jonathan3 (talkcontribs)

Is is possible to either:

  • Show a list of contributors (including IP addresses) with links to their user contributions pages.
  • Show an entire list of non-admin/sysop contributors (including IP addresses) with all their contributions shown on the one page. (Non-sysop because on my wiki it otherwise would be too large a list...)

I used to have Extension:Contribution Scores but from memory it only took account of registered users.

Thanks.

Bawolff (talkcontribs)

this is specific enough, you would probably have to make it yourself.

Closest built un is special:activeusers

Jonathan3 (talkcontribs)

Thanks. That's helpful. I'll try to make a special page based on that one. I "just" need to get it to look for users since the year dot, and include IP addresses :-)

Jonathan3 (talkcontribs)

I don't need to look at this information regularly, so went for the easier option of saving a MySQL query to run periodically and paste into a wiki page.

SELECT CONCAT ("*[[Special:Contributions/", rev_user_text, "|", rev_user_text, "]] - {{#time:j/n/y|", 
rev_timestamp, "}} - ", COUNT(*), " edit(s) to [[{{namespace|", page_namespace, "}}", page_title, "]]")
FROM wm_revision  
INNER JOIN wm_page ON wm_page.page_id = wm_revision.rev_page
WHERE rev_user_text <> "MY USERNAME"  
GROUP BY CONCAT (rev_user_text, "-", rev_page)
ORDER BY rev_user_text, rev_timestamp

I had to create Template:Namespace using a #switch to convert the page_namespace numbers into their text equivalent.

Bawolff (talkcontribs)

note: the above query will probably stop working in 1.34 due to schema changes.

Jonathan3 (talkcontribs)

Thanks for the warning! :-)

CodeEditor and CodeMirror together

3
Summary by Jonathan3

Can install both no problem.

Jonathan3 (talkcontribs)

I started to use Extension:CodeEditor the other day, and it works well for CSS and JS pages.

Today I read about Extension:CodeMirror (which does similar for wikitext) on User:Jeroen De Dauw's website. I think this will send him a ping: @Jeroen De Dauw:

Of course I'll install CodeMirror and give it a go, but does anyone know already whether these two extensions work well together? Thanks.

TheDJ (talkcontribs)

Both are actively in use on the WMF sites, as can be observed on Special:Version.

Jonathan3 (talkcontribs)

Thanks.

limit user creation to a specific email domain

2
129.21.113.206 (talkcontribs)

Is there a way limit user creation to just emails that match anything@company.org ?

Jonathan3 (talkcontribs)

I dont think email is required for account creation but you could use the ConfirmAccount extension.

Reply to "limit user creation to a specific email domain"
Etaulbee (talkcontribs)

I've been tasked with upgrading our Mediawiki application. The upgrade path is a big jump:

Old:

New:

Product Version
MediaWiki 1.34.0
PHP 7.2.24-0ubuntu0.18.04.3 (apache2handler)
MariaDB 10.1.44-MariaDB-0ubuntu0.18.04.1
ICU 60.2

Not having any luck as to find the best way to get this upgrade done (new system is already online).

Is there any info on the best way to cut to old system over to the new one? Recommendations?

Thank you in advance!

Bawolff (talkcontribs)

well your lucky its 1.5 (1.4 is a pita to upgrade from).

Basically take a backup first of all. Then follow normal upgrading instructions (see manual:upgrading). In theory it should just work if your coming from 1.5. However upgrading from that old is prob not tested much. If it doesnt work, id say try and do it in steps - first to 1.16 and then to 1.34, but definitely try doing it in one shot first as it may just work.

Ciencia Al Poder (talkcontribs)

We'd also appreciate your feedback about the upgrade process, if you succeeded to do the one-step upgrade or if you did need to do multiple steps

Etaulbee (talkcontribs)

I'll hopefully try this over the weekend - will post update.


Reply to "Upgrade question..."