Project:Support desk

Jump to: navigation, search

About this board

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

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Wikimedia Developer Support, Q&A, mwusers (unofficial forum) etc.

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".
Squeak24 (talkcontribs)


I am running MediaWiki on a Intranet, unfortunately I am unable to get a mailserver up and running due to my organizational policies.

Hence when a user attempts to reset there password when they have forgotten it they don't get an email and I as the admin have to go into the backend and reset the password.

Once I have the MediaWiki up and running it won't be feasible for me to do this, we will have a possible 100k+ users. Is there a way that a password can be reset using personal questions such as your first pets name or favorite sports team.

I have looked at extensions and can't find anything, the only thing I have found is where an admin can reset a password from the Wiki end rather than Terminal/PHPMyAdmin.

I'm not sure if I have the knowledge to write one myself.

Any help would be appreciated

Reply to "Password reset without emal"

Navbox error, hlist shown vertically as bullets and other errors

Robertinventor (talkcontribs)

Hi there, thanks for your help, we've installed Mediawiki and copied over many templates from Wikipedia. Much of it is working fine but there are a few remaining niggling errors. Wondered if you can help. Thanks!

I've got an example of the error here: /error_example

This is the same code on Wikipedia to show how it should be displayed:

I copied the Navbox template over from Wikipedia using Special:Export, with "Include Templates " checked and then imported into the new wiki with Special:Import.

Any idea how to fix it?

Parser extension flags missing

As you'll see from the error page it also is missing some Parser extension flags including "indicator" - do you know why that is and what we can do?

Instant commons images not shown

Finally we also have enabled InstantCommons but the image links are shown as red text. I'm guessing this is a permissions problem connecting to the network as noted there. Checked to see if we have SELinux installed as I saw that mentioned as a problem that could lead to this issue. But not sure where to go in CPanel or how else to check this

(As you will see from the error page, We also have a FlaggedRevs error but this is in a template we don't need at present so there is no urgency about this, seems likely to be a missing extension and it looks like it may be tricky to install so we can just forget it for now.)

MediaWiki 1.24.1
PHP 5.6.33
MySQL 5.6.36-82.1
Lua 5.1.5

AhmadF.Cheema (talkcontribs)

The "indicator" tag was included in MediaWiki 1.25. You will need to upgrade MediaWiki to make it work for your site.

Robertinventor (talkcontribs)

Oh okay great, thanks! That's a simple one then. We do plan to upgrade but it's not our top priority. If this is the only reason to upgrade, if we only need that tag - well it seems to have rather small repercussions for our wiki so far - small enough to work around them - so then we will probably leave it to a few months down the line.

So - I count that as the Parser extension flags missing question now answered :).

Anything about the other two anyone? They are more important for us and if either of those require the wiki to be upgraded we have to do it right away and will make it top priority.

AhmadF.Cheema (talkcontribs)

Continuing with an old version that has known security vulnerabilities is risky, an upgrade is recommended as soon as possible.

Also note that a lot of Wikipedia templates make use of code such as the "indicator" tag, therefore you will not be able to just import and use such templates. You will need to edit the fairly complicated templates and modules code in order to make those work for an out-of-date Wiki.

For horizontal lists in Navboxes, you will need to include the "hlist" code from w:MediaWiki:Common.css into your Wiki.

For SELinux, the most convenient route would be to contact your hosting provider's support.

Reply to "Navbox error, hlist shown vertically as bullets and other errors"

Mediawiki mail settings for password reset and registration

Bekircem (talkcontribs)

I want to setup mail settings on Mediawiki. I am used Sparkpost for mail server. My Mediawiki system installed on Digital Ocean with Serverpilot. There my mail settings on Localsettings.php file.

$wgEnableEmail = True;

$wgEnableUserEmail = True; # UPO

$wgEmailAuthentication = True;

$wgSMTP = array(

'host'     => "", // could also be an IP address. Where the SMTP server is located

'IDHost'   => "",      // Generally this will be the domain name of your website (aka

'port'     => 587,                 // Port to use when connecting to the SMTP server

'auth'     => true,               // Should we use SMTP authentication (true or false)

'username' => "SMTP_Injection",     // Username to use for SMTP authentication (if being used)

'password' => "KEY"       // Password to use for SMTP authentication (if being used)


It does not work that way. When i create account or password reset request, Mediawiki gives me an error:

[9d7926ea] /index.php?title=%C3%96zel:Kullan%C4%B1c%C4%B1OturumuA%C3%A7ma&action=submitlogin&type=signup&returnto=Ana+Sayfa MWException from line 268 of includes/mail/UserMailer.php: PEAR mail package is not installed


#0 includes/User.php(4208): UserMailer::send(array, MailAddress, string, string, NULL)

#1 includes/User.php(4184): User->sendMail(string, string)

#2 includes/specials/SpecialUserlogin.php(409): User->sendConfirmationMail()

#3 includes/specials/SpecialUserlogin.php(314): LoginForm->addNewAccount()

#4 includes/specialpage/SpecialPage.php(384): LoginForm->execute(NULL)

#5 includes/specialpage/SpecialPageFactory.php(582): SpecialPage->run(NULL)

#6 includes/MediaWiki.php(267): SpecialPageFactory::executePath(Title, RequestContext)

#7 includes/MediaWiki.php(566): MediaWiki->performRequest()

#8 includes/MediaWiki.php(414): MediaWiki->main()

#9 index.php(41): MediaWiki->run()

#10 {main}

So, I check PEAR version on the terminal with that command: pear7.0-sp version


PEAR Version: 1.10.5

PHP Version: 7.0.27

Zend Engine Version: 3.0.0

Running on: Linux 3.13.0-79-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016 x86_64

Pear installed on my server. This problem about include path or PEAR mail package installation? What is your suggestion?

I've tried include path settings but it gives me error too. If the problem is related to this, how i can set that correctly? Thank you so much.

Malyacko (talkcontribs)





Bekircem (talkcontribs)

I've installed Pear Mail package. After that, when i request for password reset it gives me that error:

Fatal error: Uncaught TypeError: Argument 1 passed to MWExceptionHandler::handleException() must be an instance of Exception, instance of Error given in includes/exception/MWExceptionHandler.php:153 Stack trace: #0 [internal function]: MWExceptionHandler::handleException(Object(Error)) #1 {main} thrown in includes/exception/MWExceptionHandler.php on line 153

I think Pear problem fixed but there is another problem now... :(

Malyacko (talkcontribs)

Please provide a full stacktrace: Manual:How to debug

Bekircem (talkcontribs)

I added Localsettings.php this lines:

$wgShowExceptionDetails = true;;

$wgDebugToolbar = true;

$wgShowDebug = true;

$wgDevelopmentWarnings = true;

It gives me error, i disabled Description2 extension for viewing wiki correctly.

Notice: Deprecated PHP entry point used for Description2 extension. Please use wfLoadExtension instead, see for more details. [Called from require_once in /extensions/Description2/Description2.php at line 20] in /includes/debug/MWDebug.php on line 300

Warning: Cannot modify header information - headers already sent by (output started at /includes/debug/MWDebug.php:300) in /includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /includes/debug/MWDebug.php:300) in /includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /includes/debug/MWDebug.php:300) in /includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /includes/debug/MWDebug.php:300) in /includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /includes/debug/MWDebug.php:300) in /includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /includes/debug/MWDebug.php:300) in /includes/WebResponse.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /includes/debug/MWDebug.php:300) in /includes/WebResponse.php on line 37

It's error when i go special pages.

Deprecated: Use of SpecialRecentChangesQuery hook (used in FlaggedRevsUIHooks::modifyRecentChangesQuery) was deprecated in MediaWiki 1.23. [Called from SpecialRecentChanges::runMainQueryHook in specials/SpecialRecentchanges.php at line 262] in includes/debug/MWDebug.php on line 300

When i added that lines to .htaccess file wiki gives me 500 Internal Server Error:

php_value error_reporting -1

php_flag display_errors On

When i request for password reset it gives me same error:

Fatal error: Uncaught TypeError: Argument 1 passed to MWExceptionHandler::handleException() must be an instance of Exception, instance of Error given in exception/MWExceptionHandler.php:153 Stack trace: #0 [internal function]: MWExceptionHandler::handleException(Object(Error)) #1 {main} thrown in includes/exception/MWExceptionHandler.php on line 153

Malyacko (talkcontribs)

Except for the last one ("Fatal error") and a HTTP 500, none of the messages that you posted above are errors. There is no error when you go to special pages, but a warning that you or someone should update the code of "Description2".

We still need a full stacktrace of the fatal error, via $wgShowExceptionDetails as described on Manual:How to debug.

Bekircem (talkcontribs)

We need a full stacktrace for PHP errors or SQL errors? $wgShowExceptionDetails is already has true value in localsettings.php file. I also set display_startup_errors on with index.php. Here is my locatsettings file changes about that topic:


$wgShowExceptionDetails = true;;

$wgDebugToolbar = true;

$wgShowDebug = true;

$wgDevelopmentWarnings = true;


$wgShowSQLErrors = true;

$wgDebugDumpSql  = true;

error_reporting( -1 );

ini_set( 'display_errors', 1 );

I did everything as described on PHP errors and SQL errors part of the page. There is no error on the viki web page. Just i see very long debug-data on the bottom of the page. Must i look some error log or something like that?

Malyacko (talkcontribs)

You have a typo at the very end of your line:

$wgShowExceptionDetails = true;;

Bekircem (talkcontribs)

I fixed typo problem. And there no error seems yet. Nothing has changed.

Reply to "Mediawiki mail settings for password reset and registration"
Parsweb (talkcontribs)


how can I setup wiki like wikipedia in two language

and create first page (language page ) and change address to like wikipedia

I means now my address as default ( is )

Reply to "Multilang wiki site like wikipedia"
Huwmanbeing (talkcontribs)

I'm setting up a Mediawiki installation and somehow got into a state where my password is not accepted. Since I hadn't yet gotten email configured, I tried to reset my password using the instructions at Manual:ChangePassword.php, but encountered this error:

PasswordError from line 62 of /var/www/mywiki/public_html/maintenance/changePassword.php: * The supplied credentials cannot be changed, as nothing would use them.
* The authentication data change was not handled. Maybe no provider was configured?

#0 /var/www/mywiki/public_html/maintenance/doMaintenance.php(111): ChangePassword->execute()
#1 /var/www/mywiki/public_html/maintenance/changePassword.php(73): require_once(string)
#2 {main}

Does anyone know how to go about diagnosing this, or what the cause might be? Any advice is greatly appreciated since at the moment I'm unable to administer my wiki. Thanks very much!

MediaWiki=1.29.1, PHP=7.0.22, MySQL=5.7.20.

Huwmanbeing (talkcontribs)

Just pinging for a response. Any thoughts? Huwmanbeing (talk) 20:52, 18 January 2018 (UTC)

Osnard (talkcontribs)

Do you have an authentication provider enabled? Do you use any authentication extensions? OAuth?

Huwmanbeing (talkcontribs)

No, I haven't installed anything authentication-related. I just upgraded from 1.29.1 to 1.30.0 to see if that might address the problem, but unfortunately no luck. I'm baffled about how to diagnose and solve this. Huwmanbeing (talk) 13:52, 21 January 2018 (UTC)

TheDJ (talkcontribs)

1: Reset your localsettings.php to as basic as you can 2: Make sure you ran maintainance/update.php 3: Follow Manual:How_to_debug

Huwmanbeing (talkcontribs)

I've run update.php and temporarily pared out as much as I can from LocalSettings. I also set up a $wgDebugLogFile to get more detail, and attempted to make the change via both changePassword.php and the Special:PasswordReset page, but it doesn't seem to shed much light. There's one relevant line which notes...

[authentication] User1 attempted password reset of User2 but failed

...but otherwise gives no indication of exactly why it failed, and concludes with "the request ended normally". Huwmanbeing (talk) 15:01, 22 January 2018 (UTC)

Reply to "ChangePassword.php error"

[RESOLVED] Problem with Wiki media in LAN - shows only text mode

Nippess (talkcontribs)


I have installed the latest version of media wiki on my workstation (Windows 7 system). Everything works fine when using it. If I am trying to access the localhost mediawiki site from another workstation within the LAN system it shows the start page of mediawiki but only the text mode (no images). Apart of it everything works fine. If have got no idea how to look for a solution. Do I have to give other users within the LAN special access rights to my xammp folder with the media wiki intallation? Looking forward to some answers.

Dieter (talkcontribs)

I am having the same issue ... running the latest Mediawiki build, 5.2.38 for PHP and 2.2.5 for Apache. On the station where it is loaded, it looks fantastic, on a workstation that I am testing it on, it is only displaying in text mode. Any suggestions? (talkcontribs)

Sorry, PHP is 5.3.28

N00bWikiGuy (talkcontribs)

I found it ...

In your Apache httpd.conf file, change the wgServerName from localhost to the IP address of the machine running the WIKI if it isn't in DNS.

Worked like a champ. (talkcontribs)

It didn’t work for me i am using ubuntu and php7.0 there a way to disable templete editing show it will show only clean text for MediaWiki 1.30 .? (talkcontribs)

so it will show only clean text for MediaWiki 1.30 .?

Reply to "[RESOLVED] Problem with Wiki media in LAN - shows only text mode"

The password reset was not handled. Maybe no provider was configured?

Adrianevs (talkcontribs)


Reset password feature do not work on my wiki. I get this message

The password reset was not handled. Maybe no provider was configured?

Please let me know how to fix it ?

Reception123 (talkcontribs)

Did you configure Manual:$wgPasswordSender (and Manual:$wgSMTP) correctly?

Bawolff (talkcontribs)

Are you using a custom auth extension or have manually set $wgAuthManagerConfig or $wgAuth

(Note, contrary to what Reception123 said, failing to set $wgPasswordSender or $wgSMTP does not cause this error).

Huwmanbeing (talkcontribs)

I'm encountering this as well. The SMTP settings are correct (and verified using, but despite everything being configured in LocalSettings the Special:PasswordReset page still gives the error, "The password reset was not handled. Maybe no provider was configured?" No custom auth extensions or other customizations are in place, and the installation is up-to-date at 1.30.0. Any thoughts on what might be happening? Thanks! Huwmanbeing (talk) 14:08, 22 January 2018 (UTC)

Reply to "The password reset was not handled. Maybe no provider was configured?"

Infobox missing line at bottom of box

Summary by AhmadF.Cheema

Styling issue.

GreenBryn (talkcontribs)

I'm starting a new wiki, and the infobox on the right side is missing the bottom of the box - not sure what I'm doing wrong?

For example:

The template that I'm using shows the bottom line fine:

MediaWiki 1.26.3
PHP 7.0.24 (cgi-fcgi)
MySQL 5.6.34-log
AhmadF.Cheema (talkcontribs)

The bottom line is there, but some other element is probably coming above it making it practically invisible.

A quick fix could be to remove "padding:0;" OR use a value like "padding:1px;" from your template.

GreenBryn (talkcontribs)

That fixed it - thank you so much!!!

Any user cannot change password using Preferences

GreenGhost (talkcontribs)
MediaWiki 1.27.4
PHP 7.0.27-0+deb9u1 (apache2handler)
MariaDB 10.1.26-MariaDB-0+deb9u1

User log in, press Preferences, then Change password. And instead Change password form open url <server>/w/index.php?title=Special:ChangeCredentials/MediaWiki\Auth\PasswordAuthenticationRequest&returnto=Special%3APreferences with authorization request.

Ciencia Al Poder (talkcontribs)

What extensions do you have installed? Looks like you may have an auth plugin or similar

GreenGhost (talkcontribs)

Installed extensions:








Semantic MediaWiki

Already tried to disable all extensions - nothing changed.

Ciencia Al Poder (talkcontribs)

Ugh, well, I though it was an error, but no, it's normal behavior. To change your password you should first enter your current password. What's the problem with that?

GreenGhost (talkcontribs)

It doesn't look like normal behavior. It doesn't simple require password. Text on page is:

"Login required

Please log in to view other pages."

OK, press log in. It ask not only password, username field is also empty. Fill both fields.Fail: "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again."

AhmadF.Cheema (talkcontribs)

For "session hijacking" error in MediaWiki 1.27, see Topic:T7irqyk4rhfy3ohk.

GreenGhost (talkcontribs)

This error for first log in I already solved a long time ago - now it work fine. But now - on try to change password - it appear again. Disabling all cache also doesn't help.

Reply to "Any user cannot change password using Preferences" (talkcontribs)

Once user edit the text, That need to show to everybody but with grey background color, after it get approved from our administrator, it will be like ordinary text.. How to do that ?

Reply to "Edited Text Background Color Change"