Project:Support desk

(Redirected from Support desk)
Jump to: navigation, search
vde   This page is for questions relating to the MediaWiki software.

Welcome to's Support desk, the central on-wiki place to ask MediaWiki questions!

The greater purpose of this page is to make our Manual and other available help so good that you do not have to come here to ask questions, or making them easier to find.

There are other ways for of communication as well (IRC, mailing lists etc.). Read more here.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using:
    • MediaWiki (reported by your wiki's Special:Version page)
    • PHP (likewise)
    • Database (likewise, e.g. MySQL 5.5)
  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 discussion".

Archiving topics

Topics are automatically archived when they have been inactive for three weeks. If a question you have asked is approaching this limit and still has not been answered, please 'bump' it to prevent it being archived. However do not 'bump' for other reasons.

Start a new discussion
First page
First page
Previous page
Previous page
Last page
Last page

No sysop, bureaucrat, etc. user on a local install

I have a local install of MediaWiki 1.15.1 with PHP 5.3.2 and MySQL 5.1.69. Going to Special:ListUsers/sysop shows no users. The only user listed on the wiki is me, but I don't have bureaucrat, sysop or other elevated rights. I want to import the Chart templates, but doing so by hand without elevated user rights is exhausting. I have access to the LocalSettings.php and AdminSettings.php files; neither of them lists any admin, bureaucrat or sysop users. I can grant myself full rights in PHPMyAdmin, but those don't seem to translate to rights from within the wiki itself. I don't know if I somehow managed to delete the root user or if it never existed.

How do I grant myself rights to import templates? (Being able to delete pages, etc. would also be handy.), 3 March 2015

If you have shell access, the best way is to use the createAndPromote.php script.

Ciencia Al Poder (talk)10:41, 3 March 2015

Thank you for the response!

I tried going to /maintenance directory and running that script, but I get repeated "Please provide a username and password for the new account", even though I am using a pre-existing (and indeed, the only) account, and even though I have the --force flag in the command. I have tried it both with and without sudo. (I'm running Linux.) What else should I do?

Thanks again!, 4 March 2015

$wgGroupPermissions not preventing spammers creating new pages

Edited by another user.
Last edit: 10:47, 3 March 2015 Version 1.24.1

I have put the following code in Local Settings .PHP

$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
$wgGroupPermissions['*']['writeapi'] = false;

$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['user']['createpage'] = false;
$wgGroupPermissions['user']['createtalk'] = false;

$wgGroupPermissions['Trustworthy'] = $wgGroupPermissions['user'];
$wgGroupPermissions['Trustworthy']['createpage'] = true;
$wgGroupPermissions['Trustworthy']['createtalk'] = true;

I have manually added all the known genuine contributors to the "Trustworthy" group. I have created a dummy non-admin account for myself to test it and it works. As a non-trustworthy, non-admin, I can't create new pages. We are still getting spammers creating new pages though. How are they getting through and how do we stop them please?

Graham Phillips 110 (talk)07:04, 3 March 2015

I just read the comments below about Magic Words.
Sorry if I sounded a bit abrupt too. I'm getting impatient with having to spend so much time deleting spam and trying to prevent it and I shouldn't be taking it out on those who I'm hoping will help me.

Graham Phillips 110 (talk)08:18, 3 March 2015

I wonder if edits through the api could be circumventing this.

Do you have access to the access_log of the server to see what URLs are they using to edit pages, and see if they're using the api to edit?

Ciencia Al Poder (talk)10:54, 3 March 2015

Thanks, I wondered that too, which is why I added $wgGroupPermissions['*']['writeapi'] = false;
They're still getting through, so I've added $wgGroupPermissions['user']['writeapi'] = false; as well now
I'm very much a beginner at all this and trying to pick it up as I go along. I'll see if I can work out how to access the access log.
It's hosted on GoDaddy if that makes any difference.

Graham Phillips 110 (talk)16:54, 3 March 2015

@ Ciencia: Do you consider that a security hole? I think, it should not be possible to circumvent MediaWiki's permission system just by using the API..., 3 March 2015

Possible to have different hashes in database?


I am wondering if is it possible to have different password hashes in MySQL database?


Admin - SHA-256:Salt:Password User1 - MD5:Salt:Password

Have tried this:

UPDATE `user` SET user_password = CONCAT(':A:', MD5('somepass')) WHERE user_name = 'someuser';

And it changes the password correspondingly, but after one log in with the user it changes the hash back to SHA-256 (Guess some kind of MediaWiki default.

Any ideas?, 3 March 2015


MediaWiki supports different password hashing algorithms. Even if one of these algorithms is set to be the default (SHA-256 in your case), for backwards compatibility it may still be possible to log in with hashes of another format. These older hashes are then updated during login. See Manual:User_table#user_password for more details!, 3 March 2015

External link opens in new window on request but not always :-(

Edited by author.
Last edit: 07:25, 3 March 2015

Hello All,

I installed the LaunchExternal extension in my Wiki, and now any URL in a text opens in a new window, BUT the one to MediaWiki. How come ?


In this page link to Forum de discussions et d'informations does open in a new window, but in that page (4th §), link to MediaWiki does not :-(

Config is

MediaWiki 1.24.1
PHP       5.5.11 (apache2handler)
MySQL     5.0.67-log


Casablanca1950 (talk)12:56, 27 February 2015

Assuming you're using the script on that page instead of the <ext></ext> tag, it had an issue. I've updated the script on the page and it should work if you update it.

Ciencia Al Poder (talk)10:36, 2 March 2015


I don't understand. You updated a 20 lines script by a 5 lines one, which does the same?

I'm using the LaunchExternal script. Should I remove it from Common.js and copy/paste the script from your page instead?

I was not able to do so as right click and CTRL C are disabled on your page.


Casablanca1950 (talk)07:05, 3 March 2015

Yes, replace the old script with the new one and it should work. Be sure to hard-reload the page (CTRL+R) or clear the cache to ensure it gets loaded.

And yes, I managed to simplify the script by using jQuery, which is loaded by default on MediaWiki and provides a lot of shorthands to do the same in fewer lines of code :)

Ciencia Al Poder (talk)10:34, 3 March 2015

Clever, Buddy :-)

I did it, the feature still works, but the link to MediaWiki still opens in the same tab...


Casablanca1950 (talk)11:54, 3 March 2015

Auto Refresh User Pages

Mediawiki Version 1.24

some charts are shown in my wiki pages so need to Auto Refresh the wiki page. how to do it.

--Ragu Thangavel

Ragusathis (talk)03:50, 2 March 2015


Maybe you lack a few "magic" words:

Hello Please Thank you

Casablanca1950 (talk)07:01, 2 March 2015

Hi, Thanks for your Reply

am not aware of magic words so you can help me to refresh user pages automatically.

--Ragu Thangavel

Ragusathis (talk)03:23, 3 March 2015

Yes, I can.

It is common use in Forums on the Internet to try to communicate like in real life. If you start your message with a "Hello", then use the "please" magic keyword after you question, then finish with a "thank you", you may better motivate people to take the time to study your question and answer it if they can.

Casablanca1950 (talk)06:56, 3 March 2015


Henceforth i will rectify Casablanca1950, you are most welcome to this type advice also. kindly help me to refresh to User pages.

Thank you..

-- Ragu Thangavel

Ragusathis (talk)09:58, 3 March 2015

For a page to be updated, the cache version has to be purged.

According to this page it is not recommended and according to that one, it is rather complicated to obtain what you need. My best suggestion would be to tell the user to hit F5 within his/her browser, if this is enough.

Casablanca1950 (talk)11:53, 3 March 2015

open_basedir to folder i did not found...

hi ! in php_errors.log i get following message "...file_exists(): open_basedir restriction in effect. File(C:\mediawiki/../wmf-config/wikimedia-mode) ...doMaintenance.php on line 80" but in my installation i did not found a folder like wmf-config/wikimedia-mode - can someone help me to fix this mistake ?

regards Jan

JanTappenbeck (talk)07:24, 2 March 2015

search in the LocalSettings.php and other files you may have modified/downloaded from Wikimedia to find where is "wmf-config" mentioned, and figure out if that makes sense.

Ciencia Al Poder (talk)10:40, 2 March 2015
Edited by another user.
Last edit: 10:27, 3 March 2015

hi ! I search and found in ..\maintenance\doMaintenance.php following code I did not modify:

if ( defined( 'MW_CONFIG_CALLBACK' ) ) {
	# Use a callback function to configure MediaWiki
	call_user_func( MW_CONFIG_CALLBACK );
} else {
	if ( file_exists( "$IP/../wmf-config/wikimedia-mode" ) ) {
		// Load settings, using wikimedia-mode if needed
		// @todo FIXME: Replace this hack with general farm-friendly code
		# @todo FIXME: Wikimedia-specific stuff needs to go away to an ext
		# Maybe a hook?
		global $cluster;
		$cluster = 'pmtpa';
		require "$IP/../wmf-config/wgConf.php";
	// Require the configuration (probably LocalSettings.php)
	require $maintenance->loadSettings();

is information a good help to fix this problem ?

regards Jan, 2 March 2015

That file isn't the problem.

Do a grep of the entire mediawiki installation directory. You could use the search in files command of various text editors, like Notepad++, to do this, since Windows search sucks.

Ciencia Al Poder (talk)10:31, 3 March 2015

Existing wiki is not detected by performing /mw-config

Hi! I was recently installed Math extension into my wiki. The files have already copied to the /extension folder. I have added require_once "$IP/extensions/Math/Math.php"; to LocalSettings.php. The problem was when I wanted to update the database by performing /w/mw-config, setup could not show the next step, only the intro page was shown. Could you help me how to solve this?

Thank you. Rachmat.Wahidi (talk) 08:39, 3 March 2015 (UTC)

Rachmat.Wahidi (talk)08:39, 3 March 2015

Description of updated version of pix doesn't show up in all pictures list


I have updated a new version of a picture, and added a description that I forgot to include when uploading the first version.

When I ask for the list of all pix, this text doesn't show up in the Description column.

Why ? What should I do to fix this issue, please?


pix is here and list of pix is there.

MW 1.24.1

EDIT: Looks like the special page "List of files" uses the "Comment" field text in the "Description" cell instead of the "Description" text. Looks like a bug.

Casablanca1950 (talk)07:22, 3 March 2015

Exporting a wiki for offline use

I would like to export a whole wiki into a format which does not require a working Internet connection to use, does not require a web browser to view, and provides navigation and search facilities. CHM is an example of such format (CHM is a little evil, but it is good as an example nevertheless). What such formats does mediawiki export to, including tools to convert dumps to external formats?

Gryllida10:52, 2 March 2015

I think there is no solution for that.

MediaWiki content can be exported to XML format. Apart from that you can use the according external tools to create an export, e.g. if you are using MySQL, you can create a MySQL dump. Anyway,all this is targeted at an import into (possibly another) MediaWiki instance.

What you however can do is this:

  • Run the wiki on a local machine. This requires Apache, PHP and MySQL to be running. However, this machine can then be offline, meaning it does not have to be connected to the internet.
  • The tool to view a wiki is a browser. Maybe you can build an exe file or so out of some of the pages - I know there were tools, which could do that, but anyway: You then will have to run that exe file in order to use the wiki, which technically is not different from running your webbrowser's exe file., 2 March 2015

I am trying to avoid using a web browser. A web browser is not a good tool for viewing help files, because then the task of searching and navigating the help files becomes delegated to the web browser (and hence whoever wrote the html). I do not want to know html or javascript. I want to use a standard help file format for which a viewer exists for my desktop and I can control the viewer using a language my desktop environment is written in.

Gryllida19:49, 2 March 2015

Control the browser with C, C++ and XML - nothing easier than that!, 2 March 2015

Web browser, to my mind, is an application for browsing the web. Where I browse something different from the web (i.e. an exported wiki), I would rather use an offline format in a different program.

In the event of using a local HTML version, ability to control the browser does not empower me with control over the navigation facilities that HTML version provides.

Gryllida07:28, 3 March 2015

You should export the wiki as a XML-file and then create out of this export one or more pdf files. You may need a script that cuts the wiki entries in parts and re-arranges them in such a way as to create separate xml files; or however you want to see the things displayed/converted.

Temptuousinsolence (talk)14:42, 2 March 2015

A bunch of PDF files is not a help file format, unless combined with a metadata file which helps to organize them. There has to be a standard way to do this.

Gryllida19:52, 2 March 2015

[RESOLVED] How to change the list of options in the TOOLS menu of the Nav Bar


In my Navigation Bar (1.24.1) I have by default a TOOLS list but I do not find where this list is stored (link).

The page did not help.


Casablanca1950 (talk)06:59, 2 March 2015

Toolbox items are not editable. They're generated based on MediaWiki/skin/extensions.

If you know PHP you could use the BaseTemplateToolbox hook to modify the items in PHP

Ciencia Al Poder (talk)10:43, 2 March 2015

[RESOLVED] Search drop down list of suggestions not working

I updated Mediawiki today from 1.21.1 to 1.24.1 and now the drop down suggestions aren't working in search. I tried the suggestions on here but it's still not working. Any suggestions?


Kwanko (talk)16:52, 2 March 2015

Do you have any extensions installed? Especially extension, which load JavaScript? Make sure to update them as well!

Apart from that: Clear all caches: On the server, in the browser, maybe in a proxy or whatever might be inbetween. Should it still be broken afterwards, I would see, if there is a JavaScript error happening., 2 March 2015

In addition to the points from, please check, if there are any exceptions in your browser's console :-)

Florianschmidtwelzow (talk)17:11, 2 March 2015

I'm getting a "SCRIPT5022: Unknown dependency: jquery.delayedBind" error in my browser's console. Suggestions?


Kwanko (talk)19:14, 2 March 2015

Removing Extension:Vector solved the problem. Thank you very much.

Kwanko (talk)20:00, 2 March 2015

importImages.php hangs if file doesn't already exist

in importImages.php it hangs when trying to import. I am running in windows, my command is:
C:\inetpub\wwwroot\mediawiki>php maintenance\importImages.php maintenance\images\ svg png jpg jpeg gif bmp SVG PNG JPG JPEG GIF BMP

I have debugged it to this code on line 167. if ( $image->exists() ) {

The previous line checks for the file, but in my case the file does not exist.
I fear that a null object is being referenced for an action, exists().

What can we do to allow for this to work?

Sdsolutions (talk)19:03, 2 March 2015

Thanks for spotting that! If you have a working patch to fix this, could you please submit your patch so the MediaWiki developers can review this? See Gerrit and this for more information.

Southparkfan (talk)19:19, 2 March 2015

MediaWiki search and keywords

Dear All.

I have a small internal MediaWiki installation up and running. After a couple of months in service, I got complaints from users saying that they don't get a hit on the expected page when they do a search in the search field of our MediaWiki installation. The reason is obvious - the don't get a hit in the text that's on the page and the content they are looking for. Is there a simple way to add a kind of meta keywords in an article to get a search hit?

I have read about YetAnotherKeywords and considering that option. Other possibilities seem to be CirriusSearch and SphinxSearch, but they seem to be more complicated. What does people use to resolve this issue on a smaller MediaWiki installation?


Pompelpilt (talk)10:27, 2 March 2015

To make things a bit clearer:

  • MediaWiki with numerous sites and content
  • User uses search field in order to search for content on page
  • No hit displayed
  • Solution: You want content displayed.



  • Do you want all content searchable or just some parts?
Temptuousinsolence (talk)15:02, 2 March 2015

When words are not displayed in the search results although they are on the according pages, this often is caused by problems with the search index. Try running the maintenance script rebuildtextindex.php in order to rebuild the search index!, 2 March 2015

It seems like I didn't make myself clear here.

For instance; If a user search for "PC" or "Computer", I would like to have a hit on an article "Personal Computer". In this case I would like to put in some keywords like one does in HTML with <meta name="keywords" content="HTML,CSS,XML,JavaScript">. How is that resolved in MediaWiki without typing them in the text itself?

Pompelpilt (talk)18:29, 2 March 2015

Approved Revs cant find how to assign it to a group of users

how do i add a group of users to Approved Revs cant find anything about it on how to set it on a group please help

Thanks in advance, 2 March 2015

I assume you can't. Approving is done by administrators in Extension:Approved Revs.

FriedhelmW (talk)16:45, 2 March 2015

All content appearing bold

For some time now, all content on the wikis I edit has been appearing in bold text, regardless of whether or not it is formatted as such.

I am having this issue on both my home and work PCs, but strangely when I accessed one of these wikis on my friend's laptop at his house (using my wiki account), the text appeared as normal.

I use Google Chrome as my default browser, in case that has any effect on it, although I have also tested this on Internet Explorer on both the affected PCs and I get the same issue. Anyone have any idea what might be causing this?

Leigh Burne (talk)14:32, 2 March 2015

Does the same problem also happen when you use the same browser, but with another browser-user-profile?, 2 March 2015

It could be related to your browser and might have nothing to do with the MediaWiki installation itself; whcih is even corroborated by the fact that your friend's browser does not show this error.

Google provides some posts and comments on this issue:

Temptuousinsolence (talk)14:50, 2 March 2015

Hilfe zur extension:eventcalendar

Hallo, ich versuche es einfachheitshalber zunächst mal auf deutsch: also, ich würde gerne die extension eventcalendar nutzen, komme aber einfach nicht mit der Einrichtung klar. Das SemanticBundle habe ich bereits installiert und in der Localsettings.php eingebunden. Aber wie binde ich nun den Kalender in meine seite ein und wie erschaffe ich neue Termine??? Würde mich riesig über eine einfache Erklärung freuen!!! Danke, 26 February 2015

Is this about ?

Malyacko (talk)12:26, 26 February 2015

yes it is!! And I don´t understand how to make it work in my Wiki??? PLEAAAAAAAAAAAAAAAAAAAAAAAAASSSSSSSSSSSSEEEEEEEEEEEE Can you explain me??!!!, 26 February 2015


??? What is the intention to do that?

> Is this about ?

> yes it is!!

Then you should ask there :)

Florianschmidtwelzow (talk)13:32, 27 February 2015

The intention is... surprise, surprise... to have an eventcalendar!!! I need it for my companies, so we can organize better. I would like too ask "there" - but there is no "there"!! Can´t anybody just send me some working code that i have to enter into my wiki??



and how to create an event???, 1 March 2015

Please read the previous comment again how to receive help. Please also consider fixing your keyboard: it prints certain keys like ? and ! several times instead of only once.

Malyacko (talk)09:10, 2 March 2015

'there' is here

Arent (talk)12:57, 2 March 2015

Just look at the examples given here. Quite self-explanatory, I would say.

Temptuousinsolence (talk)14:37, 2 March 2015

WikiEditor doesn't show up after upgrading to 1.24.1

hello, after I updated my wiki to the newest version the WikiEditor doesn't show up when editing a page. I updated WikiEditor from 0.3 to 04 thinking that the issue would resolve but it didn't.

Does anyone have the same problem?

Smavropoulos (talk)11:32, 2 March 2015

WikiEditor is bundled and delired with the MediaWiki core. There is no need to separately download it from You should go through Upgrade - especially take care that there are no files of your old MediaWiki version left in your system. Such files tend to cause trouble like that., 2 March 2015

I kept WikiEditor in my Extensions files, the tutorial said to keep the extension files so I don't know what you mean with bundled up :/

Smavropoulos (talk)14:12, 2 March 2015

Some extensions - like WikiEditor - are nowadays coming with the MediaWiki tarball. Meaning when you update MediaWiki, you in fact also get new files for these extensions. These new files are the ones you should use., 2 March 2015

[RESOLVED] CSS bug or ?

I'm trying to change color layout. In Mediawiki:Common.css (or Vector.css) I've made some changes that work as expected. Apart from one issue. Using an in-line image or fixed image works as expected:

div.vectorTabs span {
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAABkAQAAAABvV2fNAAAADUlEQVQIHWNoYBgWEACJ5TIB0K9KcAAAAABJRU5ErkJggg=="); 

However, a linear-gradient is repeated all over the tab:

div.vectorTabs span {
    background-image: linear-gradient( #fff6f6 0%, red 100%); 

What's wrong?

(MW 1.24.1 PHP 5.3.3)

Arent (talk)09:54, 2 March 2015

I guess it has background-repeat: no-repeat, so images aren't repeated over the tab, but gradients are different since you can't specify the "length" of the gradient inside the element.

Ciencia Al Poder (talk)10:48, 2 March 2015

I can see the difference in size definition. But how can I prevent repetition altogether?

Using a local file
using a gradient
Arent (talk)11:01, 2 March 2015

Tnx, found it ;-)

div.vectorTabs span {
   background-image: linear-gradient( #fff6f6 0%, red 100%); 
   background-size: 1px 60px;

The background-size was the missing link.

Arent (talk)11:35, 2 March 2015

error in update with by web browser in MediaWiki Language Extension Bundle

We were dealing with a problem during installation MediaWiki Language Extension Bundle in step upadte database with by web browser

[f18f0cca] /mediawiki/mw-config/ Exception from line 341 of /home/mechir/domains/ Error: invalid   magic word 'babel'
#0 /home/mechir/domains/ MagicWord->load(string)
#1 /home/mechir/domains/ MagicWord::get(string)
#2 /home/mechir/domains/ Parser->setFunctionHook(string, array)
#3 [internal function]: BabelStatic::onParserFirstCallInit(Parser)
#4 /home/mechir/domains/ call_user_func_array(string, array)
#5 /home/mechir/domains/ Hooks::run(string, array, NULL)
#6 /home/mechir/domains/ wfRunHooks(string, array)
#7 /home/mechir/domains/ Parser->firstCallInit()
#8 /home/mechir/domains/ Parser->clearState()
#9 /home/mechir/domains/ Parser->startParse(Title, ParserOptions, integer, boolean)
#10 /home/mechir/domains/ Parser->parse(string, Title, ParserOptions, boolean)
#11 /home/mechir/domains/ Installer->parse(string, boolean)
#12 /home/mechir/domains/ WebInstaller->getInfoBox(string)
#13 /home/mechir/domains/ WebInstallerExistingWiki->showKeyForm()
#14 /home/mechir/domains/ WebInstallerExistingWiki->execute()
#15 /home/mechir/domains/ WebInstaller->execute(array)
#16 /home/mechir/domains/ wfInstallerMain()
#17 {main}

in main page by url The following message:

A database query error has occurred. This may indicate a bug in the software.
Wikimech org (talk)14:54, 27 February 2015

As the error is the "invalid magic word 'babel'", is the Babel Extension installed?

Malyacko (talk)09:09, 2 March 2015

mediawiki login


One of my clients has installed mediawiki on his site and that has been setup at page. I need to check the installation and fix the issue. But I dont know where to login

Can you please tell me where i can login to the mediawiki admin so I can see all the settings and the installations and can fix the issue.

Thanks,, 1 March 2015

You can login via SSH, FTP etc. There is no GUI. See Manual:System administration.

Nemo08:12, 2 March 2015
First page
First page
Previous page
Previous page
Last page
Last page