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, Q&A 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". (talkcontribs)

Hi. Where should I add the information of shared database? Like $wgSharedDB, $wgSharedPrefix and others. Thank you.

Samwilson (talkcontribs)

In LocalSettings.php, along with your other configuration.

Reply to "Manual:Shared database"

Installing 1.29.1 on raspberry PI, can't connect to database

Windy54 (talkcontribs)


I am trying to installing mediawiki 1.29.1 on a raspberry PI using Raspbian stretch by following these instructions

Manual:Running MediaWiki on Debian or Ubuntu

I get to this point

Connect to database

and keep getting the error

Cannot access the database: Access denied for user 'root'@'localhost' (

Check the host, username and password and try again.

I have had no errors up to this point, I have tried entering various values for

database host, name, prefix, username and password.

I am assuming that database name and prefix do not matter and the problem is host, username and password.

If I have logged into my PI is okay for localhost?

Is username root okay?

I am convinced I am entering the password I created earlier on.

I have seen one similar question that was answered 3 years ago and the solution seemed to relate to not having a LocalSettins.php file

In the installation instructions I have not been prompted to create one yet, I believe that later on I should be prompted to download one.

After all of this explanation my question is, " do I need to create a LocalSettings.php file now?



2003:CC:ABC5:AC00:71D7:FD1D:C6AD:7F83 (talkcontribs)

Hi Steve!

In your error message, the IP address looks strange. For localhost it should be

If you have MySQL on your system, you can use the mysql executable to try logging in from there. That has the advantage that you do not have MediaWiki in between and you can just check that you can access the database correctly. Once you got that working, you can just use exactly the same data for MediaWiki.

Windy54 (talkcontribs)

I think that is going to help, I cant login as root so I am going to start again and make sure the password is correct. Also, when I try and complete the initialisation through chrome it might be trying to log me in as user pi which has not been added to the database.

I will investigate further and post back when I have sorted it.

thanks for the response (talkcontribs)

After following the previous advice I came to the conclusion it is something to so with access rights and have got a vague memory of something changing in Raspbian Stretch.

I reverted to Jessie and have managed to install mediawiki, at some point I will investigate further and try it on JESSIE

This comment was hidden by 2003:CC:ABE4:6400:5839:D3A7:6FBB:E85F (history)
Reply to "Installing 1.29.1 on raspberry PI, can't connect to database"

Fatal exception of type Wikimedia\Rdbms\DBQueryError after update upto 1.29.2

Ektip (talkcontribs)

Update mediawiki from 1.21 to 1.29.2 using web-interface.

Now i have error - [05575cfedebae9daa0d54bb3] 2017-11-18 21:45:24: Fatal exception of type Wikimedia\Rdbms\DBQueryError

Please advice.

星耀晨曦 (talkcontribs)

You should open debug options for more detailed error messages

$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
$wgShowSQLErrors = true;
Ektip (talkcontribs)

Here is:

[2cf16b067a21c4921aa451b1] / Wikimedia\Rdbms\DBQueryError from line 1075 of /home/httpd/vhosts/ A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? 
Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1 
Function: LCStoreDB::get
Error: 1146 Table 'a201591_wikiek.l10n_cache' doesn't exist (

#0 /home/httpd/vhosts/ Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 /home/httpd/vhosts/ Wikimedia\Rdbms\Database->query(string, string)
#2 /home/httpd/vhosts/ Wikimedia\Rdbms\Database->select(string, string, array, string, array)
#3 /home/httpd/vhosts/ Wikimedia\Rdbms\Database->selectField(string, string, array, string)
#4 /home/httpd/vhosts/ LCStoreDB->get(string, string)
#5 /home/httpd/vhosts/ LocalisationCache->isExpired(string)
#6 /home/httpd/vhosts/ LocalisationCache->initLanguage(string)
#7 /home/httpd/vhosts/ LocalisationCache->loadSubitem(string, string, string)
#8 /home/httpd/vhosts/ LocalisationCache->getSubitem(string, string, string)
#9 /home/httpd/vhosts/ Language->getMessage(string)
#10 /home/httpd/vhosts/ MessageCache->getMessageForLang(Language, string, boolean, array)
#11 /home/httpd/vhosts/ MessageCache->getMessageFromFallbackChain(Language, string, boolean)
#12 /home/httpd/vhosts/ MessageCache->get(string, boolean, Language)
#13 /home/httpd/vhosts/ Message->fetchMessage()
#14 /home/httpd/vhosts/ Message->toString(string)
#15 /home/httpd/vhosts/ Message->text()
#16 /home/httpd/vhosts/ MalformedTitleException->__construct(string, string)
#17 /home/httpd/vhosts/ MediaWikiTitleCodec->splitTitleString(string, integer)
#18 /home/httpd/vhosts/ Title->secureAndSplit()
#19 /home/httpd/vhosts/ Title::newFromURL(NULL)
#20 /home/httpd/vhosts/ MediaWiki->parseTitle()
#21 /home/httpd/vhosts/ MediaWiki->getTitle()
#22 /home/httpd/vhosts/ MediaWiki->main()
#23 /home/httpd/vhosts/ MediaWiki->run()
#24 {main}
Ektip (talkcontribs)


AhmadF.Cheema (talkcontribs)

You will need to run Update.php.

2003:CC:ABE4:6400:19F2:D209:921:4DC9 (talkcontribs)

The database table l10n_cache is missing n your database. This is the problem.

According to Manual:Database_layout this table should already have been there, when you used MediaWiki 1.21. You might have to add this table manually by looking into the tables.sql file:

Reply to "Fatal exception of type Wikimedia\Rdbms\DBQueryError after update upto 1.29.2"
Innosflew (talkcontribs)

How can I install HHVM and then make my Mediawiki use it?

AKlapper (WMF) (talkcontribs)

Does HHVM/Vagrant help?

Zoranzoki21 (talkcontribs)

No. User asked for without Vagrant

Zoranzoki21 (talkcontribs)

I too have this question.. But without Vagrant.

Bawolff (talkcontribs)

You install hhvm in the normal way, setup web server to use fastCGI pointed to hhvm. The hhvm site should have some instructions for this but it will vary significantly by os and webserver. In many OS's youprobably have to compile hhvm yourself. I think there are PPA archives you can use for debian/ubuntu.

If your not strong on the sysadmin side, i would suggest just using php7 - performance should be roughly on par, its much easier to install, and mediawiki is planning to drop support for hhvm in about a year anyway

Zoranzoki21 (talkcontribs)

I installed zend per reply on IRC and ok is.

Reply to "How to install and run HHVM on my wiki?"
Md. Al Amin Munnaa (talkcontribs)

how to change my name in English

Tropicalkitty (talkcontribs)

Wikimedia projects: Special:GlobalRenameRequest

Reply to "how to change my name in english"
Stefahn (talkcontribs)

I currently update my wiki's extension. I am on MediaWiki 1.27.4.

Almost all of the snapshots I download are below the current version of that extension.

For example the current version of Extension:MyVariables is 3.4.0. The snapshot for MediaWiki 1.27 is 3.3.0. Is this meant to be like this?

Jörgi123 (talkcontribs)

Hi Stefan!

The version displayed on the extension page should always be the newest version available. In case of MyVariables, this is 3.4.0. For the older 1.27 branch however, the latest version in fact is 3.3.0, see

You might try the newer version 3.4.0, but note that it can contain changes, which are not compatible with MediaWiki 1.27. In fact, for 1.27, you should use the version for 1.27, which in case of this extension is version 3.3.0.

Jörgi123 (talkcontribs)

I just checked the changes in this extension and in fact you should be able to use the version for MediaWiki 1.30 and even the version from master. There have not been any relevant changes concerning MediaWiki 1.27 as far as I can tell.

Stefahn (talkcontribs)

Thanks for your helpful reply.

It would be great if there was an automatic check that tells us if the newest version also runs with an older MW version or if it doesn't...

Reply to "Extension snapshots for 1.27 outdated?"
Star Warden (talkcontribs)

Hi. When trying to access this page on the wiki (, I get this error: Fatal error: Call to a member function getLocalURL() on a non-object in /srv/dml-wiki/includes/skins/Skin.php on line 1051

I went to that line in that php and I found this: return $title->getLocalURL( $urlaction );

So far, it seems it's the only page acting up. Could anyone give me a solution, please? (talkcontribs)

You are using MediaWiki 1.27. I have tested this in your wiki and this is happening with Vector, but also with Monobook, but only on that one page. Other pages display correctly.

Your problem is that for some reason, $title is not a title object at that point. From reading the code I think that this part of the code only is used to create a link to a special page.

In your case, SpecialPage::getSafeTitleFor( $name ); does not return a title object.

A complete backtrace would be great.
Star Warden (talkcontribs)

All right. And how do I give a complete backtrace?

Ciencia Al Poder (talkcontribs)

Star Warden (talkcontribs)

Hey. We found the error without having to backtrace. It's the apostrophe in the title that was causing the issue. As you can see, all events that have the apostrophe return the same error:

Aside from effectively removing it from the title, is there any other better sign with which we could replace it and not resort to sticking the possessive to the word? (talkcontribs)

Although not recommended to be used, apostrophes are allowed in URLs and MediaWiki also can cope with them, e.g. en:Lady's Magazine.

An idea might be to check, why this is not working on your server and to fix the reason - or to use different page titles without apostrophe.

Star Warden (talkcontribs)

To be completely honest, I am not a programmer, I just try to follow the instructions given. With that in mind, how do I find why it's not working? And I've tried using other signs, like the prime or a different-looking comma, but both give the same error....

Ciencia Al Poder (talkcontribs)

Getting a backtrace would be helpful to see what's calling that method, possibly passing an invalid parameter. If that's hard, try disabling all extension and see if the problem still happens.

Star Warden (talkcontribs)

Hey. I didn't backtrace, but I disabled extensions, as you suggested me to, and I found that Extension:Contributors is the culprit. Why though?

Ciencia Al Poder (talkcontribs)

Extension talk:Contributors has other people complaining about that, but I don't see a bug about that on phabricator... Looks like nobody cares enough to report it so devs are aware of the bug.

Star Warden (talkcontribs)

I can open up a bug report, but I am not exactly sure how to formulate it to be as precise as possible. I mean, I could give the error that I am getting, but that points to folders on my wiki's server, so it would be different from what others reported.

AKlapper (WMF) (talkcontribs)

Star Warden (talkcontribs)

Yes, I am aware of HOW to report it, but I am not sure how to formulate the error itself so as to be as precise as possible.

Ciencia Al Poder (talkcontribs)

Just try it. If devs need further information they'll ask in the task.

Star Warden (talkcontribs)

Done ( Hope it's clear enough.

Stefahn (talkcontribs)

Ran into the same (unsolved) issue and added a comment to the bug report.

Reply to "getLocalURL error"
Summary by İncelemeelemani

Also; you can use codes. Over there CSS code add MediaWiki:Common.css and JS code add MediaWiki:Common.js. Then, Exmaple button code your own skins add <skins>.skin.php .

Example: , and look right click source code.

WhiteTigerItaly (talkcontribs)

Hi, I need a button/link to skip to the top of the page when this is very long. I cannot use the Anchor because In the first row of the page there is not a Section.

Thanks in advance for the advices


Leucosticte (talkcontribs)

Use #top as the anchor. E.g., Help:Links#top. Leucosticte (talk) 07:11, 25 September 2012 (UTC)

WhiteTigerItaly (talkcontribs)

Many thanks.
I looked for this information, but I have not seen this help page. (talkcontribs)
<span id="BackToTop"></span>
<div class="noprint" style="background-color:#FAFAFA; position:fixed; bottom:2%; left:0.25%; padding:0; margin:0;">
[[#BackToTop|Back to the Top]]

This will put a floating "Back to the Top" link at the bottom left of the page.

Fabartus (talkcontribs)

I did a little code swiping from this technique and have some artifacts that I could use an expert fix or opinion on what is causing them. My version morphed that into a button based part on code I adapted to prod new users in tutorials. Merged that with the above, and for some reason am seeing a long tale 1-2px bar just before and just after the virtual 'mouse button' wrapping the above code (more or less). The template is on a lot of pages, so be careful! See b:Template:TRS-hdrbox, and if you want a sandbox, b:template:TRS-X serves that function for us. I'd appreciate it. I'm no good at peeking at the output code for the generated page, and have no time to tackle learning CSS and scripting. Best regards,

This post was posted by Fabartus, but signed as FrankB.

Fabartus (talkcontribs)

Had my son look at this is firebug and he resolved the matter for me. I'd had an initial border statement in the wrapper showing through---just like as if I'd told the computer to do that. Go figure! LOL.

For others liking this technique, the original code above did not find the page top. A minor misrecollection, I'm sure. The necessary syntax is:

[[#top|...]] - for the default anchor on the page

My solution was a button, with some reordering of the elements:

<div id="BackToTop"  class="noprint" style="background-color:#DDEFDD; position:fixed;
 bottom:32px; left:2%; z-index:9999; padding:0; margin:0;"><span style="color:blue;
 font-size:8pt; font-face:verdana,sans-serif;  border:0.2em outset #ceebf7;
 padding:0.1em; font-weight:bolder; -moz-border-radius:8px; ">
[[#top| Back to the Top ]]</span></div>

The position is somewhat arbitrary, but we'd raised it above the bottom page so when it floats over links the can be seen to float through and beneath; this also doesn't cover the mediawiki logo at the bottom page on the Wikibooks. If you want to see it in action, see any Trainz Wikibook page that's got the header nav template. Enjoy!

This post was posted by Fabartus, but signed as FrankB.

Chrisdevelop (talkcontribs)

Thanks, that works!

Summary by AhmadF.Cheema

ul > li {padding-left: 50px;}

YYwiki (talkcontribs)

How can I control the spacing between bullets in a bullet list - making it smaller or bigger?

AhmadF.Cheema (talkcontribs)

Use the following in your Mediawiki:Common.css if you want to change the spacing for all bullet points,

ul > li {
	padding-left: 50px;

To change only for some bullet points, include the following in your Mediawiki:Common.css,

.newbp ul > li {
	padding-left: 50px;

and then when needed, include the bullet points inside a div element with newbp class. For example,

<div class="newbp">
* foo
* bar

If by "spacing between bullets", you meant the vertical spacing between rows of list items, use the above techniques with the .CSS code mentioned at Spacing between bullet list rows and How do I set vertical space between list items?.

What approach to use for Active Directory login?

PSIDWiki (talkcontribs)

I have been going around in circles with trying to get this to work. I had installed 1.29.1 then I read that active directory works better with 1.26.3. Extension:LDAP Authentication

So I removed 1.29.1 and downloaded and setup 1.26.3. So I go to setup the ldap options and I see that I have to use AuthPlugin so I go to this site AuthPlugin where it says it is deprecated and for backwards compatibility up to version 1.27 and to use Manual:SessionManager and AuthManager.

What is the recommended approach to use where I can have users login with their active directory credentials and I can add them to a group to just be able to edit?

Thank you

MarkAHershberger (talkcontribs)

You're right that the situation is confusing right now.

The version for 1.29.x may work depending on your needs or not. Try it and then ask for help here if you run into problems.

If it fails and you need this immediately, go with 1.26.x and Extension:LDAP Authentication since that will most likely work.

Finally, we are working on a replacement for the LDAP authentication. You can follow our progress: LDAP hub.

PSIDWiki (talkcontribs)

Hi Mark,

Thank you for the reply. I'm trying to use 1.26.x since I have to have it completed by today.

I'm running this on

MediaWiki 1.26.3

IIS 8.5

php 7.0 (I think this needs to change since I'm using 1.26.3)

mySQL 5.5.57

Windows Server 2012 R2

Here is what I have in LocalSettings.php for connecting to Active Directory:

require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" );

$wgAuth = new LdapAuthenticationPlugin();

$wgLDAPDomainNames = array( "TMP" );

$wgLDAPServerNames = array( "TMP" => "" );

$wgLDAPSearchStrings = array( "TMP" => "TMP\\USER-NAME" );

$wgLDAPEncryptionType = array( "TMP" => "tls" );

$wgLDAPUseLocal = false;

$wgMinimalPasswordLength = 1;

$wgLDAPBaseDNs = array( "TMP" => "dc=tmp01,dc=ab,dc=cde,dc=fghi,dc=edu" );

$wgLDAPSearchAttributes = array( "TMP" => "sAMAccountName" );

$wgLDAPRetrievePrefs = array( "TMP" => "true" );

$wgLDAPPreferences = array('TMP' => array( 'email' => 'mail','realname' => 'displayname'));

$wgLDAPDebug = 3; //for debugging LDAP

$wgShowExceptionDetails = true; //for debugging MediaWiki

$wgDebugLogFile = "C:\inetpub\wwwroot\NewWiki\w\debug.log" ;

$wgDebugLogGroups["ldap"] = "C:\inetpub\wwwroot\NewWiki\w\debugldap.log" ;

$wgLDAPProxyAgent = array(

'TMP' => 'cn=TMP\userLDAP,dc=tmp01,dc=ab,dc=cde,dc=fghi,dc=edu',


$wgLDAPProxyAgentPassword = array(

'TMP' => 'tmpLDAPpassword',


I know that the ldap server has a certificate and it is not self signed but from a third party. Do I still need to use openssl and create a cert file? If so where do I put this file in a windows server 2012 computer? Should I use SSL?

All I want to do is have my users use their current login information to log into my MediaWiki setup and just allow them to edit. I need to give myself and another user top level control. Anyone else who uses the site will just be a user and just viewing the wiki.

Thank you again for your help. I look forward to hearing from you.l

This comment was hidden by Jörgi123 (history)
Reply to "What approach to use for Active Directory login?"