Open main menu

Project:Support desk

About this board

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

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Wikimedia Developer Support, Q&A, mwusers (unofficial forum) 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".
Semako96 (talkcontribs)

Is it possible to set up a preadload text for Special:Upload, that appears within the file description input field? It would really be nice if our file description template would appear in the input field automatically when opening the upload form instead if having to use MediaWiki:Uploadtext to create a copy-paste template.

Leaderboard (talkcontribs)

From what I can understand, you want to preload the file description with some filler text. You should be able to do this by editing this message: MediaWiki:Upload-default-description.

Reply to "Preload for Special:Upload?"
Grlucas (talkcontribs)

Saves for my MediaWiki install sometimes take up to 15 seconds, and never less than 8 or so. I've already searched several times, and I cannot find a solution to this issue. Mediawiki: 1.32.0; PHP: 7.0.33 (litespeed); Database: 10.1.38-MariaDB-cll-lve. URL: https://projectmailer.net/

TIA for any assistance.

Leaderboard (talkcontribs)

Maybe enable PHP caching (though it shouldn't be that slow in the first place)? I can't try it myself as it's not publicly editable.

Reply to "Slow Saves"

Support Desk cannot reply

6
Summary by Leaderboard

Please open a new thread if this problem occurs again.

AmazingTrans (talkcontribs)

Hi there, i tried clicking reply on a thread and then click save page. it does not save the page. it comes back to the Wiki-Editor. Show-preview & Show changes work. but SavePage does not work for me in reply. What should i check?

Huhuang03 (talkcontribs)

I met the same problem

AmazingTrans (talkcontribs)

Anybody else having same issue? Looks like it works now for me again.

AKlapper (WMF) (talkcontribs)

Any error messages in your browser console output is welcome if this happens again.

Ciencia Al Poder (talkcontribs)

This could happen if your edit triggers one of the filters of AbuseFilter, or if you include external links that trigger a captcha. That's because LQT can't display captchas nor Abuse Filter warnings,

Norsen1983 (talkcontribs)

Well I have a related (probably) issue: I don't see a reply field in the topic Topic:Shozlbms8znlu0jx. When I'm not logged in to wiki, I can see this form, but can't publish anonimous reply.


EDITED: solved, that was just a closed thread, that's why there were no field for reply. It's a bit confusing that the field is tthere when I'm not logged in.

Mitchell316 (talkcontribs)

Hello,

So I am trying to import infobox templates into my own wiki but I keep getting this error: Error from line 76 of /home/mitchel8/public_html/extensions/TemplateStyles/includes/TemplateStylesContent.php: Class 'Wikimedia\CSS\Parser\Parser' not found

I have reread the installation instructions over and over and I cannot seem to find what I did wrong. I am also very new to MediaWiki so I would not be surprised if it is something very obvious that I missed. An older thread was made with this exact problem but there wasn't a working solution.

TheDJ (talkcontribs)

Sounds like missing composer dependencies or mismatched versions of extensions and core. How did you install ?

Mitchell316 (talkcontribs)
Mitchell316 (talkcontribs)

Update:

I ran "composer update --no-dev" in SSH and I am still having the same issue. It updated 3 dependencies and installed 0. I'm still not sure what the problem could be.

Mitchell316 (talkcontribs)

Another Update:

There actually were missing dependencies and they were updated. No longer getting the error anymore. Instead, I am now getting:

Warning: proc_open(): fork failed - Cannot allocate memory in /home/mitchel8/public_html/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php on line 269


The Infoboxes are showing up now, but the text is littered with conditional expressions. For example the honorific and name section are listed as

{{#if:| {{{honorific-prefix}}} }}

{{#if:||Page Name}}


AhmadF.Cheema (talkcontribs)
Reply to "Cannot Import Infobox Templates"

Mediawiki display all Matching Categories in list

1
Jamiehutber (talkcontribs)

I am using DynamicPageList witho much success.

However now I have a need to list all categories as links grouped together.

Take the following categories with the code:

40k warhammer space marines eldar`

<DynamicPageList> 
category = 40k
category = space marine
category = eldar
mode = unordered
order=descending
namespace=category
</DynamicPageList>

From the 4 categories, only space marines and eldar contain the 40k category.

So I would like the following list to be output from the code above:

Reply to "Mediawiki display all Matching Categories in list"

Cannot login to newly installed Mediawiki on RHEL7

4
203.2.218.131 (talkcontribs)

I get the following error when I try to login as admin

[WgFwnKvWKuo6GsYzfk6cygAAAAg] 2017-11-07 08:36:45: Fatal exception of type "BadMethodCallException"

Also get this error when creating a new user.

Running Mediawiki 1.29.1

PHP 7.1

RHEL7.4

Any ideas?

Thanks,

Vincenzo

AKlapper (WMF) (talkcontribs)
148.129.129.172 (talkcontribs)

I got the same error. I'm also running on RHEL. Here it is:


[XJkaIHw1Z@yqieX68QXpDAAAAAA] /mediawiki/index.php?title=Special:CreateAccount&returnto=Main+Page BadMethodCallException from line 456 of /var/www/html/mediawiki/includes/session/Session.php: Encryption is not available. You really should install the PHP OpenSSL extension, or failing that the mcrypt extension. But if you really can't and you're willing to accept insecure storage of sensitive session data, set $wgSessionInsecureSecrets = true in LocalSettings.php to make this exception go away.

Backtrace:

#0 /var/www/html/mediawiki/includes/session/Session.php(485): MediaWiki\Session\Session::getEncryptionAlgorithm()

#1 /var/www/html/mediawiki/includes/auth/AuthManager.php(1139): MediaWiki\Session\Session->setSecret(string, array)

#2 /var/www/html/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(357): MediaWiki\Auth\AuthManager->beginAccountCreation(User, array, string)

#3 /var/www/html/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(482): AuthManagerSpecialPage->performAuthenticationStep(string, array)

#4 /var/www/html/mediawiki/includes/htmlform/HTMLForm.php(665): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm)

#5 /var/www/html/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(416): HTMLForm->trySubmit()

#6 /var/www/html/mediawiki/includes/specialpage/LoginSignupSpecialPage.php(317): AuthManagerSpecialPage->trySubmit()

#7 /var/www/html/mediawiki/includes/specialpage/SpecialPage.php(569): LoginSignupSpecialPage->execute(NULL)

#8 /var/www/html/mediawiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)

#9 /var/www/html/mediawiki/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#10 /var/www/html/mediawiki/includes/MediaWiki.php(860): MediaWiki->performRequest()

#11 /var/www/html/mediawiki/includes/MediaWiki.php(517): MediaWiki->main()

#12 /var/www/html/mediawiki/index.php(42): MediaWiki->run()

#13 {main}


Looks like we did the same thing, and we both need to install the PHP OpenSSL extension or the mcrypt extension.

AKlapper (WMF) (talkcontribs)

Which exact MediaWiki version is this about?

Reply to "Cannot login to newly installed Mediawiki on RHEL7"

Different messages in the edit window based on user rights

2
Weblars (talkcontribs)

On the Danish Wikipedia we are considering to show different system messages when users are editing an article (example showing editing window) based on their user rights. Anonymous or new users should see a more eye-catching message about not violating copyright etc than for example autopatrolled users or administrators who should continue to see the current message (which is MediaWiki:Editpage-head-copy-warn). Would that be technically possible? The reason for asking is a diskussion on the Danish village pump, where the majority thinks than it would be too annoying to see such a message every time they edit an article, but that it nontheless would be suitable for contributors who don't yet know the copyright rules etc.

The setup: PHP/7.2.16 mediawiki-1.33/wmf.22 (details)

TheDJ (talkcontribs)

Not really. Uou can hide some content using CSS though, en.wp has this in their MediaWiki:Common.css.

Reply to "Different messages in the edit window based on user rights"
WilcoNL (talkcontribs)

When I am trying to login I use the examples from the Mediawiki itself. Tried this one:

https://www.mediawiki.org/w/api.php?action=clientlogin&logincontinue=1&OATHToken=987654&logintoken=123ABC

But got the message

{

"error": {

"code": "mustpostparams",

"info": "The following parameter was found in the query string, but must be in the POST body: logintoken.",

"*": "See https://www.mediawiki.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes."

},

"servedby": "mw1225"

}

if i put the parameter in the body, it says that is misses a parameter.


Any help will be appreciated

Wilco

TheDJ (talkcontribs)

You are passing parameters as query parameters instead of body parameters or you are making an HTTP GET request instead of an HTTP POST request.

Reply to "API Issue log in 1.32.0"

File extension ".png" does not match the detected MIME type of the file (image/svg+xml).

2
Summary by Lance W. Haverkamp

I uploaded a .png as the path of least resistance; but I question the system's inability to accept a change of filetype.

Lance W. Haverkamp (talkcontribs)

I'm uploading a svg logo. At upload, MediaWiki is incorrectly saying the file extension is .png, it's not, it's .svg

This may be caused by the previous (and incorrect) image being a png. If so, how do I tell the system that it's OK to replace the png, with an svg?

MarkAHershberger (talkcontribs)

If you think this is a bug, please file a task for it on phabricator.

Search will not show any results under custom namespaces

8
Averymechanix (talkcontribs)

Hi,

I am having an issue getting the search function to work with custom namespaces. When using the search function it will only return results for pages in the Main namespace. My LocalSettings.php looks like the following for my custom namespaces.


##Define constants for additional namespaces.

define("NS_B142",3000);

define("NS_B142_TALK",3001);


##Add Namespaces.

$wgExtraNamespaces[NS_B142] = "B142";

$wgExtraNamespaces[NS_B142_TALK] = "B142_Talk";


##Defaults search to allow all namespaces to be searched. 

$wgNamespacesToBeSearchedDefault[NS_B142] = true;

$wgNamespacesToBeSearchedDefault[NS_B142_TALK] = true;


MarkAHershberger (talkcontribs)

What version of MW are you using? If your wiki is public, can you point us to it?

Averymechanix (talkcontribs)

It is an internal wiki unfortunately, however, I am using version 1.29.1.

When you look at Special:All Pages it does show all of my namespaces in the wiki (the example above is only one of 6). I am using namespaces to separate buildings and sections so that no one steps on each others test instructions (We all use the same equipment).

MarkAHershberger (talkcontribs)

When you do advanced search and manually select the other namespaces, do you see results from those namespaces?

Are you using CirrusSearch or the built in search?

Averymechanix (talkcontribs)

Built-In search. It does not show me the other namespaces (no option to search under them) when I try and do advanced search.

MarkAHershberger (talkcontribs)

If your custom namespaces do not show up in the advanced search, then MediaWiki's search probably isn't aware of them.

Are you sure that pages in the "B142" namespace are actually in that namespace and aren't just in the main namespace with "B142:" at the beginning of their title? One way to tell is what the first tab says. For the main page it will usually say "Main Page" while other pages in the main namespace will say something like "Page". On this topic thread, for example, they say "Topic".

For your "B142" namespace, the tab should say "B142".

Averymechanix (talkcontribs)

The tab says B142. Also when looking at "All Pages" in the Special pages, I can select to see pages only under namespace B142. Only the search does not work.

MarkAHershberger (talkcontribs)
Reply to "Search will not show any results under custom namespaces"