Project:Support desk

About this board

Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions!

(Read this message in a different language)

See also

Other places to ask for help:

Before you post

Post a new question

  1. To help us answer your questions, please indicate which versions you are using, as found on your wiki's Special:Version page:
    • MediaWiki version
    • PHP version
    • Database type and version
  2. Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
  3. To start a new thread, click "Start a new topic".

Deleted external links are still shown on Special:LinkSearch

Stefahn (talkcontribs)

I buildt a "link system" on my wikis. External links are added in a special namespace and then integrated into articles by tagging this links.

Now, if we remove a link the site Special:LinkSearch still claims that this link exists on all articles, where this link was integrated into. The problem is Special:RottenLinks shows those deleted links too.

Is this a bug?

I can fix the errors by running Manual:refreshLinks.php but this script takes about 1 hour to run...

TheDJ (talkcontribs)

Those tables get updated asynchronously via the Job queue. Have you tried waiting, or setting a cron job or continious process to process the job queue ?

Stefahn (talkcontribs)

Thanks for your reply. It's been one week and the deleted link still shows up on Special:LinkSearch. The job queue is empty...

I think I will set up a cronjob with runJobs.php anyway. Is it enough to run it once a day?

Reply to "Deleted external links are still shown on Special:LinkSearch"

MediaWiki Images Not Displaying When Switching to SSL

OutsideEdge94 (talkcontribs)
  • MediaWiki 1.36
  • Apache
  • PHP 7.3

I recently turned on SSL for a site running MediaWiki. When I did that, the thumbnail and file: page images are no longer displaying. Switching back to Non-SSL corrects the issue. The LocalSettings.php file has been changed to reflect the protocol-agnostic // URL in the $wgServer variable. All HTTP:// references in the database (via SRDB) have been modified to be HTTPS://

For example and to duplicate the issue:

  • Scroll to the bottom to see broken thumbnails.
  • If you click into the image, you see the content, but the image doesn't display here either
  • If you click the link for the image on this page, you get a really funky URL with the absolute path (definitely not what I want) in the URL and the site URL tacked on at the end.

I have tried repairing images, re-importing all the images, clearing cache, purging a page, and adding a new image to a page. With no success.

Has anyone seen this before or have any ideas about what might be causing it? It's gotta be pathing but, man, I can't seem to crack it.

Bawolff (talkcontribs)

What is $wgUploadPath set to? What are other file related config directives set to?

OutsideEdge94 (talkcontribs)

Bawolff, thanks for your reply. $wgUploadPath is set to "/images" and uploading images works fine. Also note that the whole system works as expected under a non-SSL environment. I want to say it's something with the rewrite rules under SSL but can't say for sure nor have I any clue as to how I would figure that out.

Seb35 (talkcontribs)
OutsideEdge94 (talkcontribs)

Seb35, thank you for your reply. Yes, I saw this strange URL as well. But as I said to Bawolff, all the URL references to images work as expected under a non-SSL environment. Do you have any thoughts on why SSL would cause the routing and rewriting of image references to go haywire like that?

Ciencia Al Poder (talkcontribs)

The problem is your $wgUploadPath variable seems misconfigured. It should be an URL or URL path, not filesystem path. Don't confuse it with $wgUploadDirectory!

OutsideEdge94 (talkcontribs)

Ciencia Al Poder, thank you for your reply. That var is set to "/images". Should that be a fully qualified URL? The script path is set to "" (null) and the default for $wgUploadPath default is "{$wgScriptPath}/images" so "/images/" seems like a valid setting.

Ciencia Al Poder (talkcontribs)

It's a valid setting, except that it wasn't valid when Seb35 and I checked, and your images were pointing to Looks like it has been resolved now.

OutsideEdge94 (talkcontribs)
Reply to "MediaWiki Images Not Displaying When Switching to SSL"

How to add user group permissions?

2003:E7:570D:4C00:F892:FB70:1D7:76D4 (talkcontribs)

Mediawiki 1.37, fresh install. Added DumpsOnDemand extension according to the rules and the line

$wgGroupPermissions['Administrators']['dumprequestlog'] = true;

However, (1) a user who is member of group Administrators cannot request a dump log and (2) when I list User Group Rights the page gives me two entries for Administrators, one listing only this added right and several sections in the table below there is another entry for Administrators showing the usual rights.

I did not mess with the LocalSettings.php, this is a fresh install.

Any ideas what went wrong here?

Mainframe98 (talkcontribs)

The internal name for the Administrators group is sysop. If I remember correctly, replace

$wgGroupPermissions['Administrators']['dumprequestlog'] = true;


$wgGroupPermissions['sysop']['dumprequestlog'] = true;

and this should work.

2003:E7:570D:4C00:F892:FB70:1D7:76D4 (talkcontribs)

Great. Yes. Works. Thnx.

Followup question: Where could I have found this information? Help:User rights and groups does not mention anything of this. Why? Bug in the documentation? Good reason for this different name scheme?

Mainframe98 (talkcontribs)

Sysop is mentioned in Manual:User_rights#List_of_groups, but that never mentions administrator. There's Help:Sysops and permissions, though and there are some links between these pages. It does leave something to be desired in regards to clarity.

The reason for the difference is historical (sysops used to be actual system operators) and changing it would require a lot of work because all the code uses sysop.

2003:E7:570D:4C00:F892:FB70:1D7:76D4 (talkcontribs)

Cool. Thnx a lot.

Reply to "How to add user group permissions?"
Kent7301 (talkcontribs)


Reply to "Деньги"
Steakdu38 (talkcontribs)


I'd like to add a background image to my personal wiki page of a private wiki. If that's not possible, I'd like at least to be able to put the right side bar presenting me over the image. I have admin rights to edit whatever I want on the wiki but I have no idea on how to achieve that. Thanks. :)

Fokebox (talkcontribs)

One of the ways how you can do it is add CSS at Mediawiki:Common.css indicating the image and page

Steakdu38 (talkcontribs)

Could you be more precise on how I should edit Common.css and give me the code. I have absolutely no idea. Thank you for your help. :)

Malyacko (talkcontribs)

See Manual:CSS and use your web browser's developer tools to inspect.

Steakdu38 (talkcontribs)

I mean, I don't know how to put CSS for a specific page in Common.css

Bawolff (talkcontribs)

The body tag will have a class with the page name.

For example you might do

.page-Main_Page #content { background: url(/foo/bar/someimage.png); }

however, depending on your skin, you might need to target a different div then #content to place the actual background image on, im not sure. Also you need to make sure it has a high enough specificity to override any builtin rules.

Steakdu38 (talkcontribs)

Well thank you. :)

Reply to "Background image"

Unexpected conversion in a translated page

SolidBlock (talkcontribs)

In a translatable page translated to /zh, with "variant=zh_cn", something that should not be converted has been conterted. For example, in the , the word "日本語" in Japanese should not be converted to "日本语".

Malyacko (talkcontribs)

@SolidBlock Please read "Post a new question" in the sidebar. Thanks.

SolidBlock (talkcontribs)
Malyacko (talkcontribs)
Reply to "Unexpected conversion in a translated page"
BugDroid (talkcontribs)


I have followed the details on wikibase / installation. everything worked fine. but as soon as I add the lines to LocalSettings.php the wiki wont work anymore and gives me a http error 500. if I remove the lines, the pages works again.

I have MediaWiki 1.37 and ParserFunctions, Scribunto and TemplateStyles installed

Malyacko (talkcontribs)

What "details" where exactly? Which "the lines"?

BugDroid (talkcontribs)


when I add the lines:

wfLoadExtension( 'WikibaseRepository', "$IP/extensions/Wikibase/extension-repo.json" ); require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php"; wfLoadExtension( 'WikibaseClient', "$IP/extensions/Wikibase/extension-client.json" ); require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";

the wiki wont work anymore

Malyacko (talkcontribs)

How did you set your content in the two ExampleSettings.php ?

Bawolff (talkcontribs)

You should also enable php error reporting; see How to debug

Reply to "Problem with Wikibase install"

Show modal or prompt to get password

BarbaRuivaRK (talkcontribs)

Hi! I implemented a login solution with PluggableAuth in which I get via get the username and a token generated by the system that made the login request. What I need is that when there is an attempt to login, the system checks if the user has administrative rights and asks for a password to be compared with the bank's. I have two problems: 1: How do I display a modal with an input and a button or a prompt dialog to capture this password? 2: How can I get the typed password and compare it with the bank because it is saved encrypted?


It would be nice if you could change the $wgPluggableAuth_EnableLocalLogin variable to true dynamically in code

Tanbirzx (talkcontribs)
Reply to "Show modal or prompt to get password"

Issues connecting MySQL container and MediaWiki Container on Docker

Squeak24 (talkcontribs)

Hi All

I am tryingto install MediaWiki using Docker. I am using Windows, but want to use Docker so I have more scope of what I can do. Long term I want to create my own image so I can have Parsoid and GraphViz running on it.

The issue I am getting is when I go onto the database page of the installation I get:

Cannot access the database: php_network_getaddresses: getaddrinfo failed: Name or service not known (mysqlhost).

Check the host, username and password and try again.

I have tried to create my own hostname for the MySQL running the line:

docker run --name=mysql1 -–network=mysqlhost -d mysql/mysql-server

But it comes up with the same error.

To get the container for MediaWiki working I have used:

docker run --name mediawiki -p 80:80 mediawiki

It looks like they are both working, just not talking to each other.

I have tried to link the MySQL up with MediaWiki as detailed on the MediaWiki Docker page using:

docker run --name mediawiki --link wiki:mysql -d mediawiki

But with that I get the error:

C:\Users\User>docker run --name mediawiki --link wiki:mysql -d mediawiki docker: Error response from daemon: Conflict. The container name "/mediawiki" is already in use by container "eb03498d223748379186507fe6d58e1cb7f59f4f2de3e6e1ba863d5b8210bf3c". You have to remove (or rename) that container to be able to reuse that name. See 'docker run --help'.

So I tried:

docker run --name wiki --link wiki:mysql -d mediawiki

But I get the error:

C:\Users\User>docker run --name wiki --link wiki:mysql -d mediawiki docker: Error response from daemon: could not get container for wiki: No such container: wiki. See 'docker run --help'.

Not sure what I am doing wrong, any help is appreciated,

Ciencia Al Poder (talkcontribs)

You use "docker run" to create a new container. Once you do that, you can't use the same name, unless you destroy that container. Try "docker rm mediawiki" to remove it and recreate it again.

Once you have the container created, and stop it, you can start it again with "docker start mediawiki"

Squeak24 (talkcontribs)

I get that, I just can't seem to get the MediaWiki container to talk to the MySQL container. I found this which indicates the MySQL host is mysql in my case. (talkcontribs)

This is an issue for me as well. is there any resolution that has been found?

Ciencia Al Poder (talkcontribs)
Squeak24 (talkcontribs)

I have, but other work commitments came up. I am hoping to have a site down in the next few weeks now things are getting quieter again. But this is still an issue I am facing. (talkcontribs)

I had a similar issue. When I used the database container name as the localhost, then I was able to complete the installation. My container name was mariadb.

Reply to "Issues connecting MySQL container and MediaWiki Container on Docker"

Arabic numerals on Sindhi Wikipedia

JogiAsad (talkcontribs)

Hi, I want to draw your attention towards a problem on Sindhi Wikipedia that Arabic numbers are showing on whole wiki, each page, each section is in arabic digits its hard to understand and digits are too small to comprehension, Persho-Arabic_Sindhi numbers are not widely used nowadays and its very hard to comprehended. on the behalf of Sindhi Wikipedia community and as an admin I request to change the arabic numbers with either perso-Sindhi numbers or to English digits. suppose ١٤٬٧٨٦ is arabic number (١٤٬٧٨٦ shows the current articles of sdwiki on special page). HERE IS THE CONSENSUS PAGE and VOTES FOr THIS CHANGE REQEUEST Reference:

Bawolff (talkcontribs)

Phabricator is the place to request this type of change. We at the support desk can't do anything about this. (Sorry. It sounds like there has been much back and forth on this topic which i imagine has been frustrating.)

Also just a note - the term "arabic numerals" in english more commonly refers to 1234567890 then the arabic letter style numerals, so it can be a bit of a confusing term in english.

Bawolff (talkcontribs)

I've attempted to give this a little prod on phabricator, to hopefully move things forward.

We (along with many other software projects) get translation data from the CLDR project, so you could also try filing a bug with the CLDR project to change what they have marked as the correct way to write numerals in Sindhi -

JogiAsad (talkcontribs)

CLDR project request seems complicated at the moment I'll try again to understand its process to request changes. However this problem of arabic-sindhi numberals on sdwiki is still problematic. screenshot

JogiAsad (talkcontribs)
Reply to "Arabic numerals on Sindhi Wikipedia"