Project:Support desk
(Read this message in a different language)
See also
Before you post
- Check the FAQ and Errors and symptoms .
- If your question is about a specific feature, check the relevant technical manual , end-user help or extension page and consider asking on its talk page .
- For issues about the mediawiki.org website, report to Village Pump instead.
- Ask technical questions about Wikimedia websites on meta:Tech instead.
Post a new question
- To help us answer your questions, please indicate which version of MediaWiki you are using, as found on your wiki's Special:Version page:
- If possible, add
$wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 );
to LocalSettings.php in order to make MediaWiki show more detailed error messages. - 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.
- To start a new thread, click the box with the text "Add topic".
![]() |
---|
|
Keeping Vector 2010--but ditching Vector 2022--on a third-party wiki
If there's really a means of doing so--tried hiding the 2022 option on my site's Special:Preferences as founding bureaucrat, but that interface is still appearing in "useskin" mode--let me know in advance. Pinging @Bawolff/@TheDJ/@Pppery/@Universal Omega/@MacFan4000/@Reception123 just in case. (Based on a recent Miraheze help-desk discussion.) --Slgrandson (talk) 23:34, 15 May 2025 (UTC)
- Keeping this up for a bit longer before I receive a reply here, or ask around elsewhere. --Slgrandson (talk) 16:45, 29 May 2025 (UTC)
- If this gains no movement, I'll try my luck at Skin talk:Vector/2022. --Slgrandson (talk) 22:19, 12 June 2025 (UTC)
mw.user.isTemp is not a function
Hello everybody!
We upgraded our Mediawiki 1.32.2 to 1.43.0 (we first upgraded to 1.39, and then, to 1.43).
We have the "LDAPAuthentication2", "LDAPProvider" and "PluggableAuth" extensions configured to login via LDAP, and the rest of the official extensions of Mediawiki.
We can't logout on special pages or on the home page, for example. It does not affect the applied skin.
We have enabled the following PHP configuration ($wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 );
) but it does not show any error messages.
This is the message we see when we click on "logout": "The session is being closed. Please wait a few seconds".
And we get in the devtools the following message:
ready.js:195:15 Uncaught TypeError: mw.user.isTemp is not a function logoutViaPost ready.js:195 fire mediawiki.base.js:566 js ready.js:219 > jQuery 8 js ready.js:218 > jQuery 13 runScript load.php:12 execute load.php:14 doPropagation load.php:6 (Asíncrono: requestIdleCallback handler) setAndPropagate load.php:7 impl load.php:20 <anonymous> jQuery
We did not find any information on this.
Thanks! Diegxalv (talk) 11:49, 29 May 2025 (UTC)
- @Diegxalv Something is out of sync. Newer versions of MediaWiki provide that core javascript function, and clearly some of your other core javascript files know about it. My suspicion is that you installed the newer version on top of the older version, and some old files were not removed, or the copy of the new files was not completed. I would double check your upgrade process. —TheDJ (Not WMF) (talk • contribs) 08:51, 30 May 2025 (UTC)
Use external font for a Wikimedia wiki
Hi, I am currently want change font on a Wikimedia wiki to Cascadia Mono via js and css files, however sometimes it stills have default fonts. Could it possible to change to that font everywhere (e.g. like heading, titles, special pages, etc.).
Here link to my js and css files:
CSS: m:User:DinhHuy2010/global.css JS: m:User:DinhHuy2010/global.js
Thanks. DinhHuy2010 (talk) 13:13, 2 June 2025 (UTC)
- Try adding a !important to the css decleration. Bawolff (talk) 02:44, 4 June 2025 (UTC)
- @Bawolff Thanks, it works! DinhHuy2010 (talk) 12:29, 5 June 2025 (UTC)
htmlspecialchars() in HtmlArmor.php file
Hi,
We upgraded our Mediawiki to 1.43.1.
Everything is working but when we enabled the following PHP configuration ($wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 );
) , it shows us the following message:
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/HtmlArmor.php on line 59
Our PHP version is 8.1.32 (MediaWiki 1.43 requires PHP 8.1.0 or later).
We did not find any information on this.
Thanks! Diegxalv (talk) 14:21, 6 June 2025 (UTC)
- Its probably safe to ignore. It might mean one of the extensions you are using have not been updated for php 8.1 Bawolff (talk) 03:51, 7 June 2025 (UTC)
- Hi, @Bawolff!
- This message is quite curious, we are using only the extensions that come bundled with MediaWiki (included with the upgrade package).
- I hope this message doesn't cause any problems.
- Thanks for your help! Diegxalv (talk) 20:43, 7 June 2025 (UTC)
- I was kind of making an assumption that it was an extension and not core as i thought all the cases in core & bundled extensions were fixed, but perhaps we missed one. In any case, its just a harmless warning and can be safely ignored. In production use, its safe to set error_reporting in php.ini to exclude deprecation warnings. (if you know how to get a backtrace, that could be helpful for fixing it, but no worries if that is difficult). Bawolff (talk) 21:06, 7 June 2025 (UTC)
Writing filters for data items using the Abusefilter extension
We have a wiki with Wikibase data items attached. Many of our data items have one label, which we conventionally store as the English label, but there is nothing stopping people from creating other labels. Item properties determine whether or not a data item is subject to this or can have multilingual labels. How could you go about writing a filter that reports adding such a label?
Our version is 1.43.1. 151.186.181.32 15:34, 6 June 2025 (UTC)
- I think I am looking for documentation on Wikibase-specific filter rules such as
wbsetlabeldescriptionaliases.
151.186.181.32 11:23, 9 June 2025 (UTC)
About the themes removed in 1.22.
What is stopping me from copying "Standard" over from 1.21 and putting them in 1.39's theme folder? 2A00:23C6:41E6:AC01:3B40:E1AF:DED8:4C58 16:22, 8 June 2025 (UTC)
- Planned obsolescence, maybe: Skin:Standard was phased out from MW way back in 2013 (along with several others from Wikipedia's early days), and is no longer supported. Depending on your tastes/opinion, you might want to consider Nostalgia, which Wikimedia keeps around for WP's December 2001 snapshot. --Slgrandson (talk) 02:02, 9 June 2025 (UTC)
- Or you just fork the skin and fix it up yourself to work with all the new MediaWiki skin logic. —TheDJ (Not WMF) (talk • contribs) 08:10, 10 June 2025 (UTC)
Random page raises: InvalidArgumentException: Wikimedia\Rdbms\Platform\SQLPlatform::makeList: unexpected nested array
I have the latest version: 1.43.1
See all the details at: Sürüm - Nurpedia.org - İman ve İslam Hakikatlerine Dair Nur Ansiklopedisi
I got the following error when I try to pick a random page from the main page: Dahili hata - Nurpedia.org - İman ve İslam Hakikatlerine Dair Nur Ansiklopedisi
[683598d1451c472d2cb20af2] /wiki/%C3%96zel:Rastgele InvalidArgumentException: Wikimedia\Rdbms\Platform\SQLPlatform::makeList: unexpected nested array
Backtrace:
from /home/yonlenco/nurpedia.org/includes/libs/rdbms/platform/SQLPlatform.php(281)
#0 /home/yonlenco/nurpedia.org/includes/libs/rdbms/platform/SQLPlatform.php(273): Wikimedia\Rdbms\Platform\SQLPlatform->makeList()
#1 /home/yonlenco/nurpedia.org/includes/libs/rdbms/platform/SQLPlatform.php(724): Wikimedia\Rdbms\Platform\SQLPlatform->makeList()
#2 /home/yonlenco/nurpedia.org/includes/libs/rdbms/database/Database.php(3305): Wikimedia\Rdbms\Platform\SQLPlatform->selectSQLText()
#3 /home/yonlenco/nurpedia.org/includes/libs/rdbms/database/DatabaseMySQL.php(644): Wikimedia\Rdbms\Database->selectSQLText()
#4 /home/yonlenco/nurpedia.org/includes/libs/rdbms/database/Database.php(1337): Wikimedia\Rdbms\DatabaseMySQL->selectSQLText()
#5 /home/yonlenco/nurpedia.org/includes/libs/rdbms/database/Database.php(1354): Wikimedia\Rdbms\Database->select()
#6 /home/yonlenco/nurpedia.org/includes/libs/rdbms/database/DBConnRef.php(127): Wikimedia\Rdbms\Database->selectRow()
#7 /home/yonlenco/nurpedia.org/includes/libs/rdbms/database/DBConnRef.php(369): Wikimedia\Rdbms\DBConnRef->__call()
#8 /home/yonlenco/nurpedia.org/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(792): Wikimedia\Rdbms\DBConnRef->selectRow()
#9 /home/yonlenco/nurpedia.org/includes/specials/SpecialRandomPage.php(222): Wikimedia\Rdbms\SelectQueryBuilder->fetchRow()
#10 /home/yonlenco/nurpedia.org/includes/specials/SpecialRandomPage.php(169): MediaWiki\Specials\SpecialRandomPage->selectRandomPageFromDB()
#11 /home/yonlenco/nurpedia.org/includes/specials/SpecialRandomPage.php(80): MediaWiki\Specials\SpecialRandomPage->getRandomTitle()
#12 /home/yonlenco/nurpedia.org/includes/specialpage/SpecialPage.php(728): MediaWiki\Specials\SpecialRandomPage->execute()
#13 /home/yonlenco/nurpedia.org/includes/specialpage/SpecialPageFactory.php(1724): MediaWiki\SpecialPage\SpecialPage->run()
#14 /home/yonlenco/nurpedia.org/includes/actions/ActionEntryPoint.php(504): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#15 /home/yonlenco/nurpedia.org/includes/actions/ActionEntryPoint.php(146): MediaWiki\Actions\ActionEntryPoint->performRequest()
#16 /home/yonlenco/nurpedia.org/includes/MediaWikiEntryPoint.php(200): MediaWiki\Actions\ActionEntryPoint->execute()
#17 /home/yonlenco/nurpedia.org/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#18 {main}
Your kind help is really appreciated. Thanks. Alyabby (talk) 11:45, 9 June 2025 (UTC)
- The problem is around here in the (SQLPlatform.php file) source code:
- public function makeList( array $a, $mode = self::LIST_COMMA ) {
- $first = true;
- $list = '';
- $keyWarning = null;
- foreach ( $a as $field => $value ) {
- .... (several statements here)
- } elseif ( is_array( $value ) ) {
- throw new InvalidArgumentException( __METHOD__ . ": unexpected nested array" );
- what might have caused to this $value to be an array? Alyabby (talk) 16:47, 13 June 2025 (UTC)
- I further tried to debug and I see that
$mode
is 0, and$value
is: Array (
[0] => 3000
[1] => 3002
)
- here in the context. Alyabby (talk) 16:22, 14 June 2025 (UTC)
- I commented out this and it works quite good:
} /* elseif ( is_array( $value ) ) {
throw new InvalidArgumentException( __METHOD__ . ": unexpected nested array" );
} */
- I don't know yet if this has a side effect Alyabby (talk) 16:24, 14 June 2025 (UTC)
problem of transcluded sections with references defined by name in a {{reflist |refs=
Hi all, In the following example page -> https://commons.wikimedia.org/wiki/Commons:De_minimis , sections of countries are transcluded but the ref définitions were in error for 2.FR 14.IRL 15.Japan and 19.Slovenia transclusions.
One solution I found was to move the ref definitions in the same section where used. This is acceptable in case of uniticy of the ref definition. Ex for Slovenia -> https://commons.wikimedia.org/w/index.php?title=Commons:Copyright_rules_by_territory/Slovenia&diff=prev&oldid=1042377831
But it is not satisfying in other transclusions when the same reference was used in several sections. This leads to copy again the same reference definition in each section where it is used , loosing by this way the benefit of a unique shared déclaration with " {{reflist |refs= ". How to solve that ? Thanks. --Christian 🇫🇷 FR 🚨 (talk) 11:34, 11 June 2025 (UTC)
Spanish decimal separator
I just noticed that the official mw.language library for Spanish 'es' shows the format officially used in Spain. In Spain they use commas as decimal separators, different Spanish-speaking countries use either commas (Spain, Argentina, etc.) or dots (Mexico, Guatemala, etc.). However, the consensus reached in Spanish Wikipedia is to use dots and accept the use of commas in articles written by authors from countries that use commas. WP:NÚMERO
I think that the module should be modified to show dots as decimal separators in accordance with Spanish Wikipedia's guidelines. This affects templates and infoboxes that use modules that get information from Wikidata. Can it be localized in real time depending on the IP? JaimeDes (talk) 04:42, 13 June 2025 (UTC)
Unable to access wiki.openoffice.org after creating a Mediawiki account
I was trying to create and save a book on wiki.openoffice.org and I got the impression, that I needed an "account" to do this. Having created a Mediawiki account via the "Login" link there, I am no longer able to access wiki.openoffice.org. (I get error 403: Forbidden You don't have permission to access this resource).
I am somewhat at a loss now, and I wonder, what I have invoked. I have tried reading the user help and FAQ links without finding any general information about access to *read* established wikis, permissions needed etc.
I would like some help on what do do or set up via the web to be able to access the wiki.openoffice.org.
Thank you. Kirthomaoo (talk) 11:02, 13 June 2025 (UTC)
- They are still using MW 1.35 which is long unsupported and their only wiki related help simply points to this site so it wouldn't be surprising that their registration procedure was lacking maintenance. You might try your luck in their forum.
- Edit: just noticed this. Tactica (talk) 17:05, 13 June 2025 (UTC)
- Thank you very much. That may indeed explain matters. :) Kirthomaoo (talk) 07:33, 14 June 2025 (UTC)
where are the site notice located and translated ?
Hi all. I want to translate in FR banner "Nominate your favorite tools..." currently appearing on MW pages. My question is where is it defined in EN ? and where do I provide the FR text ?
On page -> https://www.mediawiki.org/w/index.php?title=MediaWiki:Sitenotice&action=edit they say to go to translatewiki.net but the link they provide is independant of the message. So how do I search ? Thanks. --Christian 🇫🇷 FR 🚨 (talk) 14:15, 13 June 2025 (UTC)
- Since the banner doesn't include a translate link, it's quite likely that it is intended to remain untranslatable.
- Also, the "site notice" is not the banner. The "From Wikipedia..." message appended to every Wikipedia article is an example of a site notice thay may be edited and translated. Tactica (talk) 16:43, 13 June 2025 (UTC)
- so again, where do we find the the site notice declarations and the translations. More of that it would allow to write a request for translation and reach to a larger community. Can someone answer effectively to the topic ? Thanks. --Christian 🇫🇷 FR 🚨 (talk) 07:14, 14 June 2025 (UTC)
I get an error.
You can see the error at bmtbus.infinityfreeapp.com/bmtwiki/index.php?title=Template:Uw-vandalism3&veaction=edit. 23.162.200.138 06:09, 16 June 2025 (UTC)
- Please see Manual:How to debug how to provide a stacktrace. Malyacko (talk) 06:49, 18 June 2025 (UTC)
Current events in uzwikiquote
Hello. Please help me write a link to the 'Current Events' page in Uzbek Wikiquote to the home page. Umarxon III (talk) 07:11, 16 June 2025 (UTC).
- See meta:Tech for Wikimedia wikis. Over there, please link to your current approach and elaborate what exactly you want to achieve. Maybe https://meta.wikimedia.org/wiki/Small_wiki_toolkits/Starter_kit/Main_page_customization might be useful, maybe not. Malyacko (talk) 06:48, 18 June 2025 (UTC)
Visual editor breaking category tags on 1.43.1
Just updated to 1.43.1 and when editing with the VisualEditor, category tags like "Category: Example" appear as "index.php?title=Category:Example" on the final page. I can edit the page again using source and fix the category tags, but it will break again if someone uses visual again. Any solutions to this? PHP version is 8.3.20. Berimas (talk) 16:01, 16 June 2025 (UTC)
How can I automate creation of BotPasswords?
I’m managing a MediaWiki instance and need to automate the generation of BotPasswords (from Special:BotPasswords).
Is there a way to achieve this programmatically (e.g., through an API request or another automation method)? Or is manual interaction the only available option?
If anyone has successfully implemented this, I’d appreciate any insights or guidance.
Thanks in advance for your help! 165.51.187.71 13:04, 18 June 2025 (UTC)
- Solved, It could be achieved using Mediawiki maintenance script createBotPassword.php. 165.51.187.71 13:45, 18 June 2025 (UTC)
Error: Class "ResourceLoaderSkinModule" not found
Having upgraded Ubuntu from 24.10 to 25.04 my mediawiki stopped to work. I have tried to upgrade to mediawiki 1.43.1 but it still does not work. I get the following result
MediaWiki internal error ... Error: Class "ResourceLoaderSkinModule" not found
I can however not find any reference to the not found class.
How can I solve this problem?
The wiki is internal and can not be reached from outside my LAN. Tommy pollak (talk) 15:47, 18 June 2025 (UTC)
run vs run.php
We don't seem to have a standard way to refer to run.php: it's often php run.php
, but sometimes run
or php run
(note that I'm leaving out ./maintenance/
for clarity). Even the manual page, which is called run.php
, then refers to just run
, and there are a bunch of other places that do the same.
I've assumed we tell people to use php run.php
because it's guaranteed to work on all systems, and then we leave it to people to find out for themselves that they can use run
(if they're on a system with /usr/bin/env
). But how many systems don't support that? It's certainly neater to not have to type the 'php's.
Anyway, I guess we should standardise the documentation to use php run.php
. Sam Wilson 03:56, 19 June 2025 (UTC)
- I suggested just that in the past and was told to use AWB since I don't have the required rights for a mass replace using ReplaceText (which isn't even installed here anyway), but never got around to it because it was too much hassle. Still today I presume there is plenty of documentation not even saying that running
php foo.php
directly is deprecated. Tactica (talk) 04:34, 19 June 2025 (UTC)- @Tactica: I guess I'll just update as I find things! But what do you think about run vs run.php? I sort of seems like it'd be nicer to recommend the former, but that's not a good idea is it? Sam Wilson 05:18, 19 June 2025 (UTC)
open_basedir: restriction in effect...
PollenWiki: https://pollen.tstebler.ch/MediaWiki/index.php
I upgraded my MediaWiki from 1.39 to 1.43. After running .../mw-config/index.php the Wiki doesn't work correcty. As recommended I changed the name of the .htaccess-file in the /images directory. PHP is set to 8.1.32. But I always get a lot of error messages like this:
Warning: is_readable(): open_basedir restriction in effect. File(/gitinfo/info-extensions-HitCounters.json) is not within the allowed path(s): (/srv/www/vhosts/tstebler.ch/subdomains/pollen/httpdocs/:/tmp/) in /srv/www/vhosts/tstebler.ch/subdomains/pollen/httpdocs/MediaWiki/includes/utils/GitInfo.php on line 163
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/tstebler.ch/subdomains/pollen/httpdocs/MediaWiki/includes/utils/GitInfo.php:163) in /srv/www/vhosts/tstebler.ch/subdomains/pollen/httpdocs/MediaWiki/includes/Request/WebResponse.php on line 80
Warning: is_readable(): open_basedir restriction in effect. File(/gitinfo/info-extensions-Cite.json) is not within the allowed path(s): (/srv/www/vhosts/tstebler.ch/subdomains/pollen/httpdocs/:/tmp/) in /srv/www/vhosts/tstebler.ch/subdomains/pollen/httpdocs/MediaWiki/includes/utils/GitInfo.php on line 163
I really do not know what I have to do. I have no SSH access to my Web.
Could somebody check an help me? Thanks in advance.
Thomas