Project:Support desk

Jump to navigation Jump to search

About this board

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

There are also other places where to ask :

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".
Previous page history was archived for backup purposes at Project:Support_desk/old on 2015-07-30.
Other languages: English  العربية čeština Esperanto français 日本語 中文
Usda-mark (talkcontribs)

Hello, I am trying to migrate from Mediawiki 1.18.0 to 1.33.0, PHP 5.3.10, MySQL 5.5.16. Our Wiki restricts all access to valid LDAP users. I am trying to convert to the new LDAP extensions LDAPProvider, PluggableAuth and LDAPAuthentication2 with the Special:UserLogin. The login page is not allowing me to select the domain, like it is only allowing a local login. I have set $LDAPAuthentication2AllowLocalLogin = false. Have debugging going to $wgDebugLogFile but don't see anything that could be the issue. Would appreciate any help. Thanks!

Reply to "LDAP stack"
Soif2020 (talkcontribs)


As part of a professional project, we need the following information.

What is the ECCN (CECC) of MediaWiki?

Thank you in advance for your feedback.

Ciencia Al Poder (talkcontribs)

What is ECCN (CECC) in the first place?

Malyacko (talkcontribs)

@Soif2020 What is "ECCN (CECC)", and what makes you think that MediaWiki should or would have "a ECCN (CECC)"?

Soif2020 (talkcontribs)

Export Control Classification Number (ECCN) : A key in determining whether an export license is needed from the Department of Commerce is finding out if the item you intend to export has a specific Export Control Classification Number (ECCN). ECCNs are five character alpha-numeric designations used on the Commerce Control List (CCL) to identify dual-use items for export control purposes.  An ECCN categorizes items based on the nature of the product, i.e. type of commodity, software, or technology and its respective technical parameters.

Does MediaWiki have an ECCN?

Malyacko (talkcontribs)

@Soif2020 That makes me curious how you intend to "export" MediaWiki.

MarkAHershberger (talkcontribs)

I don't think an ECCN makes sense for any freely-available software. Could an ECCN designate that there are no export controls?

Reply to "ECCN (CECC)"

Different result from "same" API queries

Petr Doktor (talkcontribs)

I got into troubles with this queries:

the query above gives resul with distance, lon and lan but without page image which I'd like :-)

this query gives result with images url but mostly without lan and lon of GPS coordinates...

Naturally, I would prefer to combine them - get a full list of pages with both position and image... Any advice appreciated :)

Ciencia Al Poder (talkcontribs)

I see the same URL and the same results...

Znotch190711 (talkcontribs)

Did you post to Phabricator?

Bawolff (talkcontribs)

copy/paste error?

Petr Doktor (talkcontribs)

they are not same - first 10 have coordinates array... the otthers not :(

Bawolff (talkcontribs)
Znotch190711 (talkcontribs)

What's an API query anyways?

Petr Doktor (talkcontribs)

Thank you guys! Now it works - I used Bawolff's query. I guess it was connected with the API limits. Final product you can check here: I hope it will be useful.

Reply to "Different result from "same" API queries"
Frchdel4 (talkcontribs)


I have a problem with my files uploading via VisualEditor. I can upload files from normal way (Special:Import), but when I want to upload from VisualEditor, this warning appears :

"Impossible to stock upload in the (Uploadstashbadpathexception) : "the key XXX.jpg" is not in a correct file format".

I have sometimes another error : "one of parameter Filekey, File and url is mandatory".

(I am traducing from French, maybe it is not the specific words in english version).

Do you have any idea? I checked this topic, but maybe there is another way to modify this, because it was working before (I don't see what I changed before this error).

My Wiki version is 1.31.0.

Thank you for your support,

MarkAHershberger (talkcontribs)

I assume you mean Special:Upload which is used for uploading jpegs and the like, not Special:Import which is used for importing wikitext.

What you provide as "'the key XXX.jpg' is not in a correct file format" sounds like uploadstash-bad-path-bad-format which, in French, would be "La clé « XXX.jpg » n’est pas dans un format correct." Is that the message you're seeing?

MarkAHershberger (talkcontribs)

Upgrading to 1.31.2 should be easy, though, so you should do that.

Reply to "Uploadstashbadpathexception"

Collection Extension: Images/Graphics no longer included

Ablum010777 (talkcontribs)

When I generate a PDF document from an article from one of our wikis, the images are no longer included. Did anything change within the Collection extension? How can I configure the Collection extension to have images included in the PDFs again?

Malyacko (talkcontribs)

@Ablum010777 Please explain what you did before images got no longer included, plus provide basic version information for both MediaWiki itself and the Collection extension.

Reply to "Collection Extension: Images/Graphics no longer included"

PHP Fatal error: Cannot declare class SemanticScribunto, because the name is already in use inSemanticScribunto/SemanticScribunto.php on line 15

2 (talkcontribs)

I ran composer to update my Wiki and I seem to have broken it as all pages are showing a 500 error.

I checked my error logs and can see the following.

PHP Fatal error:  Cannot declare class SemanticScribunto, because the name is already in use in /extensions/SemanticScribunto/SemanticScribunto.php on line 15

Any ideas what could have cause this? I tried to remove references to SemanticScribunto in the LocalSettings.php file but it didnt help

MarkAHershberger (talkcontribs)

Did you upgrade the SemanticScribunto extension? It looks like you should have v 2.1.0 installed.

Reply to "PHP Fatal error: Cannot declare class SemanticScribunto, because the name is already in use inSemanticScribunto/SemanticScribunto.php on line 15"
LP371906 (talkcontribs)

is it possible to add .msg files as attachments?

i entered the file extension (.msg) in localsettings.php and at $wgFileBlacklist in DefaultSettings.php i don't find the file extension.

Malyacko (talkcontribs)

Attachments to what exactly, and how?

LP371906 (talkcontribs)

I would like to add an attachement to a newly created page.

I can add an image to the page, but not a mail.

LP371906 (talkcontribs)

i have configuted localsettings.php like this.

All files are working, except 'msg'

You can add $wgFileExtensions in LocalSettings.php to allow uploads of other desired file types. For example, you can change the $wgFileExtensions line to look something like

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc',
    'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx',
    'pptx', 'ps', 'odt', 'ods', 'odp', 'odg' , 'msg'
AhmadF.Cheema (talkcontribs)

What error do you receive? (talkcontribs)


in German "Der Dateiname ist nicht zulässig" , means "the file Name is not allowed".

Ciencia Al Poder (talkcontribs)
LP371906 (talkcontribs)

now i receive this error.

"This file did not pass the file check"

Reply to ".msg attachments"
LP371906 (talkcontribs)


i have 2 different wikis on one server: and

i use the LocalSettings.php to redirect to the individual wikis.

these are created separately as LocalSettings_wiki1 and LocalSettings_wiki2.

i have the problem that i can't link categories with "wiki2" anymore.

i can create categories, but the link doesn't work anymore.

with wiki1 everything works fine.

when i create a new page and want to assign it to a category, i can't select the categories.

Does anyone know how to fix this?

Ciencia Al Poder (talkcontribs)

What do you mean by "I can't select the categories"? Do you mean using the mouse to select the text of the category? The link? the title?

LP371906 (talkcontribs)

i'm editing a page and then i want to add categories, but they don't appear in the editior

LP371906 (talkcontribs)

in Options - Categories

I can't find the category

in the navigation menu all created categories are available

LP371906 (talkcontribs)
Ciencia Al Poder (talkcontribs)

Ok, so you mean that option in the Visual Editor.

What do you mean by "linking categories"? Do you mean categories of wiki 2 will redirect users to wiki 1? Both wikis share the same categories?

LP371906 (talkcontribs)


yes, it is in Visual Editor.

but there are no Links. Maybe the synchronisation of the new categories will not work.

Wiki1 is working normally.

Ciencia Al Poder (talkcontribs)

If the category page doesn't exist on wiki 2, it will probably not appear at all and you must create it first

LP371906 (talkcontribs)

they are created and also listed on "Category Page".

but when I will edit a Page in the VisualEditor, the categories are not available.

wiki1 is working normally.

Reply to "Category connect with 2 wikis"

How can correctly configure TinyMCE extension?

Monocero (talkcontribs)


I want to use the TinyMCE editor, I unpacked the directory called mediawiki-extensions-TinyMCE-0.3 and changed the name to TinyMCE-0.3. I uploaded this directory to extensions and added this line to LocalSettings.php: wfLoadExtension( 'TinyMCE' ); Extension:TinyMCE and when I want to create a new page, a blank white page is displayed. I have no idea what to do with it:

"To get TinyMCE working within textarea inputs in forms defined by Page Forms, you must use Page Forms version 4.3 or higher. Then, add "|editor=tinymce" to the field tag for any textarea input that you want to have editable with TinyMCE".

Please help me.

AhmadF.Cheema (talkcontribs)

Rename TinyMCE-0.3 to TinyMCE.

Also, the blank page probably appears everywhere now, and not just on creating a new page.

If this doesn't work, try re-downloading the extension from the more commonly used link: Special:ExtensionDistributor/TinyMCE.

Monocero (talkcontribs)

After renaming the directory, the white page is no longer displayed, but I don't see the new editor, I still see the WikiEditor.

AhmadF.Cheema (talkcontribs)

That's strange.🤔

First, can you confirm that TinyMCE is being displayed in Special:Version. Second, open the edit page of any Main namespace article. In the URL, replace edit at the end with tinymceedit.

Does TinyMCE show up here?

If not, try re-downloading the extension from the more commonly used link for your particular MediaWiki core version: Special:ExtensionDistributor/TinyMCE.

Monocero (talkcontribs)

TinyMCE is displayed in the Other section, it is not displayed in the Editors section. CodeEditor and WikiEditor are displayed in the editors section in Special:Version. And in page editing this editor displays correctly, but when I want to create a new page, this editor does not display in the CreatePageUw extension.

AhmadF.Cheema (talkcontribs)
Monocero (talkcontribs)
Monocero (talkcontribs)
Reply to "How can correctly configure TinyMCE extension?"
Gmlacey (talkcontribs)

Using 1.32.0, my site was working a month again as intended, and then suddenly last week, one of my site pages began responding with an Internal Error. I have restored various backups of the site, and even entirely deleted it and restored from another backup, but nothing is working.

The error reads as follows and results in a blank MediaWiki-style page below the error:

Internal error

[XMQ2RPfRGVIevKUl2Uqb9wAAAkQ] 2019-04-27 11:00:20: Fatal exception of type "Error"

Upon refreshing the page, the seemingly random letters in brackets all change (as well as the time next to to), but the error is never more specific. Any help please!

Gmlacey (talkcontribs)

Some more Googling told me to add some lines to LocalSettings.php to get a more specific error report, which now results with:

[XMQ5m6UBOIo6oieTYFmH0gAAAUE] /Expeditions Error from line 155 of /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/SimpleStyleParser.php: Class 'JsonSchema\Validator' not found


#0 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/SimpleStyleParser.php(77): Kartographer\SimpleStyleParser->validateContent(array)

#1 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/SimpleStyleParser.php(58): Kartographer\SimpleStyleParser->parseObject(array)

#2 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/Tag/TagHandler.php(144): Kartographer\SimpleStyleParser->parse(string)

#3 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/Tag/TagHandler.php(119): Kartographer\Tag\TagHandler->parseGeometries(string, Parser, PPFrame_DOM)

#4 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/Tag/TagHandler.php(99): Kartographer\Tag\TagHandler->handle(string, array, Parser, PPFrame_DOM)

#5 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(3968): Kartographer\Tag\TagHandler::entryPoint(string, array, Parser, PPFrame_DOM)

#6 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Preprocessor_DOM.php(1364): Parser->extensionSubstitution(array, PPFrame_DOM)

#7 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(3014): PPFrame_DOM->expand(DOMElement, integer)

#8 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(1350): Parser->replaceVariables(string)

#9 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(476): Parser->internalParse(string)

#10 /home/w2b8ugyz85we/public_html/wiki/includes/content/WikitextContent.php(341): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)

#11 /home/w2b8ugyz85we/public_html/wiki/includes/content/AbstractContent.php(517): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)

#12 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RenderedRevision.php(242): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)

#13 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RenderedRevision.php(211): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)

#14 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RevisionRenderer.php(175): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)

#15 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RevisionRenderer.php(128): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)

#16 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)

#17 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RenderedRevision.php(175): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)

#18 /home/w2b8ugyz85we/public_html/wiki/includes/poolcounter/PoolWorkArticleView.php(194): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#19 /home/w2b8ugyz85we/public_html/wiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()

#20 /home/w2b8ugyz85we/public_html/wiki/includes/page/Article.php(774): PoolCounterWork->execute()

#21 /home/w2b8ugyz85we/public_html/wiki/includes/actions/ViewAction.php(68): Article->view()

#22 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(501): ViewAction->show()

#23 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#24 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(860): MediaWiki->performRequest()

#25 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(517): MediaWiki->main()

#26 /home/w2b8ugyz85we/public_html/wiki/index.php(42): MediaWiki->run()

#27 {main}

Gmlacey (talkcontribs)

Disabling the Kartographer extension allowed me to view the broken page, although (of course) the aspects of the page that use Kartographer didn't work. I deleted the extension and re-installed it, but then the same original problem persists.

AhmadF.Cheema (talkcontribs)
Gmlacey (talkcontribs)

The extension shows MediaWiki 1.27+ and PHP 5.5+.

My site is MediaWiki 1.32.0 and PHP 7.2.16 (litespeed).

AhmadF.Cheema (talkcontribs)
Gmlacey (talkcontribs)

Oh sorry, I downloaded from the same link you provided and used 1.32.

AhmadF.Cheema (talkcontribs)

That probably means the 1.32 version of the extension has not been updated to work with MediaWiki 1.32. Try using the master version and see if that works.

Gmlacey (talkcontribs)

Thank you. So I did try the master version, which resulted in the same. But I did learned that the Kartographer extension now apparently requires the installation of Extension:JsonConfig, which I also installed, yet resulting in the same issue. Sigh . . .

Hollosch (talkcontribs)

Hi @Gmlacey,

got the same error. I think there is a configuration problem with JsonConfig and we need a value for the localsettings.php (talkcontribs)

Did somebody solve this problem?

Gmlacey (talkcontribs)

I never got it to work again, so no, not yet. (talkcontribs)

My Versions are

MediaWiki 1.33.0
PHP 7.2.19-0ubuntu0.18.04.2 (fpm-fcgi)
MariaDB 10.1.41-MariaDB-0ubuntu0.18.04.1
ICU 60.2

I'm getting the same error as described above. My Installed extentions looks like this.

Parser hooks
Extension Version License Description Authors
Kartographer (085a7f7) 12:33, 20 March 2019 MIT Allows maps to be added to the wiki pages Yuri Astrakhan, Max Semenik, Ed Sanders, Julien Girault and others
Extension Version License Description Authors
JsonConfig 1.1.0 (e19c474) 13:53, 12 March 2019 GPL-2.0-or-later Allows JSON configuration to be stored in a wiki Yuri Astrakhan

The Install directions for Kartographer only state to install jsonconfig and check special:Version to see if it's installed correctly. I'm not sure what a correct install looks like, but it's listing as installed. The Kartographer install directions do not go into if jsonconfig needs to be configured and if so how. I've read the instructions from jsonconfig for how to configure jsonconfig, and it doesn't read to me as though any configuration of jsonconfig is necessary, based on the kartographer and jsonconfig install and setup docs. Regardless I find the jsonconfig documentation configuration section to be incomprehensible. It does not explain which options, if any are applicable to me. (talkcontribs)

I figured this out. The documentation says "Only when installing from git run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory." In my case at least, even though I installed via the ExtentionDistributer, running that command was still necessary. Adding keywords for people searching for this: SOLVED FIXED

Ciencia Al Poder (talkcontribs)

Yes, ExtensionDistributor isn't bundling composer dependencies as it should (and advertises). This is tracked on phab:T227362

Reply to "Internal Error for Unknown Reason"