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".
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL
Furlaniyuri (talkcontribs)

Ciao a tutti, quando vado a installare mediawiki su centos7 ho il seguente errore:

Impossibile trovare un driver adatto per il database! È necessario installare un driver per PHP. I seguenti formati di database sono supportati: MySQL (o compatibile), PostgreSQL, Oracle, Microsoft SQL Server, SQLite.

Se compili PHP autonomamente, riconfiguralo attivando un client database, per esempio utilizzando ./configure --with-mysqli. Qualora avessi installato PHP per mezzo di un pacchetto Debian o Ubuntu, allora devi installare anche il pacchetto php5-mysql.   

Cosa sbaglio?? 

PHP e installato, MariaDb idem... (talkcontribs)

Buon giorno!

I understand that you are trying to install MediaWiki, but MediaWiki tells you that it would not find a usable database system. You are using Debian or Ubuntu with PHP and MariaDB.

Make sure that MariaDB is actually active. You can check the output of a PHP file with the content

<?php phpinfo()

to see, if MariaDB is activated. If it is not, you still have to activate it.

Furlaniyuri (talkcontribs)

Yes,yes, I am installing mediawiki...

i have create the file php with the content <?php phpinfo() ; ?>..

But don't check the output on my browser...

MariaBd is installed, whene i lunch this comand:

yum -y install mariadb-server mariadb

this is message return:

Il pacchetto 1:mariadb-server-5.5.44-1.el7_1.x86_64 è già installato e aggiornato all'ultima versione

Il pacchetto 1:mariadb-5.5.44-1.el7_1.x86_64 è già installato e aggiornato all'ultima versione

Niente da fare

Where is the problem :(

Ciencia Al Poder (talkcontribs)

The problem here is that PHP doesn't have the mysqli driver, needed to connect to mariadb database.

See for instructions to install the mysql driver for PHP (note that you should install mysqli and not mysql, as in sudo yum install php5-mysqli).

After installing, you need to restart apache. phpinfo should display the mysql driver.

If not, you may need to edit php.ini and add to php.ini in case the installation of the mysql driver doesn't add it to php.ini itself, and restart apache again.

Furlaniyuri (talkcontribs)

Thanks..... Mediawiki is OK..

User creation not sending random generated password

Tormate (talkcontribs)

Hi there,

I am using MediaWiki 1.24.0. When I create new users, and choose "Use a temporary random password and send it to the specified email address" the user will recieve the mail defined in "MediaWiki:Confirmemail_body" but not the random password mail.

Do I have to enable that some where, or is there a variable containing the password to be used in the "MediaWiki:Confirmemail_body"?

Thanks a lot!

MarkAHershberger (talkcontribs)

I'm looking into it, but in the meantime, I've created a task in Phabricator since this sounds like a bug.

Reply to "User creation not sending random generated password"

Extensions partially working. Some show up with plain tags?

12 (talkcontribs)


I've installed TinyMCE and CategoryTree extensions. TinyMCE works partially whilst I haven't managed to get CategoryTree to work. For example on my main page I have an image created with TinyMCE ("Cool" -smiley) and some red text. The image shows up as <img title="Cool" src="/wiki/extensions/TinyMCE_MW/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif" border="0" alt="Cool" /> but the text turns red. When it comes to CategoryTree I haven't managed to get it to work. It only shows up as <categorytree mode=pages>Manual</categorytree>.

What I make of it is that for some reason the HTML/Extension tags are not being processed properly. Is this a common problem or got any advice what could be causing this? Any help is appreciated.


Ciencia Al Poder (talkcontribs)

Check if they're installed properly. They should appear in the page Special:Version on your wiki. Particularly, <categorytree> should appear in the list of parser extension tags.

Also, be sure you donwloaded the extensions matching your MediaWiki version. (talkcontribs)

Thanks for your reply, Ciencia!

Both show up Special:Version page. CategoryTree shows up twice, as "Special pages" and "Parser hooks". TinyMCE is not up to date, so that might explain why it isn't working. The newest version was updated 3 years ago and I'm using 1.25.* version of MW. CategoryTree is updated and I installed the one for 1.25. Any other ideas what might be causing this?

Ciencia Al Poder (talkcontribs)

If it appears in the list of parser extension tags (see Special:Version#mw-version-parser-extensiontags) it should work. Be sure it's not included inside <pre> tags or similar. Try adding it to an empty page. (talkcontribs)

Hi and thanks again for your reply, Ciencia!

CategoryTree appears in the parser extension tags. I tried adding it to an empty page without success. What are the <pre> tags or similar you're referring to? Where do I find them? (talkcontribs)

Some additional information: My installation is on a Windows Server 2012 R2 using IIS. Could this be part of the reason it doesn't work properly?

Ciencia Al Poder (talkcontribs)

No, that shouldn't be a problem.

Maybe another extension is causing incompatibilities. Try disabling all extensions except CategoryTree and see if with that setup the extension works. If it works, then you can enable extensions one by one until you find the culprit. (talkcontribs)

Even with CategoryTree as the only installed extension, it doesn't work. After that I also tried installing the Spoilers -extension. It shows up on Special:Version, but on my blank page it shows up as:

<spoiler hide="hide_message">spoiler_text</spoiler>

<spoiler show="show_message">spoiler_text</spoiler>

<spoiler show="show_message" hide="hide_message">spoiler_text</spoiler>


Is there some additional configuration for installing the extensions that I could've missed?


Ciencia Al Poder (talkcontribs)

This looks something more general. I think there may be some error that's not appearing, and it silently fails to parse parts of the wikitext.

See Manual:How to debug#PHP errors to enable errors displayed on the page, and look if you get any error message displayed on the page. (talkcontribs)

After I turned on the PHP debugging, I get the following:

Notice: Undefined index: show in C:\inetpub\wwwroot\wiki\extensions\Spoilers\Spoilers.hooks.php on line 64

Notice: Undefined index: hide in C:\inetpub\wwwroot\wiki\extensions\Spoilers\Spoilers.hooks.php on line 65

Notice: Undefined index: show in C:\inetpub\wwwroot\wiki\extensions\Spoilers\Spoilers.hooks.php on line 64

Notice: Undefined index: hide in C:\inetpub\wwwroot\wiki\extensions\Spoilers\Spoilers.hooks.php on line 65

When disabling the spoilers-extension, no errors are shown. Neither are any SQLErrors shown. When turning on MediaWiki debugs, this is shown:

Debug data:

Start request GET /wiki/index.php?title=Main_Page





USER-AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

HOST: srvapp1

COOKIE: wikiUserID=1; wikiUserName=Mbj; wikiToken=8983e966e2b8af9191b3f812119afb18; wiki_session=e04d13c397680f442a1e66904328878a

ACCEPT-LANGUAGE: en-US,en;q=0.8,fi;q=0.6,ru;q=0.4,pt;q=0.2,de;q=0.2,it;q=0.2

ACCEPT-ENCODING: gzip, deflate, sdch

ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

CONNECTION: keep-alive

CACHE-CONTROL: max-age=0

[caches] main: WinCacheBagOStuff, message: WinCacheBagOStuff, parser: WinCacheBagOStuff

[caches] LocalisationCache: using store LCStoreDB

Fully initialised

Connected to database 0 at localhost

Title::getRestrictionTypes: applicable restrictions to Main Page are {edit,move}

[ContentHandler] Created handler for wikitext: WikitextContentHandler

User: got user 1 from cache

User: loading options for user 1 from override cache.

User: logged in from session

User: loading options for user 1 from override cache.

[MessageCache] MessageCache::load: Loading en... got from global cache

Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser

Parser: using preprocessor: Preprocessor_DOM

Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct

Article::view using parser cache: yes

Parser cache options found.

ParserOutput cache found.

Article::view: showing parser cache contents

User::getBlockedStatus: checking...

Parser::replaceVariables called using plain parameters instead of a PPFrame instance. Creating custom frame.

Parser::replaceVariables called using plain parameters instead of a PPFrame instance. Creating custom frame.

Title::getRestrictionTypes: applicable restrictions to Main Page are {edit,move}

Title::getRestrictionTypes: applicable restrictions to Main Page are {edit,move}

Title::getRestrictionTypes: applicable restrictions to Main Page are {edit,move}

Is there something useful in there that I didn't notice?


Ciencia Al Poder (talkcontribs)

I don't know what could be the problem here. Looks like a problem to interpret parser tags on your installation. Maybe a buggy php version, or some php.ini variable that may not be correct. Sorry, I don't know what could be done here :( (talkcontribs)

Alright, no problem! Thanks for all your help, Ciencia!

Reply to "Extensions partially working. Some show up with plain tags?"
Stefahn (talkcontribs)

In a custom namespace we save data that contains email addresses. These addresses shouldn't be accessible by anons.

With helpf of the lockdown extension I said that anons can't edit this namespace. However they still can view the source and thus see the email address.

Is there any way to disable "view source" for anons?

The only thing I found was Extension:ProtectSource but it's still in beta...

MarkAHershberger (talkcontribs)

Is it enough to remove the links from the UI? You could use the answer hereI.

I do have a way to hide the source, but it is a custom extension that I've been meaning to improve and release.

Reply to "How to hide source from anons?"

Help with the "code" template importation from wikipedia

Psychoslave (talkcontribs)

Hello, I just copy/pasted lua guiding style from Wikipedia. Now it's missing some template like "code" to be correctly displayed. Would anyone with the necessary permissions do the importation properly? Doing copy/paste is of course possible, but it is not a good way to do it, as all history get lost, and it possibly may concern a lot of manual work if there are templates in the templates, plus all documentations pages. Alternatively, I could also do the import myself if anyone would give me the required system permissions.

MarkAHershberger (talkcontribs)

So, you want someone to delete the page and export the page from Wikipedia with templates and then import it here?

Reply to "Help with the "code" template importation from wikipedia"

How to start a second wiki on a bigger scale - while still running the smaller one

Vebert (talkcontribs)

Hi MediWiki makers,

I am using MediaWiki in my company since 7 years now, which turned out to be a big success story: 2500 articles and 2Million page views in a community of 80 engineers!

This was created for one design site. But now, my world went bigger - I am responsible for ~20 design sites, so I intended to start a second wiki on another server. My intention is to keep wiki 1 running (never change a winning team, right?).

However, some of the articles in wiki1 are interesting also in the bigger group.

Any best practice you have for me how to set up wiki 2 is more than welcome. Especially: Is there a possibility, that a search in wiki2 extends the search automatically into wiki1 if nothing was found? and: What is the best method for common articles (like redirects between the wikis? - or something better?)

Thanks a lot for your help !

PS: Searched the help topics, found a bit, but not quite what I was looking for. Sorry if I should have overseen something.

MarkAHershberger (talkcontribs)

You probably want to set up a wiki farm and have an aggregate search. I don't know how to do the aggregate search, but @Cindy.cicalese has done a lot of work on wiki farms and may have some pointers for you.

Reply to "How to start a second wiki on a bigger scale - while still running the smaller one" (talkcontribs)

Would it be possible that I receive help from you on this code:

Here is how it works. Using this function <span class="listpages">category (without category:)</span>, the script retrieves all the pages from the specified category one under each other in a bulleted list. It also makes them linkable.

Here is the best example I can come up with

* Page 1

* Page 2

* Page 3

so forth and so on.

What I would like this code to do (apart form what it already does) is to have options to retrieve pages that are in a category and are not in other specified categories. i.e. They are in category 1, category 2 and 3, but I only want to retrieve them if they are in the first category. In addition, I would also wish for a reverse function. i.e. Only if they are in the categories I specify.

That's number 1. Number 2 would be for the list to sort itself automatically on rows after it reaches a certain number. Example: let us say there are 30 pages in there. I would want for those 30 pages to sort themselves 10 on a row (so 3 rows).


* Page 1

* Page 2

* Page 3


* Page 4

* Page 5

* Page 6

Any help is much appreciated and I would be very grateful for it.

Reply to "Category retrieval"

Extension Echo - Invalid object cache type "db-replicated" requested. It is not present in $wgObjectCaches.

1 (talkcontribs)

Hello guys,

I'm trying to include the Echo extension on my Wiki, but is returning an internal error of Mediawiki.

The exception thrown is as follows:

Invalid object cache type "db-replicated" requested. It is not present in $wgObjectCaches.

Someone would know help me?

Thank you!

Reply to "Extension Echo - Invalid object cache type "db-replicated" requested. It is not present in $wgObjectCaches."
2A02:AA16:9100:8300:6151:29F0:4FEA:DEC5 (talkcontribs)

Hello everybody,

short basic question: Can I disable "redlinks" in my old private MediaWiki 1.16?

-> If an article doesn't exists, MediaWiki should not create a hyperlink to (action=edit) in the article page where the "redlink" is written. (not via css .hidden-redlink {display:none !important;})


In Articlepage:

if reference article exists = echo <a href="/wiki/Article-Name" title="/Article-Name">Article-Name</a>


reference article doesn't exists = echo <p>Article-Name</p>

Demo screenshot:

Thanks :)

Ciencia Al Poder (talkcontribs)

You should be able to do that using the LinkBegin hook.

Reply to "Disable "redlinks" (hyperlink) in MW?"
Markazmedia (talkcontribs)

how make a protected article?

Ciencia Al Poder (talkcontribs)

Help:Protected pages

Reply to "protected article"