Project:Support desk

Jump to: navigation, search

About this discussion

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

There are also other places where to ask: IRC, mailing 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 discussion".

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
2001:780:0:B:AC5B:653:8B79:D6D7 (talkcontribs)


I have a running MediaWiki with the global $wgLanguageCode = "de". When a user changes his language, to lets say 'en', the user interface is still in 'de'. How can that be?

The database also has the changed setting 'en' set. The query I use is

SELECT up_user as `User`, convert(up_value using UTF8) as `Language` FROM wiki.user_properties where up_property = 'language';

So I guess its a bug?

2001:780:0:B:AC5B:653:8B79:D6D7 (talkcontribs)

I'm running MediaWiki 1.24.2 (talkcontribs)


What do you see when you later visit the user preferences again? Does it then still say "Language: German"?

You might try running a TRUNCATE query on the tables l10n_cache and objectcache in your database - this should clear cached texts and force MediaWiki to take the texts from the actual source files.

2001:780:0:B:3099:2B9B:69D1:D4F2 (talkcontribs)


The preferences page (as well as the database) show the language that should be used but is not (here: 'en').

Clearing the two caches also did not yield to the desired result. The database and the preference page still show 'en' but the interface language is still 'de'.

Any more suggestions?

Reply to "User language is not honored" (talkcontribs)

Hi Team,

Am trying to upload files into mediaWiki(i installed mediaWiki in Bluemix), Am not able to find the upload file option under tolls section. Under special pages section I found an option to import/export files, am able to successfully export the pages from mediawiki, but facing issue while uploading the same file(error: Data at the root level is invalid. Line 1, position 1).

Please help.


Sampath (talkcontribs)

If I had to guess I would say: The upload file link only appears, if file upload is a) generally enabled and if b) the user has permission to actually upload files.

For a complete guide on how to configure file uploads, see Manual:Configuring file uploads! (talkcontribs)

Thanks :). I got that option after changing the settings in config file.

Reply to "Upload file Option in media wiki" (talkcontribs)

I have problem with search result in a mediawiki. In the result of search I'm getting first image and then later pages. It is possible to change search setting? I would like to have first pages and then images. If there is not possible to change setting. Could you please tell me how I can turn off the image search?

Thank you in advance! (talkcontribs)

I do not know how you can adjust that images do no longer appear as first results. Maybe someone else does? ...

In the meantime you can at least change the value of $wgNamespacesToBeSearchedDefault and take the namespace with the images out of the default. Basically that means: Set the value of NS_FILE to false.

Reply to "Search Problem"

Inserting Internal & external Video / Audio into page?

AmazingTrans (talkcontribs)

What is the best way to insert uploaded mp3 / avi / etc or youtube video on a wikipage?

2001:780:0:B:3099:2B9B:69D1:D4F2 (talkcontribs)

For Youtube, there is an extension:

For Audio, you can use the

There is also which I haven't used that far though.

Reply to "Inserting Internal & external Video / Audio into page?"

Updating Russian wiki: page titles won't resolve

This comment was hidden by (history)
Reply to "Updating Russian wiki: page titles won't resolve"

Referencing pages in a specific category

2 (talkcontribs)

Assume I have the following wiki pages:

  • United States
  • Sweden
  • France

  • Buick (Referencing US in the first line) (Category:Cars)
  • Saab (Referencing Sweden) (Category:Cars)
  • Volvo (Referencing Sweden) (Category:Cars)
  • Renault (Referencing France) (Category:Cars)

I would like the country pages to automatically list all cars pages created for this country. I know a page is a car page by the fact it belongs to the Cars category.

Is there some automatic way to do it? Maybe some php scripting?

Ciencia Al Poder (talkcontribs)

You'll need an extension for that.

Extension:DynamicPageList may help achieving this, if Referencing Sweden means having Category:Sweden, or Category:Cars of Sweden, etc.

Extension:Semantic MediaWiki can be helpful too although the results can't be included on the same page AFAIK.

Reply to "Referencing pages in a specific category"

Major SPAM problem even after reCaptcha is installed

5 (talkcontribs)

Dear all,

I am having big problems SPAM. I have a wiki on my website in order to document things relating to the subject of the website. The trouble is that when I put the wiki live and refresh the page with in one minute I see that the main page has already had 100 views. With in a few days I have a view count of 18000.

If I go to the recent changes page, I can see tons of bogus accounts being made and loads of spam pages being created.

Here is a link to the sick wiki...

I have installed reCaptcha and edited the user permissions so that only registered users can post, however my walls are still being breached!

Many thanks in advance.


MarkAHershberger (talkcontribs)

There was a particularly good message about this on mediawiki-l the other day: "Our wiki has been spam-free for over a year now, despite anonymous editing being allowed..."

MarkAHershberger (talkcontribs)

A logo and Short URL would help your wiki quite a bit. Also, I added your wiki to WikiApiary. (talkcontribs)

Thanks a million Mark!

The issue I have is that even when I install reCaptcha, or QuestyCaptcha I am still getting thousands of page views per day...

One theory that I have is many accounts were created before I installed these counter spam measures, so perhaps it is these accounts that are giving grief?

In any case the existing wiki will be deleted and reloaded, the reason there is no logo, images or additional pages is that I wanted to make sure the wii was working and would not need to be destroyed. Will that affect WikiApiary?

Best regards,


MarkAHershberger (talkcontribs)

If it uses the same URL, WikiApiary should be fine.

Reply to "Major SPAM problem even after reCaptcha is installed"
RickyB98 (talkcontribs)

I just installed mediawiki and I noticed that after opening a <code> tag I can't close it anymore with </code>... What can I do?

MarkAHershberger (talkcontribs)

Can you link to an example? I've never seen this before.

RickyB98 (talkcontribs)

it is a fresh mediawiki installation... I just type in <code>, when I type </code> it doesn't stop formatting the text as code, but just shows </code> on the page... if you want to try this, go to (account creation needed)

AKlapper (WMF) (talkcontribs)

After trying to create an account I already get an error, so I guess there are enough other issues to solve:

Errore del database Vai a: navigazione, ricerca Errore di sintassi nella richiesta inoltrata al database. Ciò potrebbe indicare la presenza di un bug nel software. L'ultima query inviata al database è stata:

   (la query SQL è stata nascosta)

richiamata dalla funzione "SpoofUser::getConflicts". Il database ha restituito il seguente errore "1146: Table 'my_programmpc.mw_spoofuser' doesn't exist (localhost)".

AKlapper (WMF) (talkcontribs)

After trying to create an account I already get an error, so I guess there are enough other issues to solve:

Errore del database Vai a: navigazione, ricerca Errore di sintassi nella richiesta inoltrata al database. Ciò potrebbe indicare la presenza di un bug nel software. L'ultima query inviata al database è stata:

   (la query SQL è stata nascosta)

richiamata dalla funzione "SpoofUser::getConflicts". Il database ha restituito il seguente errore "1146: Table 'my_programmpc.mw_spoofuser' doesn't exist (localhost)".

RickyB98 (talkcontribs)

this should be a bug of the AntiSpoof extension, but if I remove it, I won't be able to run abusefilter. I don't have shell access. do you have a sql file I can import on the database to create the needed tables?

RickyB98 (talkcontribs)

ok, solved. now you can create an account. I also have a problem with abusefilter, after resolving this one, i'll ask you about that too.

AKlapper (WMF) (talkcontribs)

Works for me when entering



no code anymore.

on your wiki. Cannot reproduce.

Reply to "</code> not working"
Lunablues (talkcontribs)

how to insert a name as Glenn John but have an equivalent John Glenn, and how to do for insert automatically this name into a biography for example but also in an other category ? (talkcontribs)

Do you say that you cannot have two articles, one called "Glenn John" and the other one called "John Glenn"? I don't see a problem here. That should work...

Lunablues (talkcontribs)

no, i want to put an entry Glenn John but also know as John Glenn (talkcontribs)

So what you want is a redirect from "John Glenn" to "Glenn John"?

Lunablues (talkcontribs)

yes manually it's not difficult, but hot to do automatically and how to insert this entry automaticaly in a other list, for referring all the name taken in template biography for example ? (talkcontribs)

I don't think there already is a way to do that automatically. But you could try write one on your own. Hooks are your friend. You could pick a hook, which is executed when someone has succesfully created a new page, then inside that hook check the page object, take the page title out of it, create another page with flipped name and set the page content to #REDIRECT[[<old name here>]].

In the above idea you might need some more code, if this stuff should not be applied to all pages; maybe do it only if the new page is in a certain namespace or so...

Reply to "Person Name and Name person"

AccessControl extension can't be used on Medawiki 1.2x or later version

Oruggt (talkcontribs)

MediaWiki 1.9x seems the last version that can use AccessControl (v2.1). Is there any alternative extension? or is there any news about this extension to upgrade?

Reply to "AccessControl extension can't be used on Medawiki 1.2x or later version"