Open main menu

Project:Support desk

About this board

Welcome to MediaWiki.org'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 日本語 中文
Soif2020 (talkcontribs)

Hello,

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?

Reply to "ECCN (CECC)"
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?

193.135.130.42 (talkcontribs)

Hi,

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)

Hello

i have 2 different wikis on one server:

wiki1.mysite.com and wiki2.mysite.com


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)

Hi,

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?

8
Monocero (talkcontribs)

Hi,

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

Backtrace:

#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

79.207.236.190 (talkcontribs)

Did somebody solve this problem?

Gmlacey (talkcontribs)

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

73.252.158.66 (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
Other
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.

73.252.158.66 (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"

Collection Extension: Images/Graphics no longer included

1
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?

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

Wanted Templates is showing non templates?

12
203.185.197.46 (talkcontribs)

I have imported wikipedia using importDump.php. I have been looking over some of the missing templates via Special:WantedTemplates. the problem is that I am limited to 1000 templates and most of the templates that are now showing are not templates at all. According to wikipedia they are using Template as a magic word (https://en.wikipedia.org/wiki/Template:SHORTDESC). EG


Template:SHORTDESC:Township in Minnesota, United States‏‎ (870 links)

Template:SHORTDESC:Village in Illinois, United States‏‎ (838 links)

Template:SHORTDESC:City in :Template:Country data Iowa, United States‏‎ (828 links)

Template:SHORTDESC:Township in Michigan, United States‏‎ (554 links)

Template:SHORTDESC:City in Kansas, United States‏‎ (500 links)

Template:SHORTDESC:Civil township in Michigan, United States‏‎ (477 links)

Template:SHORTDESC:Town in Indiana, United States‏‎ (411 links)

Template:SHORTDESC:City in Kentucky, United States‏‎ (398 links)

Template:SHORTDESC:City in Minnesota, United States‏‎ (383 links)

Template:SHORTDESC:City in Georgia, United States‏‎ (377 links)

Template:SHORTDESC:Town in Maine, United States‏‎ (351 links)


Is there a way to make Special:WantedTemplates ignore Template:SHORTDESC so I can view the real missing templates?

DannyS712 (talkcontribs)

It shouldn't be used as a template, but when it is you can create {{SHORTDESC}} to remove it from the wanted templates

203.185.197.46 (talkcontribs)

Thanks for your reply. I tried creating a blank template (Template:SHORTDESC:) and I also copied wikipedias Template:SHORTDESC template (https://en.wikipedia.org/wiki/Template:SHORTDESC)


Unfortunately it is still showing up as missing templates :(

DannyS712 (talkcontribs)

Is the link showing as a redlink or a blue link (i.e. does the linker know it exists yet)? It should go away when it next refreshes

203.185.197.46 (talkcontribs)

"Template:SHORTDESC:Town in Massachusetts, United States"

"(201 links)" shows up as blue


Definitely is being cached I have updateSpecialPages.php running on a 2 minute cronjob

203.185.197.46 (talkcontribs)

What I meant to say is that Special:WantedTemplates is being updated and not cached old links

203.185.197.46 (talkcontribs)

"Template:SHORTDESC:Town in Massachusetts, United States" shows up as red

"(201 links)" shows up as blue

Ciencia Al Poder (talkcontribs)

If "Template:SHORTDESC" shows up as red, then you haven't created that template. I think you can't create an empty page, you may need to write some content to it. You can simply add <nowiki></nowiki> to it which won't output anything

203.185.197.46 (talkcontribs)

I have added <nowiki>%lt;/nowiki> to Template:SHORTDESC and to Template:SHORTDESC:


All of the links are still showing up as red.

Ciencia Al Poder (talkcontribs)

Sorry, I didn't notice my comment was mangled. Check again. It's nowiki tags

203.185.197.46 (talkcontribs)
AhmadF.Cheema (talkcontribs)

Template:SHORTDESC:Township in Minnesota, United States‏‎ and Template:SHORTDESC:Village in Illinois, United States etc. aren't actually templates. The only template is Template:SHORTDESC.

Regarding your problem, try running RunJobs.php too. Maybe that'd help?

Reply to "Wanted Templates is showing non templates?"
Frchdel4 (talkcontribs)

Hello,

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,

Reply to "Uploadstashbadpathexception"
Vuzorg (talkcontribs)

Hi, there is an important problem,

I'm admin of Zazaki wikipedia. I can't automatically log into translatewiki, how can I log in translatewiki with my wikipedia account? Thank you

ZI Jony (talkcontribs)

Vuzorg you have to create account on translatewiki, because translatewiki not allow login automatically.

Vuzorg (talkcontribs)

Thank you so mucıh, but when I try to create an account with my username Vuzorg, says there is another account named Vuzorg. So should I try another username?

I'm asking this because I'm an admin so I don't want to use two different usernames. Thank you

ZI Jony (talkcontribs)

Vuzorg I think that's your user ID, I've you ever try or login before on translatewiki?

Malyacko (talkcontribs)

translatewiki.net is a separate wiki and a separate entity. This is not a topic for mediawiki.org as this issue is not about the MediaWiki software in general. Please ask in a translatewiki.net support forum - thanks.

Reply to "admin"

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

1
203.185.197.46 (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

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