Project:Support desk

Jump to navigation Jump to search

About this board

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

(Read this message in a different language)

See also

Other places to ask for help:

Before you post

Post a new question

  1. To help us answer your questions, please indicate which versions you are using, as found on your wiki's Special:Version page:
    • MediaWiki version
    • PHP version
    • Database type and version
  2. Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
  3. To start a new thread, click "Start a new topic".

Mime type error with oojs-ui modules

3
70.24.123.54 (talkcontribs)

I'm getting mime type sniffing errors when oojs-ui icon modules are trying to load. This is on an nginx server. Here is the output from firefox:


The resource from “http://www.mywebsite.com/load.php?lang=en-ca&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.myskin.styles&only=styles&skin=myskin” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).


Any ideas?

Bawolff (talkcontribs)

check for whitespace at the begging of LocalSettings.php before tge <?php


Check php error logs for warning.


Open the load.php page in question see if there is any errors visible.

65.92.83.38 (talkcontribs)

Any other suggestions? This is a big problem considering how many times I load oojui-ui modules... I can't be the only person with this problem. I can't replicate the same error or even generate a warning on my localhost.

Reply to "Mime type error with oojs-ui modules"

Possible to protect against import overwrite?

1
Realsalt (talkcontribs)

Periodically I want to import a page from another wiki and choose to include templates in the export so that I don't have to manually go fetch a whole chain of things. A common use would something like Template:See Also, which brings over like 20 pages and modules along with it.

The problem is that these imports often overwrite changes to pages that I've modified (e.g. corrected wikipedia specific links). Sometimes they effectively undelete pages I've already deleted.

Is it possible protect a page against import?

Reply to "Possible to protect against import overwrite?"

MediaWiki 1.35.2 and later + Composer 1?

1
Kghbln (talkcontribs)

Just a quick question. Does MediaWiki 1.35.2 and later still support Composer 1? It looks like it. Perhaps someone has already run into this requirement and can share experience ...

Reply to "MediaWiki 1.35.2 and later + Composer 1?"
Kanasalaatti (talkcontribs)

I get error on Special:Nuke:


Notice: Array to string conversion in /var/www/mediawiki/includes/Title.php on line 2357


How this fix?

Malyacko (talkcontribs)

Please see the sidebar - which PHP version, which MediaWiki version, which extension version?

Kanasalaatti (talkcontribs)

Current MediaWiki version is 1.35.2 and PHP version is 7.4.16. Now this is happening elsewhere than the Nuke extension.

Reply to "Title.php error"

Page Forms extension version 4.9.5 does not work, especially with SMW extension 3.2.0

4
Gene.Mishchenko (talkcontribs)

I am running MediaWiki 1.35.0.

Installed Semantic MediaWiki via Composer and Page Forms via direct download, as advised in the instructions.

When BOTH extensions are enabled, I get the following error message when clicking on the "Create Class" special page (while logged in as Admin):

[6517085b45f63609a9bc655a] 2020-11-16 01:29:36: Fatal exception of type "Error"

When the SMW is not enabled, the Create Class page comes up OK.

But even when the SMW is disabled, I can't save anything - I get the spinning wheel of death and just have to close the tab/window.

It appears that the Page Forms extension simply does not work, and the symptoms get worse when SMW is enabled.

Any help will be appreciated.

Bawolff (talkcontribs)

set $wgShowExceptionDetails=true; to see full error

Gene.Mishchenko (talkcontribs)

[05b176a55029277935735e76] /w/index.php/Special:CreateClass Error from line 219 of C:\xampp\htdocs\w\extensions\PageForms\specials\PF_CreateClass.php: Call to a member function getDatatypeLabels() on null

Backtrace:

#0 C:\xampp\htdocs\w\includes\specialpage\SpecialPage.php(600): PFCreateClass->execute(NULL)

#1 C:\xampp\htdocs\w\includes\specialpage\SpecialPageFactory.php(635): SpecialPage->run(NULL)

#2 C:\xampp\htdocs\w\includes\MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)

#3 C:\xampp\htdocs\w\includes\MediaWiki.php(940): MediaWiki->performRequest()

#4 C:\xampp\htdocs\w\includes\MediaWiki.php(543): MediaWiki->main()

#5 C:\xampp\htdocs\w\index.php(53): MediaWiki->run()

#6 C:\xampp\htdocs\w\index.php(46): wfIndexMain()

#7 {main}

Pitolord (talkcontribs)

Hello,

I have the same problem here, did you find an issue ?

I'm using MediaWiki 1.35.2, SMW 3.2.3 and PageForms 5.2.

Thanks

Reply to "Page Forms extension version 4.9.5 does not work, especially with SMW extension 3.2.0"
2600:6C44:447F:DF74:D963:7F9C:78E5:890 (talkcontribs)

Does anyone know where to find the PHP configuration? This is relating to my login issues and if anyone can help, I would really appreciate it.

(I'm using the desktop version on my phone so presumably, there shouldn't be any issues)

Jonathan3 (talkcontribs)

There's a page on it here: PHP configuration. I'm sure I followed more useful, step-by-step instructions but can't find them. But from my bash history here's what I typed. I'm using Ubuntu 18.04.

sudo apt install php libapache2-mod-php php-mysql
sudo apt install php-mysql
sudo apt install php-xml
sudo apt install php-mbstring
sudo apt install php-apcu
sudo apt install php-intl
sudo apt install imagemagick
sudo apt install inkscape
sudo apt install php-cli
sudo apt install php-curl
sudo apt install php-imagick
sudo apt install poppler-utils

If you just mean which version will work, there's a chart here: Compatibility#PHP.

Jonathan3 (talkcontribs)
2600:6C44:447F:DF74:5403:25E5:B328:233C (talkcontribs)

Do I have to go to any pages to access it? (As in, is there an easy or simple way to access it?) Because I'm still unsure of what to do or where to go

Jonathan3 (talkcontribs)

I'm sorry, but what do you mean by "it"?

If it's phpinfo.php, you can just create a file xyz.php containing:

<?php
phpinfo();

Then go to your website at www.example.com/xyz.php or www.example.com/w/xyz.php or wherever.

Reply to "PHP Configuration"

Download an svg file from Commons.

3
Piero Caracciolo (talkcontribs)

Could you tell me to whom I can ask the following question?

I found a file that would turn out to be very useful for a thing that I am writing. This file has the format svg, but when I try to download it, I get a file wit the suffix .svg.png. Would it be possible to download the svg file?

Thank you.

82.197.207.202 (talkcontribs)

Visit the file’s page and the find the “doenload original” link on the page and download that.

Peculiar Investor (talkcontribs)

If your are writing for a wiki, enable InstantCommons, see Manual:$wgUseInstantCommons and InstantCommons. InstantCommons allows the usage of any uploaded media file from the Wikimedia Commons in any MediaWiki installation world-wide. InstantCommons-enabled wikis cache Commons content so that it is only downloaded once, and subsequent pageviews load the locally existing copy.

Reply to "Download an svg file from Commons."
Bilalmajeeed (talkcontribs)

Hi there. I've downloaded and installed the Breadcrumbs2 in the required folder of extensions/ and I can see the folder named 'Breadcrumbs2' there and it has all the files in it. I've also added the 'wfLoad....' in the last of my LocalSettings.php and have varified of its successfull installation from the page of 'Version' on my wikimedia but unfortunately it is still not working on my wikimedia. Following are the version details of my wikimedia.

MediaWiki 1.34.1
PHP 7.4.6 (apache2handler)
MySQL 5.7.33-0ubuntu0.16.04.1


According to the page of BreadCrumbs2 (Extension:BreadCrumbs2) it should be working after all this. Can anyone please guide me here if I am missing something?

Thanks.

Redundant-decadence (talkcontribs)

You have to create and configure MediaWiki:Breadcrumbs.

Bilalmajeeed (talkcontribs)

I have already created the page MediaWiki:Breadcrumbs but can you please guide me that how can I configure it? That would be very nice of you if you can guide me through the steps of it.

Thanks in advance.

Redundant-decadence (talkcontribs)
Bilalmajeeed (talkcontribs)

Thanks a lot. Just one more thing that can you please guide me through the categorization of the pages? Is there any extension needed to be installed for that?

Redundant-decadence (talkcontribs)
Reply to "Breadcrumbs2 not working!"

Is suggestion for special pages removed?

4
Summary by Lens0021
Lens0021 (talkcontribs)

Hello, I have shown the Improvements/Features/Search is deployed many wikis. I am very satisfied with that. One thing that I am curious about is the suggestion for special pages. I remember, say, typing Special:Sp in the search box would suggest Special:Specialpages, but I don't think it's working right now. Is it a planned behavior?

Regards.

Malyacko (talkcontribs)

@Lens0021 Which MediaWiki version are you running, or which website is this about? The link says it is about articles. Special pages would not be articles.

Lens0021 (talkcontribs)
Bawolff (talkcontribs)
Reply to "Is suggestion for special pages removed?"

convert audio to written document

3
Audio.onedigital (talkcontribs)

I want to be able to convert an audio recording to a written document.

Malyacko (talkcontribs)

Welcome to the support desk for the MediaWiki software. Is this question related to MediaWiki?

Tanbirzx (talkcontribs)

You can convert audio file to written document by using these ways-

1.By using 360Converter

2.Also the dictation software

3.By downloading a transcription app

4.Sobolsoft

Reply to "convert audio to written document"