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
Aeroid (talkcontribs)


I'm hacking a little gadget for Wikidata and would like to use "sortable" tables. Just declaring the tables

class="wikitable sortable"

doesn't cut it, as the jQuery events would still need to get registered. Any hint how I could re-do that after I wrote my table into the DOM? (talkcontribs)

Call $().makeCollapsible() on it.

Aeroid (talkcontribs)

Thanks, that's the kind of method I was looking for. But it makes it collapsible, not sortable. I was looking looking around in jquery.tablesorter.js for something similar, but there is just nothing like that. Any other suggestion?

Aeroid (talkcontribs)

found it myself...

var sortableTables = $('table.sortable');

if (sortableTables.length) {

mw.loader.using('jquery.tablesorter', function () {




Reply to "Making tables sortable"

Creating a Mediawiki link with HTML code as text

This comment was hidden by (history)
This comment was hidden by (history) (talkcontribs)

I have created a table inside my template, using the Mediawiki programming language as explained in the documentation. In the table cells are an image and a text. Now I would like to make the whole table clickable, so that it links to a different page. To do this I use the wiki syntax and define the page, where the user should get referred. Then using the Pipe-character, I set the table code instead of a standard text.

Unfortunately, only the table gets displayed, while the source code of the Link syntax gets print out as a text. Is there a fix you can recommend me?

Here is my source code:

[[:Category:{{{1|}}} Products|
|Order our apples

This should be the html code it should generate:

<a href=""
               <div class="floatleft">
                     <img src="">
                 Order our apples
</a> (talkcontribs)

Block content is not allowed inside inline content, additionally links can't contain links, so even without the table it would never work.

Reply to "Creating a Mediawiki link with HTML code as text"
Hasenläufer (talkcontribs)

When I call "Special:UnusedFiles" at my MediaWiki installation I got erroneously results: files which are in use. The wrong mentioned files (which are in use) have suffixes ".pdf" and ".ged", not the most usual files with suffixes like .jpg/.png/.bmp/...

How can I avoid this? --~~~~ (talkcontribs)

The UnusedImages page uses the database tables images and imagelinks and possibly some others depending on the value of $wgCountCategorizedImagesAsUsed.

You can update that data by running the maintenance script rebuildall.php to refresh the data in the according tables!

Hasenläufer (talkcontribs)

Thanks for the reply. I tried the mentioned rebuild, without success. Then I set the value $wgCountCategorizedImagesAsUsed to "true" and let another rebuild run; again: without success. (talkcontribs)

Files are only counted as used if they are embedded ([[File:]]), or directly linked to ([[Media:]]) in a page. Just linking to the file page ([[:File:]]) doesn't count.

Reply to ""UnusedFiles" are in use"

How do i change the image licensing ??

C300g97 (talkcontribs)

i've uploaded a photo to update a wikipedia page, but it seems that i've selected the wrong license, from the one you can choose from the menu of those that are NOT content of your own, it's the common 4.0 I'm not sure if i can use it, even thoug i've described and linked the real author. Help!!!! (talkcontribs)

You can fix the wrong licensing information by editing the image page. Just change it to the correct license.

C300g97 (talkcontribs)

How do i put the right license, i mean i'm noob on this website, can you paste here the corret phrase to edit it? I mean, the phrase of the last license , ''the one you took from the internet'', between the parenthesis. (talkcontribs)

Since you mentioned "Commons 4.0", the correct template for the Creative Commons 4.0 license is {{cc-by-sa-4.0}}.

If you select "I found the image on Google or a random website", then there will not be a license template inserted. Instead, there will be a note that the image is missing information on its license.

You need to know the name of the license to use! Which one is it? Without an appropriate license, the image cannot be used on Wikimedia Commons.

C300g97 (talkcontribs)

I have no license, and not asked for any. I've just put the image on the commons, describing the real author.

I don't know what my situation is right now :( (talkcontribs)

When the author of the image published it, he most likely did in some way provide the license under which he does that. That does not mean that he has to grant you the right to use the file; he only needs to tell under which license he provides the image. If he is a commercial photographer, he will most likely use a license, which does not allow others to use his work free of charge.

If the license can be determined, it either allows using the image on Commons or it does not.

Anyway, if the license cannot be determined, the image cannot be used on Commons and will sooner or later be deleted from there again. That is the situation.

C300g97 (talkcontribs)

He is a photographer that works for a small journal, he published the image there, and this image has been used almost anywhere, on all socials (posted by important and relevant pages), and on other journals or in tv services. So my guess is that it does use the license creative commons 4.0 (talkcontribs)

I'm aware that in my last post I kind of guessed myself. However, guessing does not help. Maybe he had contracts with photo agencies, which again had contracts with major newspaper allowing them to use the image. Others however might just have used it without ever having been allowed to do so. Even if that should have been the case, it does not make others' illegal actions any better. It all boils down to this: If the license is unknown, the image cannot be used and will be - or at least: should be - deleted from commons.

C300g97 (talkcontribs)

How do i delete the image? (talkcontribs)

You cannot delete it yourself, but you can request deletion by adding a delete template on the image page, e.g. like so:

{{delete|1=License unknown, image possibly not usable here}}
C300g97 (talkcontribs)

Many thanks to you, you've helped me in many ways, and with much kindness.

Reply to "How do i change the image licensing ??"

Trouble transcluding Wikipedia content into a private wiki

Mrhappy888 (talkcontribs)

MediaWiki 1.24.1 PHP 5.4.36-0+deb7u3 (apache2handler) MySQL 5.5.40-0+wheezy1


I'm trying to pull the introductions from some Wikipedia articles into a private wiki. I've installed the Labeled Section Transclusion Extension and set iw_trans and iw_local to true for the wikipedia entry. Then, in the appropriate pages, I've included something like:

{{#lsth:wikipedia:Wikimedia Foundation}}

But, instead of transcluding the content, all I get is a link the article.

What am I doing wrong? Is there a better way to pull in Wikipedia content (it needn't necessarily be kept up to date).

This, that and the other (talkcontribs)

Have you set Manual:$wgEnableScaryTranscluding to true?

It's possible that Labeled Section Transclusion doesn't support cross-wiki transclusion. Does {{wikipedia:Wikimedia Foundation}} work correctly?

Jarble (talkcontribs)

A cross-wiki transclusion feature was proposed in 2008, but it is not yet implemented.

This, that and the other (talkcontribs)

Cross-wiki transclusion ("scary transcluding") exists, but is not performant and is disabled on most MediaWiki installations. As I noted above, it's likely that Labeled Section Transclusion doesn't support cross-wiki transclusion at all.

Reply to "Trouble transcluding Wikipedia content into a private wiki"
Koalopete (talkcontribs)

I set $wgGroupPermissions['user']['edit'] = false; but they still can move the page. The docs say that "move" requires the edit right. What am I doing wrong? Thanks (talkcontribs)

Maybe the docs are wrong?

Koalopete (talkcontribs)

I don't know. That is why I am asking here.

Music1201 (talkcontribs)

@Koalopete Try adding the following to LocalSettings:

$wgGroupPermissions['user']['move'] = false; (talkcontribs)

Note that permissions from $wgGroupPermissions are cumulative: If the user is member of only one single group, which grants him the edit right, then setting the move right to true for another of the user's groups will effectively allow him to move pages - even if for that group, where the move right comes from, the edit right has been set to false.

Reply to "How to exclude users from "move""
Music1201 (talkcontribs)

I have a wikifarm of 3 wikis, and i'm trying to create a "Steward" user group that can change rights on all Wikis. So I assigned the 'userrights-interwiki' right to the steward group (on the "meta-wiki") and gave myself steward rights, although I don't know how I change rights on other wiki's because my Wikifarm is using a shared database with 3 table prefixes. Is it possible to change interwiki rights when I'm using prefixes instead of databases?

Reply to "Interwiki rights"
Koalopete (talkcontribs)

Hi, my wiki produces this error. The cache directory is empty. I have no clue how to debug it. I cant remember setting a **magic word** anywhere.

1.26.2 PHP 5.6 MySQL 5.5

Vorhandenes Wiki

[1ae0606c] /manager/mw-config/?page=ExistingWiki MWException from line 337 of /var/www/virtual/ Error: invalid magic word 'noglossary'


  1. 0 /var/www/virtual/ MagicWord->load(string)
  2. 1 /var/www/virtual/ MagicWord::get(string)
  3. 2 /var/www/virtual/ MagicWordArray->getBaseRegex()
  4. 3 /var/www/virtual/ MagicWordArray->getRegex()
  5. 4 /var/www/virtual/ MagicWordArray->matchAndRemove(string)
  6. 5 /var/www/virtual/ Parser->doDoubleUnderscore(string)
  7. 6 /var/www/virtual/ Parser->internalParse(string)
  8. 7 /var/www/virtual/ Parser->parse(string, Title, ParserOptions, boolean)
  9. 8 /var/www/virtual/ Installer->parse(string, boolean)
  10. 9 /var/www/virtual/ WebInstaller->getInfoBox(string)
  11. 10 /var/www/virtual/ WebInstallerExistingWiki->showKeyForm()
  12. 11 /var/www/virtual/ WebInstallerExistingWiki->execute()
  13. 12 /var/www/virtual/ WebInstaller->execute(array)
  14. 13 /var/www/virtual/ wfInstallerMain()
  15. 14 {main} (talkcontribs)

You are using an extension, which adds the magic word "noglossary" to MediaWiki. You have to find out, which extension that is and update it for MediaWiki 1.26. From your extension list, extension Semantic Glossary and especially extension Lingo are two candidates. If I were to guess, I would say it's Lingo. (talkcontribs)

Ah and please make sure that you are updating to MediaWiki 1.26.3, not to MediaWiki 1.26.2. You are currently running 1.26.2, which since yesterday contains known security holes.

This comment was hidden by (history)
Koalopete (talkcontribs)

Thanks. But I installed the Lingo 2.0 and now my wiki is dead. It says "Semantic Glossary depends on the Lingo extension. You need to install Lingo first." But it is installed altough the file structure looks very suspecious to me, e.g. why would I put .gitignore on my server or src or .travis.yml and the like. General question: Why do the extensions and the mediawiki itself not update with a simple button click like Piwik or Joomla?

Koalopete (talkcontribs)

I was able to update to 1.26.3 by disabling LIngo during the process. But that still does not solve the problem with the weird file structure of Lingo 2.0 which prevents me from updating that extension. (talkcontribs)

I am no expert in regards to the Lingo extension, but after checking the Git repository, I think that Stephan Gambke should be able to tell you more...

Koalopete (talkcontribs)

Thanks. Stephan Gambke made an update. I reinstalled the MLEB and now it works.

Reply to "invalid magic word 'noglossary'"
JFokker (talkcontribs)

Working on this website:

I migrated it from

The has text on the frontpage (from different pages). It doesn't show on

Any idea what is going on? (talkcontribs)

Two questions:

  • What is it that you are missing?
  • How have you moved the wiki? Have you exported/imported the data or have you copied the complete database with a tool like mysqldump? Using something like mysqldump is recommended. (talkcontribs)

You used a different name for the project namespace (Keukenwiki instead of WoonWerkWiki).

Reply to "Some images and text not showing"

 Downloading SyntaxHighlight 1.26 not working -> 404

2 (talkcontribs)

Downloading SyntaxHighlight 1.26 not working -> 404 (talkcontribs)

Yes, I see that as well. The SHA hash of the commit is the one of the newest commit, from May 18th at this time. But the link is broken.

Maybe this has to do with the fact that the extension has been renamed from SyntaxHighlight_GeSHi to SyntaxHighlight? The repo however has not been renamed (yet)...

Please open a bugreport in Phabricator so that someone who knows can have a look!

Reply to " Downloading SyntaxHighlight 1.26 not working -> 404"