Project:Support desk

About this board

Welcome to the MediaWiki Support desk. This is a place where you can ask any questions you have about installing, using or administrating the MediaWiki software.

(Read this message in a different language)

See also

Before you post

Post a new question

  1. To help us answer your questions, please indicate which version of MediaWiki you are using, as found on your wiki's Special:Version page:
  2. If possible, add $wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 ); to LocalSettings.php in order to make MediaWiki show more detailed error messages.
  3. 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.
  4. To start a new thread, click the box with the text "Start a new topic".

Scripted initial population of MediaWiki database

1
Dstahlberg (talkcontribs)

As part of an Ansible-scripted setup of a MediaWiki site, I need to configure MediaWiki. The LoadSettings.php can be prepared in advance and copied to the site, but is there a scripted way to initially populate the database without manually accessing the Installation page?

Thanks for any pointers and tips!

Reply to "Scripted initial population of MediaWiki database"

account problem - 2 confused together

1
Picnics (talkcontribs)

Who can I contact about 2 accounts with the same username, that the system seems to have been confused together.

After some time away, I signed in yesterday and saw the account I recognized which was created in 2006 and had 20 contributions.

When I signed in today to update my current email address, it said the account was created in 2014 with NO contributions.

Thanks

Reply to "account problem - 2 confused together"

Getting off a website and attracting contributors

1
Guillaume Taillefer (talkcontribs)

Hello, I was wondering if there was a specific place where you can post about your wiki and try and ask for contributors to your site, mainly for experienced wiki users. Thanks

Reply to "Getting off a website and attracting contributors"

Getting off a website and attracting contributors

1
Guillaume Taillefer (talkcontribs)

Hello, I was wondering if there was a specific place where you can post about your wiki and try and ask for contributors to your site, mainly for experienced wiki users. Thanks

Reply to "Getting off a website and attracting contributors"

Logged in. But not on Boobpedia

2
Summary by Arlo Barnes

Not a unified account

Erikasteele (talkcontribs)

I'm logged in here but not Boobpedia i don't think. I'm not getting the little white star to watch pages yet. I've tried resting throygh the email but but getting the emails . Any advice? Please and thank you. Erika

Arlo Barnes (talkcontribs)

Although Boobpedia's login page links to MediaWiki's help pages (because Boobpedia uses the MediaWiki software), the two projects are unconnected and don't use the same login. You can still edit without having a login; your edits are recorded as being from your IP address. If you still want an account, https://boobpedia.com/boobs/Special:ListUsers?creationSort=1&desc=1 shows the most recently-made accounts. Perhaps you could ask an active new account how they were able to sign up despite the registration page being disabled at Boobpedia.

Force thumbnail generation with PdfHandler?

4
Kjecl (talkcontribs)

I recently performed an reinstall and database restore of a Wiki to fix a different problem. An unexpected positive side effect was that thumbnails are now generated for new PDF files uploaded to the Wiki. Cool!

Is there a way to force the generation of thumbnails for previously uploaded PDFs? I have tried:

php refreshImageMetadata.php -f

followed by:

php rebuildImages.php

without effect.

Thanks for any suggestions.

Bawolff (talkcontribs)

What do the old images look like? Is there an error message instead of a thumbnail or is it just missing. Does mediawiki show the correct dimensions for the files in question (as in, does it say it is 0x0 pixels or does it give a real number)?

Kjecl (talkcontribs)

Thank you for your interest in my problem.

The thumbnails for older files are a red stylized 'A' on a white background. Nope, no error message.

If I go to the Special:ListFiles page, and click on a red A icon, it shows dimensions of 0 x 0.

I wonder if I could use importImages.php to reload all of the older files. An experiment is in order for one of those files, I think.

Kjecl (talkcontribs)

Yes, I can use importImages.php to reload an older file. No, it does not help.

Reply to "Force thumbnail generation with PdfHandler?"

Mediawiki S3 Saving error

3
Egg 3846 (talkcontribs)

Hi,

Can you help me debug some mediawiki + S3 compatible service errors ? ( image resize / uploads )


It's an error i have on my server but not locally, but i haven't found any obvious difference between the setup yet


I'm using the following :

- mediawiki 1.39.6 ( a canasta image : canasta:1.39.6-20240104-346 )

- AWS extension 0.12.0

- minio


My FileOperation log :


2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: found backend with S3 buckets: mediawiki, mediawiki/thumb, mediawiki/deleted, mediawiki/temp.

2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: doPrepareInternal: S3 bucket mediawiki, dir=temp/4/42, params=noAccess, noListing, dir

2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: doSecureInternal: creating temp/.htsecure in S3 bucket mediawiki

2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: exception [Null] in doSecureInternal from PutObject ({"Bucket":"mediawiki","Key":"temp/.htsecure","Body":"","@http":[],"@context":[]}): Error executing "PutObject" on "xxxx:9000/mediawiki/temp/.htsecure"; AWS HTTP error: Client error: `PUT xxxx:9000/mediawiki/temp/.htsecure` resulted in a `404 Not Found` response:

<HTML><HEAD>

<TITLE>Network Error</TITLE>

</HEAD>

<BODY>

<FONT face="Helvetica">

<big><strong></strong></ (truncated...)

Unable to parse error information from response - Error parsing XML: String could not be parsed as XML

2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: doCreateInternal(): saving temp/4/42/20240503155757!phpp5WIrX.jpg in S3 bucket mediawiki (sha1 of the original file: jlb3z7ca9kw98dqons8c4pfh0sgo92m, Content-Type: image/jpeg)

2024-05-03 15:57:58 9de13bf397d2 mediawiki: S3FileBackend: exception [Null] in createOrStore from PutObject (false): Error executing "PutObject" on "xxxx:9000/mediawiki/temp/4/42/20240503155757%21phpp5WIrX.jpg"; AWS HTTP error: Client error: `PUT xxxx:9000/mediawiki/temp/4/42/20240503155757%21phpp5WIrX.jpg` resulted in a `404 Not Found` response:

<HTML><HEAD>

<TITLE>Network Error</TITLE>

</HEAD>

<BODY>

<FONT face="Helvetica">

<big><strong></strong></ (truncated...)

Unable to parse error information from response - Error parsing XML: String could not be parsed as XML

2024-05-03 15:57:58 9de13bf397d2 mediawiki: S3FileBackend: Performance: 0.127 second spent on: uploading temp/4/42/20240503155757!phpp5WIrX.jpg to S3

2024-05-03 15:57:58 9de13bf397d2 mediawiki: StoreFileOp failed: {"src":"/tmp/phpp5WIrX","dst":"mwstore://AmazonS3/local-temp/4/42/20240503155757!phpp5WIrX.jpg","overwrite":true,"headers":[],"failedAction":"attempt"}

Bawolff (talkcontribs)

The 404 responses make me wonder if the domain/port for the s3 bucket is set correctly.

2A01:CB00:B46:200:34EE:2610:62DE:B056 (talkcontribs)

I found an SSL certificate error for a self signed certificate, do you know if i can ignore this with an option on AWS extension ?

Reply to "Mediawiki S3 Saving error"

Format text in <pre> tag

4
Lucamauri (talkcontribs)

Even if <pre> tag encloses a preformatted text, HTML supports formatting of the block as explained here https://www.sitepoint.com/everything-need-know-html-pre-element/#using-nested-html-elements .

For instance, the following code:

<pre>
    This is preformatted text.
  It should be <span style="color:red;">further formattable</span>
</pre>

should produce a block of text with the last part in color red.
This works if you try it on CodePen or similar website, but produces this output in MediaWiki:

    This is preformatted text.
  It should be <span style="color:red;">further formattable</span>

So the color is ignored.
Why this happens? And anyone knows how to workaround it?

Thanks

星耀晨曦 (talkcontribs)

See m:Help:HTML in wikitext#Pre. You can use following way:

 It should be <span style="color:red;">further formattable</span>

Effect:

It should be further formattable
Lucamauri (talkcontribs)

Thanks for your effort, but unfortunately I can't use this method instead. I am importing into my Wiki several already-existing PRE blocks containing spaces, so I cannot simply add a space in front of each row.

Xin344 (talkcontribs)

I have the same issue and not solve.

Reply to "Format text in <pre> tag"
2A02:A03F:66D9:F301:512D:41C:6D44:DFFF (talkcontribs)

Hello everyone !

I recently installed mediawiki with the 'Parser' extension.

But when I try to log in to my wiki, I get this error :

"[ZkDhPaXGad5SVb3nIP2RQAAAAAM] /wiki_test2/index.php?title=Accueil MWException: Parser state cleared while parsing. Did you call Parser::parse recursively? Lock is held by: #0 /var/www/alternc/t/titouan/www/queernet.xyz/wiki_test2/includes/parser/Parser.php(882): Parser->lock()"

Does anyone have an idea what might be causing this ?

Thanks :)

Bawolff (talkcontribs)

I have never heard of an extension named "Parser". Presumably the extension is broken.

2A02:A03F:66D9:F301:512D:41C:6D44:DFFF (talkcontribs)

i think the extension is called ParserFunctions. its under the Syntax Analyser Add-ons options when you install mediawiki

Bawolff (talkcontribs)

There is a very big difference between "Parser" and "ParserFunctions".

Normally the error message should be longer then that. The rest of the error message likely provides information on the cause of the problem.

Syntax Analyzer Add-ons is not a product we make (nor have i ever heard of it). If you are having trouble with a third party distribution of MediaWiki, consider using the official version at Download. The amount of help we can provide for unofficial distributions made by third parties is limited.

2A02:A03F:66D9:F301:2D10:2604:D876:5217 (talkcontribs)

Hey,

I don't think this is a third party issue since I downloaded via the official mediawiki site. However I might have gotten the name of the categories wrong since I installed it in French (it was called 'greffons d'analyseur syntaxique') and I'm not sure what the English name is.

The whole error message is pretty long so I'm going to spilt it to avoid getting blocked. Here is the first part :

[ZkIaXNlSSMkzRXDjL4XVsgAAACk] /wiki_test2/index.php?title=Accueil MWException: Parser state cleared while parsing. Did you call Parser::parse recursively? Lock is held by: #0 /var/www/alternc/t/titouan/www/queernet.xyz/wiki_test2/includes/parser/Parser.php(882): Parser->lock()

2A02:A03F:66D9:F301:2D10:2604:D876:5217 (talkcontribs)
Reply to "parser error"

Page not getting marked for translation

3
Dan Shick (WMDE) (talkcontribs)

Hi there,

We created a template for the new Wikibase main page. The latest revisions are two weeks old and have not been marked for translation -- perhaps because this is the revision set in which we removed the DoNotTranslate template. Would it be possible to get this page marked for translation?: Template:Wikibase main page

Thanks, and if we did something wrong in this process please let us know so we can avoid this situation in future.

Bawolff (talkcontribs)

Yes Done

For future reference, these types of requests should go to Project:Village pump not this page.

Dan Shick (WMDE) (talkcontribs)

Thank you, sorry for the misplaced ask.

Reply to "Page not getting marked for translation"