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

How to make UploadWizard fields unrequired?

Tribly (talkcontribs)

I installed UploadWizard extension on my wiki and everything seems to be working fine, but I stuck with tinkering with it's configuration. How do I setup in $wgUploadWizardConfig in the LocalSettings.php to make the "Source" and "Author(s)" fields and other required fields unrequired? We upload a lot of memes from the internet to our wiki and the wast majority of those memes have unknown authors or just unoriginal, Those required fields also slow down the upload time of our images.

Reply to "How to make UploadWizard fields unrequired?"

Exception encountered, of type "LocalFileLockError"


Whenever I want upload new image I get this error.

Exception encountered, of type "LocalFileLockError"

Ubuntu Server (Apache2) (talkcontribs)

In which wiki is this happening?

Which version of MediaWiki is this wiki using?

(Possibly T135485, T132921...)


Newest one (talkcontribs)

What is the "newest version"? Is that 1.27, which is the newest LTS version? Or 1.28wmf..., which is the newest point release? Or even something completely different, because you installed this from some strange repository, which only has outdated stuff anyways?


1 2 7 (talkcontribs)

Had the same issue but it was only a permission problem. MediaWiki was not able to write to the images subdirectory. Could be the same issue on your system.

Nicolas NALLET (talkcontribs)

try to put www-data as owner recursively

chown -R  www-data images (talkcontribs)

Same problem here. We don't have a www-data user or group (talkcontribs)

How do I fix this? When I try to upload an image on 1.27 I get the same "Exception encountered, of type "LocalFileLockError":

Already had issues with caching which I was able to resolve.

Reply to "Exception encountered, of type "LocalFileLockError""

Mediawiki/php:add an icon to my wiki

נועם ימיני (talkcontribs)

I use mediawiki 1.27.0 and I want to add an icon to my wiki, like the 'W' on Wikipedia.

How can I do it? (talkcontribs)

In your LocalSettings.php, set the $wgLogo with the correct path to your image.

$wgLogo = $wgScriptPath . '/images/4/47/mylogo.png';
2002:43F4:3ABB:1234:6057:F7D0:17AF:F4C3 (talkcontribs)

@נועם ימיני, Specify "$wgFavicon" to the ".ico" file of your choice in LocalSettings.php.

@, they mean the site icon, not the logo.

נועם ימיני (talkcontribs)

I installed description2 on my wiki and I saw that if I don't add a metadesc tag there is an auto description.

how can I edit it?

Reply to "description2 extension"
Nanoukaplus (talkcontribs)


I've got a query #ask using the format template, with a template and an introtemplate.

In my introtemplate I want to use some parameters of my #ask for example :


used as


on my introtemplate.

It doesn't work... And of course I use named args = yes

Help please ? Does anyone know why it doesn't work ? Because in a "normal" template it does

Reply to "Ask and introtemplate"

Display images in a query

Summary by Nanoukaplus

Use #if instead of #ifexist (too expensive)

Nanoukaplus (talkcontribs)


I made a query to display images, but if I want more than 100 results in my page, the last images aren't displayed even if they exist.

Does someone know why ? (talkcontribs)

I can't display the images

Nanoukaplus (talkcontribs)

Anybody has an answer ? :(

Malyacko (talkcontribs)

Please reply exact steps to reproduce the problem ("a query to display images" is a bit vague) and MediaWiki version information.

Nanoukaplus (talkcontribs)

On my page I have this code :

{{#ask:|mainlabel=-|?=Objet|?photo droite=Photo|?ref dossier=ref dossier|sort=Modification date|format=template|introtemplate=Header accueil objets|template=Accueil objets|outrotemplate=Table footer|default=Aucun objet existant avec ces critères|named args=yes}}

and on my template "Accueil objets" there is

<nowiki><includeonly>|{{{?Objet}}}|{{#ifexist: File:{{{?Photo}}}|[[File:{{{?Photo}}}|150px]]|Fichier inexistant}}|{{{ref dossier}}}</nowiki>

and I use MediaWIki1.21.2

Collection Extension : setting $wgScriptPath

1 (talkcontribs)

The actual documentation of Collection Extension mention that we should change the "base_url" variable in the function renderCollection of extensions/Collection/Collection.body.php file if changing $wgScriptPath messes up our site (obviously it does).

As there is no "base_url" in the last version of Collection for Mediawiki 1.27 (in Collection.body.php file) and because the issue mentioned date from 2012, and because the code presented in the proposed fixed is completely different from the one that I downloaded here (link from the official Collection Extension page), I wondering if it is still relevant and necessary ?

If someone can tell me which one is the good one, which one is up to date and which one is obsolete.

I hope it will help you to put the documentation up to date !


Reply to "Collection Extension : setting $wgScriptPath"
Tribly (talkcontribs)

When I was browsing the gallery tag page of Wikipedia I just noticed there is a slideshow there for the mediawiki gallery, which I found strange because I thought slideshows aren't natively supported in the MediaWiki galleries. I also tried out it's code here on this wiki on the Sandbox page to test if it's working here as well, and it's working fine, but when I tried it on my own wiki it doesn't seem to work. What should I do to enable this functionality on my wiki? My wiki's version is 1.27(LTS).

Example of the slideshow code I found:

<gallery mode="slideshow">
File:Detroit Publishing Co. - A Yeoman of the Guard (N.B. actually a Yeoman Warder), full restoration.jpg|A Yeoman Warder, from a Victorian-era [[photochrom]]
File:Official_program_-_Woman_suffrage_procession_March_3,_1913_-_crop.jpg|The Official program of the 1913 Woman Suffrage Procession held in Washington, D.C.
File:Thurston, the famous magician - East Indian Rope Trick.jpg|[[Howard Thurston]] performing the [[Indian rope trick]]
File:Joseph Ferdinand Keppler - The Pirate Publisher - Puck Magazine - Restoration by Adam Cuerden.jpg|"The Pirate Publisher", a satire of copyright infringement from the magazine [[Puck (magazine)|Puck]].
</gallery> (talkcontribs)

The feature isn't available in a release version yet, you will have to wait for 1.28.

AhmadF.Cheema (talkcontribs)

I'm using MediaWiki version 1.28.0-alpha (5726c9c) - 09:18, 12 July 2016

The "slideshow" mode isn't working for me on this version either.

Is it possible that some additional .js might be involved? I wasn't able to find anything related on Wikipedia. (talkcontribs)

It was called "slider" then. af7ffaeeecd1, committed merely hours after the revision you are using, renamed it to "slideshow".

AhmadF.Cheema (talkcontribs)

And here I was wasting my time trying to find any missing files. Talk about unfortunate close calls.

Anyway, thanks.

Reply to "MediaWiki gallery slideshows"
Piero Caracciolo (talkcontribs)

We would like to start a wiki about Berlin and its history. For the moment we would like to be master of our content, that is we would like anyone to be able to read it, but only members of our group to be enabled to write/edit pages. Is it possible to achieve it with MediaWiki? Is that a possible Preference? Daoes it depend on MediaWiki or on the wiki farm?

Will it be possible to change the name of our wiki in the future?

Fokebox (talkcontribs)

Yes, it is possible, you should set preferences for new registrations by admin and set, that only authorised users can create and edit articles. All this should be done in Localsettings.php file

# Permissions
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;

What do you mean to change the name of Wiki? the domain name or name of the wiki. Just name can be changed at any time in Localsettings.php file

This comment was hidden by AhmadF.Cheema (history)
Reply to "Is MediaWiki adapted to our project?"

How do I always have an image for my article when I share it?

Tribly (talkcontribs)

A lot of times when I share my articles on Facebook it either doesn't have an image or when it does it gets an image from either the middle of the page or from the bottom of the page. I tried installing the OpenGraphMeta extension and adding it's code to my infoboxes but it doesn't have any effect. I also checked the head of my pages and they doesn't have an og:image in the meta tags. What should I do in order to have the first image on my page in my posts every time I share my articles?

Stefahn (talkcontribs)

How wide is your first image? I know that, when it's below 300 pixel, chances are Facebook won't take it.

Tribly (talkcontribs)

Every infobox image on our wiki is set to have a width 280px, but those images are usually much bigger than 280px. Also, on pages that don't have an infobox the top image is usually set to be bigger than 280px, and just like with the infoboxes, the image that is linked there is much bigger originally than 280px.

Also, I have modified 47 line of the OpenGraphMeta.php of the OpenGraphMeta extension from Title::newFromDBkey($data['dbkey'], NS_FILE) to Title::newFromText($data['dbkey'], NS_FILE) and the og:image in the meta tags seems to apear now, but it still not willing to use the infobox image for a few pages, even though the image given in og:image is bigger than 300px.

Stefahn (talkcontribs)

Are you sure Facebook sees the newest version of your page? You can use to "scrape again".

Reply to "How do I always have an image for my article when I share it?"