Project:Support desk

Jump to navigation Jump to search

About this board

Welcome to'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 日本語 中文

How to change defaults fonts to MonserratFont extension

SamiWey (talkcontribs)
SamiWey (talkcontribs)


Harej (talkcontribs)

Installing the extension merely makes the font available. You need to call the font through sitewide CSS or inline HTML styling (eg < div style=“font-family:Montserrat;” >).

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


I just finished installing a fresh MediaWiki.

Every time I try to get my email confirmed, I get the following message:

... could not send your confirmation mail. Please check your email address for invalid characters.

Mailer returned: Unknown error in PHP's mail() function.

Email address is correct.

Enabled logs but no luck there. No file was created.

Any help is welcome!

System info:

MediaWiki 1.34.0
PHP 7.4.3 (fpm-fcgi)
MySQL 5.6.40-84.0-log
ICU 50.2
pear/mail 1.4.1 BSD-2-Clause
pear/mail_mime 1.10.2 BSD-3-clause
pear/net_smtp 1.8.1 BSD-2-Clause

Bawolff (talkcontribs)

check that the server has an mta installed (eg sendmail, qmail, etc) and configured correctly.

Or just use manual:$wgSMTP instead

Reply to "Mailer problem"

404 not found when saving edits on MediaWiki under php-fpm/nginx

Justinacolmena (talkcontribs)

I was running MediaWiki on Apache with mod_php, but I switched over to php-fpm on nginx.


The preview works successfully, but actually saving an edit causes a 404 not found error to be reported by nginx. I am wondering if something might be deadlocked in the database, and the fastcgi_pass to php-fpm is not producing any output.

No permanent damage, because it is possible to reload the page or navigate back to it, and find that one's edits were in fact saved.

Otherwise, php-fpm on nginx seems to be somewhat faster and use less resources than the "standard" Apache/mod_php solution.

Reply to "404 not found when saving edits on MediaWiki under php-fpm/nginx"

Create account/reset pwd timeouts and log-in failures

TyronX1 (talkcontribs)

I have a mediawiki v1.34 over 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"

Migrating MYSQL to PSQL database

Iradum (talkcontribs)


In this weekend I've tried to migrate a mediawiki server, to a new one.

My main problem is to migrate the database, from MYSQL to PSQL. Is there any solution to move all the data from one database to another, without losing data? I've tried to convert it using pgloader, but without success.

I tried to import and export all the images, posts and users but i have a problem at UserExport plugin too.

Thank you for help!

Malyacko (talkcontribs)

Is "PSQL" the same as "PostgreSQL"?

Iradum (talkcontribs)

Hello Malyacko,

Yes, is a PostgreSQL server. Sorry for abbreviations.

Ciencia Al Poder (talkcontribs)

Sadly, PostgreSQL has also some differences in schema, like for example the user table which is named "mwuser" in PostgeSQL.

Iradum (talkcontribs)

Thanks Ciencia.

Than, is there any way to move all the content from one database to another one without losing data?

Maybe using importing and exporting plugins? I observe that UserExport plugin is not working on version 1.25, the version that is running on the old server. I could try to upgrade it (to 1.27 or newer) and try to export them after.

After this I can try to export all the images and all the pages, but i'm not sure if in this process we will lose some information.

Ciencia Al Poder (talkcontribs)

I'm not sure if there's documentation somewhere about the schema differencies between PSQL and mysql, which you could use to rename tables or fields as needed. the mwuser table is one of them that I'm aware of. You can try doing that change on your converted database and see if there's something else that breaks...

Another option can be to install MediaWiki on a new PSQL database just to create the schema, and then try to import the data from the old database. If you encounter errors, those would be from differencies in schema, that you can fix as you encounter them. Be sure to use the same MediaWiki version your're using now, to not introduce schema differencies caused by a version upgrade. Then you could do a normal MediaWiki upgrade to get the latest version.

Iradum (talkcontribs)

Thanks Ciencia!

I will try this approach.

Bovender (talkcontribs)

@Iradum, sorry for reviving this old thread, but did you ever manage to migrate to Postgres? I'm struggling with it too, using pgloader. Thanks.

Reply to "Migrating MYSQL to PSQL database"


渡波 空 (talkcontribs)


アップロード時に「[Xk58ZdHgMN9BfQErIWwzvAAAAAk] 2020-02-20 12:32:37: 種別「Error」の致命的例外」と



Bawolff (talkcontribs)

$wgShowExceptionDetails = true;」を設定します LocalSettings.phpで。



LongThickTabbyCat (talkcontribs)


$wgShowExceptionDetails = true;」を設定したところ、

Error from line 160 of /includes/libs/mime/XmlTypeCheck.php: Class 'XMLReader' not found



Momijimaple (talkcontribs)




  • 1.28
  • 1.31

1. LocalSettings.phpに$wgShowExceptionDetails = true;を追記


Error from line 160 of /includes/libs/mime/XmlTypeCheck.php: Class 'XMLReader' not found

3. このページ(Topic:Ss6fra8fvfjz7ut0)を参考後、現行のphp7.0がそのままの状態で、再インストール(CentOS 7、PHP7.0 環境)

yum install --enablerepo=remi-php70 php-xml
systemctl restart nginx
systemctl restart php-fpm


5. このページ(ttps://を参考にしてphpのエラーを確認してphp.iniを編集

$ php
PHP Warning:  Module 'dom' already loaded in Unknown on line 0
PHP Warning:  Module 'SimpleXML' already loaded in Unknown on line 0
PHP Warning:  Module 'xml' already loaded in Unknown on line 0
vi /etc/php.ini


systemctl restart php-fpm
systemctl restart nginx



サムネイルの作成エラー: /bin/bash: /usr/bin/convert: No such file or directory

これは Imagemagick を入れていないことが原因でした。


yum install ImageMagick
yum install ImageMagick-devel

vi /etc/php.ini


$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = 'C:/ImageMagick/convert.exe'; # for windows
$wgImageMagickConvertCommand = '/usr/bin/convert'; # for linux
Reply to "ファイルのアップロードにて"

getting wikidata translation options into wikibase

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"

help needed with Enabling sitelinks in Wikibase installation

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?

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"

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)