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".

implement 2 potentially useful functions

1
185.169.64.46 (talkcontribs)

1. As you will already know, to put a link that shows the logs of a page (let's say the "Example" page), we have to write "https://mediawiki.org/wiki/Special:log?page=Example", "[/mediawiki.org/wiki/special:log?page=example]" or "{{fullurl:special:log|page=example}}", I would suggest that just writing "{{Special:log|page=example}}", instead of ignoring any character after the pipe/vertical bar ("|"), have it (into account) as a parameter separator like "{{Special:Prefixindex/Editnotices|namespace=10|stripprefix=1}}" does, not only on that special log page, but also on any other special page. 2. We can write [[Special:Log/create]] rather than "https://mediawiki.org/wiki/Special:Log/create" or "https://mediawiki.org/w/index.php?title=Special:Log&type=create" to view log of pages created, but with subtypes of a log type cannot use double square brackets, if we want to see the page restoration logs, we have to write obligatory "https://mediawiki.org/wiki/Special:log/delete?subtype=restore" or "{{fullurl:Special:Log/delete|subtype=restore}}", if "delete" or any other type of log (that has subtypes), is not added, the subtype is simply ignored, but that has nothing to do with this 2nd implementation, I suggest that the system can show the same page logs when instead of having "?subtype=<name of a subtype log>" in the URL it had "/<name of a subtype log>", the shortest URL to display restore logs would be "https://mediawiki.org/wiki/Special:log/delete/restore" instead of "https://mediawiki.org/wiki/Special:log/delete?subtype=restore", so, we could go to that page by just typing "[[Special:log/delete/restore]]" instead of having to type the full URL or using "{{fullurl}}", and furthermore, with that implementation, we could also see Pppery's modified block logs writing "[[Special:Log/block/reblock/Pppery]]" instead of "{{fullurl:Special:Log/block/Pppery|subtype=reblock}}", It would also be valid to write "https://mediawiki.org/wiki/special:log?type=block/reblock"

If they are implemented, we would save ourselves from writing full URLs or using {{fullurl}}

Reply to "implement 2 potentially useful functions"

1.39 how to setup mobile skin?

2
Summary last edited by 37.10.137.3 01:34, 5 May 2024 4 hours ago

vhb

2003:C2:3F21:FD00:9449:AC0F:F20E:94B7 (talkcontribs)

Mediawiki 1.39.6, PHP 7.4.3, MySQL 8.0.36

wfLoadExtension( 'MobileDetect' );
wfLoadExtension( 'MobileFrontend' );
wfLoadSkin( 'MinervaNeue' );
$wgMFDefaultSkinClass = 'SkinMinerva';
$wgDefaultMobileSkin = 'MinervaNeue';
$wgMinervaEnableSiteNotice = true;
$wgMFAutodetectMobileView = true;
$wgMFEditorOptions = array(
        'anonymousEditing' => false,
        'skipPreview' => false
);


Till 1.35 we used to have MinervaNeue as mobile skin. With 1.39, this doesn't work anymore. Mobile devices apparently use the vector skin. What will i have to do to make the mobile skin work?

The mediawiki logfile is full of thousands of lines which don't say nothing to me, by filtering "mobile" i found one interesting line:

[resourceloader] Module "ext.MobileDetect.mobileonly" not loadable on target "mobile".

???

Bawolff (talkcontribs)

Do you have the correct versions of all your extensions? You need 1.39 version of Minerva and MobileFrontend etc.

Reply to "1.39 how to setup mobile skin?"

Subpages Not Allowed?

1
Johnywhy (talkcontribs)

On import, i'm getting

Wrong option: Namespace "(Main)" of the root page does not allow subpages.

How to fix?

Manual:Importing XML dumps

Reply to "Subpages Not Allowed?"

css for Vector-2022

3
2003:C2:3F21:FD00:516D:5391:79D1:A338 (talkcontribs)

Where shall I place my css modifications for the new Vector (2022) skin? I've tried MediaWiki:Vector-2022.css

but it has no effect.

Ciencia Al Poder (talkcontribs)

It may take some time to take effect, usually 20 minutes at most. Otherwise, a syntax error in that page may render the entire CSS or from one point to the end unusable. For example, if you forgot to open or close curly braces. You may want to check if the CSS of that page is valid running it through an online CSS validator.

2003:C2:3F21:FD00:48AC:4A02:818F:D381 (talkcontribs)

Sorry, no, there must be another reason. The same css code works fine as "User:MyUser/vector-2022.css" and does not work as "MediaWiki:Vector-2022.css"

Any other ideas? It is Mediawiki 1.39.6

Reply to "css for Vector-2022"

List of hidden special pages

4
Zhuyifei1999 (talkcontribs)
MarkAHershberger (talkcontribs)

There is this list in SpecialPageFactory.php:

		// Unlisted / redirects
		'Blankpage'                 => 'SpecialBlankpage',
		'Blockme'                   => 'SpecialBlockme',
		'Emailuser'                 => 'SpecialEmailUser',
		'Movepage'                  => 'MovePageForm',
		'Mycontributions'           => 'SpecialMycontributions',
		'Mypage'                    => 'SpecialMypage',
		'Mytalk'                    => 'SpecialMytalk',
		'Myuploads'                 => 'SpecialMyuploads',
		'PermanentLink'             => 'SpecialPermanentLink',
		'Redirect'                  => 'SpecialRedirect',
		'Revisiondelete'            => 'SpecialRevisionDelete',
		'Specialpages'              => 'SpecialSpecialpages',
		'Userlogout'                => 'SpecialUserlogout',
104.218.129.50 (talkcontribs)

You forgot Special:Mobile languages and Special:MyLanguage.

Reply to "List of hidden special pages"

Unable to Delete Files

2
72.23.146.10 (talkcontribs)

Howdy,

I'm trying to delete some duplicated images, but keep getting the following error:

Error deleting file: An unknown error occurred in storage backend "local-backend".

The images in question all have previous versions that, for one reason or another, show "No thumbnail" as their first version (despite those thumbnails existing previously, prior to new versions being uploaded). Images that don't have "No thumbnail" as their first record can be deleted without issue.

My biggest question is, is there a way to bypass this error and delete the files? Less importantly, what can cause the "No thumbnail" issue to happen? The wiki I'm working on has lost a lot of prior versions of images over the years and no one can pinpoint why, or how to prevent it from happening in the future.

TheDJ (talkcontribs)

Most often this is due to permissions on the filesystem being incorrect. the webserver deamon and the permissions of the directory have to be compatible.

Reply to "Unable to Delete Files"

Mediawiki S3 Saving error

2
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.

Reply to "Mediawiki S3 Saving error"

How to change the pages / hide the install config pages from main page

3
Bananatree88 (talkcontribs)

I am sorry for all the stupid questions - I see on the main page it shows how to configure etc even if you are not an admin - how can you change that and have the pages / topics created show on the main page?

Ciencia Al Poder (talkcontribs)

If by pages / topics you mean actual pages, you can transclude Special:NewPages as {{Special:NewPages/25}}

Alternatively, use a proper forum software instead of MediaWiki.

Bawolff (talkcontribs)

Dont worry about stupid qusstions. Its what we are here for.

Reply to "How to change the pages / hide the install config pages from main page"

Is there a way as admin to see the list of registered users? Thanks

3
Bananatree88 (talkcontribs)

Can I see a list of registered users as admins

Bawolff (talkcontribs)

Go to the page Special:ListUsers

This post was hidden by Ciencia Al Poder (history)

upload api - how can I wrap lines in the text parameter

1
Summary by Creamycd

Use %0A instead.

Creamycd (talkcontribs)

How can I wrap lines when I fill the text parameter when using api.php?action=upload? According to the Documentations, the text parameter should be in the query string, but I need to write something like this...

=={{int:filedesc}}==
{{Information}}

=={{int:license-header}}==
{{self|cc-by-sa-4.0}}

It need to wrap lines, but how?

Thanks!