Jump to content

Project:Support desk

Add topic
From mediawiki.org
(Redirected from Help talk:Contents)
Latest comment: 1 hour ago by Mmtorou in topic VisualEditor Toolbar
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 "Add topic".

doc transclusion: which form ?

[edit]

Hi all, please what is the difference between these three forms of doc transclusion on a template page (template data do not appear on translated pages with the first two forms) ? Thanks.

 {{documentation}}

 {{Documentation}}
 
 {{Documentation|content=
 {{Done/doc}}
 }}

-- Christian 🇫🇷 FR 🎅 (talk) 13:05, 27 December 2024 (UTC)Reply

They are transcluded the same way if the source template doesnt state othervice. Documentation/documentation template might be the same resource template if the wiki doesnt allow to distiunguish pages with small and upper letters. The last code points out that you have a template within a template and its again on the source coude of template:Documentation and template:Done and all other included templates, what will be included and how. Juandev (talk) 13:55, 2 January 2025 (UTC)Reply
Hi @Juandev and thanks for your answer.
I do not understand the english text "and its again on the source coude of template:Documentation and template:Done and all other included templates, what will be included and how."
From the 2 first points as I get no error and i am working on Mediawiki itself (else precised) when transcluding, I guess it accepts both forms {{D and {{d . But where (parameter) is this discrimination declared in ?
The third point is still open since I get no explaination about why template data section cannot logically appear when using the two first forms.
--Christian 🇫🇷 FR 🎅 (talk) 08:39, 15 January 2025 (UTC)Reply
i confirm that only the 3rd form allows template data array to appear on translated pages. why not appearing with first forms ? --16:17, 28 January 2025 (UTC) Christian 🇫🇷 FR 🚨 (talk) 16:17, 28 January 2025 (UTC)Reply

CSS bug

[edit]

Paragraphs of text <p> in the article need to have style="overflow:auto" applied to them if there are floating figures and illustrations. Justina Colmena ~biz (talk) 14:29, 24 January 2025 (UTC)Reply

Hi!
Can you please provide a little more context? If you want to customize your wikis CSS, check out Manual:CSS. Osnard (talk) 11:12, 27 January 2025 (UTC)Reply

Special Page

[edit]

When the MediaWiki configuration language was set to "en," someone created a page titled "特別:投稿記録/Example." Now that the configuration language has been switched back to "ja," I can no longer access that page.

As I am just a regular user of that Wiki and cannot change the configuration language, is there a way to retrieve the page ID of that page? 抹消済みのアカウント (talk) 02:30, 26 January 2025 (UTC)Reply

Hi!
The page has been created with the japanese word for "Special" as a namespace prefix. While being set to "en", the wiki created this page in the "main" namespace (without a valid namespace prefix). Now that the wiki is set to "ja", the wiki recognizes the namespace prefix and tries to serve a Specialpage. Try to create a link like [[:特別:投稿記録/Example]] (mind the leading colon). or pass :特別:投稿記録/Example into Special:Export to get an XML-Export.
If this does not work, you may need to contact an administrator of your wiki to fix the title manually. Osnard (talk) 11:11, 27 January 2025 (UTC)Reply

RV1109

[edit]

here,Iam using RV1109, its runs with the baidu faceapp ,I try to run my own but the device shows a Blank White Screen . Ponmathan1303 (talk) 04:20, 27 January 2025 (UTC)Reply

Welcome to the MediaWiki support desk. Your requests seems to be unrelated to MediaWiki. If it is not, please provide more information. Osnard (talk) 11:02, 27 January 2025 (UTC)Reply

The lua binary is not executable

[edit]

Hi. I'm trying to import modules from Wikipedia to my personal wiki, and when I attempt to, I get this error:

The lua binary (/home1/bgrsgkte/public_html/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.

Can someone please point me in the direction of a solution?Humanipedia (talk) 10:11, 27 January 2025 (UTC)Reply

Hello!
Try making it executable, e.g. by chmod +x /home1/bgrsgkte/public_html/extensions/Scribunto/includes/Engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua. Be aware that you may also need to adjust the access permissions for the specific webserver user. Osnard (talk) 11:04, 27 January 2025 (UTC)Reply
Thanks, how do I do that? Do I have to edit the Lua file and add chmod +x to it somewhere?Humanipedia (talk) 22:43, 27 January 2025 (UTC)Reply
No, this is a command, which needs to be executed on the server in a shell. If you don’t have shell (SSH) access, you need to change permissions using whatever software you use to copy the files there. (If you happen to use Linux/Unix/WSL/etc. on your own computer, you may – or may not – be able to change the permissions on your computer and copy the file with the updated permissions, but regular Windows tools like the Windows Explorer cannot be used.) —Tacsipacsi (talk) 23:25, 27 January 2025 (UTC)Reply

The content model 'sanitized-css' is not registered on this wiki.

[edit]

When trying to import Wikipedia modules to my Wiki, I receive an error saying "The content model 'sanitized-css' is not registered on this wiki.". Please let me know how I should proceed.Humanipedia (talk) 01:33, 28 January 2025 (UTC)Reply

@Humanipedia: Do you have Extension:TemplateStyles installed? Sam Wilson 04:40, 28 January 2025 (UTC)Reply
To the best of my knowledge, it is installed. Any advice?
[1]
Humanipedia (talk) 17:11, 28 January 2025 (UTC)Reply
@Humanipedia: Your screenshot indicates that TemplateStyles is installed, but it may not actually be loaded in LocalSettings.php, so have a look there (or Special:Version, where it should be listed). Sam Wilson 02:56, 29 January 2025 (UTC)Reply
Thanks. I don't see it installed in Special:Version. Can you tell me what I need to add to LocalSettings.php to get it installed?
https://bgr.sgk.temporary.site/index.php/Special:Version
Humanipedia (talk) 04:28, 30 January 2025 (UTC)Reply
@Humanipedia: See the installation section of the extension's page. But basically you just need wfLoadExtension( 'TemplateStyles' );. Sam Wilson 04:38, 30 January 2025 (UTC)Reply

I need an optional strategy

[edit]

The installation package is like a virus,I didn't have a choice,Install directly on the C drive,It's crazy.fox fox fox. MBGGGGG (talk) 20:04, 29 January 2025 (UTC)Reply

Welcome to the MediaWiki support desk. Your requests seems to be unrelated to MediaWiki. If it is not, please provide more information. Osnard (talk) 15:41, 30 January 2025 (UTC)Reply

Special:Upload Error: Call to undefined method File::splitMime()

[edit]

I use a fresh installation of Mediawiki 1.43.0 on Ubuntu 24.04 running Plesk, everything works so far.

I just wanted to upload a picture, and after clicking the Upload-Button, I received the following error:

[Z5u70V983GfulgJMsFlKGQAAAEs] /index.php?title=Special:Upload Error: Call to undefined method File::splitMime()

Backtrace:

from /var/www/vhosts/myronised.com/wiki.myronised.com/includes/utils/MWFileProps.php(86)

#0 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/upload/UploadBase.php(585): MWFileProps->getPropsFromPath()

#1 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/upload/UploadBase.php(510): UploadBase->verifyPartialFile()

#2 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/upload/UploadBase.php(433): UploadBase->verifyFile()

#3 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/upload/UploadFromFile.php(99): UploadBase->verifyUpload()

#4 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/specials/SpecialUpload.php(753): UploadFromFile->verifyUpload()

#5 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/specials/SpecialUpload.php(824): MediaWiki\Specials\SpecialUpload->performUploadChecks()

#6 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/specials/SpecialUpload.php(298): MediaWiki\Specials\SpecialUpload->processUpload()

#7 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/specialpage/SpecialPage.php(728): MediaWiki\Specials\SpecialUpload->execute()

#8 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/specialpage/SpecialPageFactory.php(1724): MediaWiki\SpecialPage\SpecialPage->run()

#9 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/actions/ActionEntryPoint.php(504): MediaWiki\SpecialPage\SpecialPageFactory->executePath()

#10 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/actions/ActionEntryPoint.php(146): MediaWiki\Actions\ActionEntryPoint->performRequest()

#11 /var/www/vhosts/myronised.com/wiki.myronised.com/includes/MediaWikiEntryPoint.php(200): MediaWiki\Actions\ActionEntryPoint->execute()

#12 /var/www/vhosts/myronised.com/wiki.myronised.com/index.php(58): MediaWiki\MediaWikiEntryPoint->run()

#13 {main}


This error still exists after trying multiple times.

My Wiki can be found here: https://wiki.myronised.com.

How can I fix this? Thanks for your answer. C. Kaynbrook (talk) 17:56, 30 January 2025 (UTC)Reply

The MediaWiki file includes/filerepo/file/File.php includes the definition of the public static function splitMime() . If your MediaWiki does not know that MediaWiki function, then something went wrong while you installed MediaWiki. Malyacko (talk) 16:31, 3 February 2025 (UTC)Reply
Can I troubleshoot this somehow or do I need to reinstall my wiki? C. Kaynbrook (talk) 18:21, 3 February 2025 (UTC)Reply
I checked that file now, splitMime() is defined in there:

public static function splitMime( ?string $mime ) {
if ( $mime === null ) {
return [ 'unknown', 'unknown' ];
} elseif ( str_contains( $mime, '/' ) ) {
return explode( '/', $mime, 2 );
} else {
return [ $mime, 'unknown' ];
}
}

What could the problem be now? C. Kaynbrook (talk) 15:42, 4 February 2025 (UTC)Reply
File permissions. Malyacko (talk) 08:40, 5 February 2025 (UTC)Reply
I set all my directories to 775 and all my files to 644, the owner is www-data, as well as anyone in the group psaserv (psaadm, psaftp, nginx). I don't believe that file permissions are the problem. C. Kaynbrook (talk) 13:45, 5 February 2025 (UTC)Reply

I seem to be unable to answer a question here

[edit]

I'm an admin on Commons and en-wiki, trying to answer a question here, and it would appear that the page in question is too highly protected for me to answer the question. At Topic:Rbcfqdf52xpufbc6, I was attempting to tell them that the appropriate tool is commons:Template:CSS image crop or its equivalent on about 80 other WMF wikis (the template can, of course, be implemented elsewhere as well). - Jmabel (talk) 04:13, 1 February 2025 (UTC)Reply

Its because Flow/StructuredDiscussions are being phased out, so we dont want people to use those topics any longer. —TheDJ (Not WMF) (talkcontribs) 17:53, 1 February 2025 (UTC)Reply

update script won't work

[edit]

I did the "cd" part, then I entered "php public_html/maintenance/run.php update" but nothing happened. Its been a while since I did the update script and I can't remember fully how to do it. Please help I'm trying to add the DiscussionTools extension Tang Empire (talk) 09:14, 1 February 2025 (UTC)Reply

ok, now I tried the update script without the DiscussionTools script in LocalSettings.php and it worked. I added it back and it didn't. Is something wrong with the extension itself? Tang Empire (talk) 16:43, 1 February 2025 (UTC)Reply
nevermind. turns out its because didnt have the Linter extension that was required for this. Tang Empire (talk) 16:48, 1 February 2025 (UTC)Reply
@Tang Empire: It's a bit strange that you didn't get an error, it should've complained that Linter was missing, e.g.:
$ ./maintenance/run update
PHP Fatal error:  Uncaught MediaWiki\Registration\ExtensionDependencyError: DiscussionTools requires Linter to be installed.
Sam Wilson 04:37, 3 February 2025 (UTC)Reply
That’s strange, I didn’t get anything. Tang Empire (talk) 17:57, 4 February 2025 (UTC)Reply

Error Call to undefined function on image upload

[edit]

I'm running mediawiki for about 1 1/2 years now and today received this error when uploading an image:

Error: Call to undefined function Shellbox\Command\proc_get_status()

Proc_get_Status is disabled in php.ini, but it has always been disabled. The last time that I uploaded images (august last year) went fine. I believe meanwhile there was an automatic update (automatic by installatron) updating to 1.42.4. Was something noticeable changed that could cause this?

I receive similar error messages on multiple special pages, for example: Special:NewFiles

The full error shown is:

[Z6DlWqDZuxr2FbVbxkxVUAABRgk] /Special:NewFiles Error: Call to undefined function Shellbox\Command\proc_get_status()

Backtrace: from /home/****/domains/****.nl/public_html/wiki/vendor/wikimedia/shellbox/src/Command/UnboxedExecutor.php(293)

  1. 0 /home/****/domains/****.nl/public_html/wiki/vendor/wikimedia/shellbox/src/Command/UnboxedCommand.php(29): Shellbox\Command\UnboxedExecutor->execute()
  2. 1 /home/****/domains/****.nl/public_html/wiki/includes/shell/Command.php(214): Shellbox\Command\UnboxedCommand->execute()
  3. 2 /home/****/domains/****.nl/public_html/wiki/includes/GlobalFunctions.php(1606): MediaWiki\Shell\Command->execute()
  4. 3 /home/****/domains/****.nl/public_html/wiki/includes/GlobalFunctions.php(1635): wfShellExec()
  5. 4 /home/****/domains/****.nl/public_html/wiki/includes/media/BitmapHandler.php(271): wfShellExecWithStderr()
  6. 5 /home/****/domains/****.nl/public_html/wiki/includes/media/TransformationalImageHandler.php(255): BitmapHandler->transformImageMagick()
  7. 6 /home/****/domains/****.nl/public_html/wiki/includes/filerepo/file/File.php(1323): TransformationalImageHandler->doTransform()
  8. 7 /home/****/domains/****.nl/public_html/wiki/includes/filerepo/file/File.php(1268): File->generateAndSaveThumb()
  9. 8 /home/****/domains/****.nl/public_html/wiki/includes/gallery/TraditionalImageGallery.php(118): File->transform()
  10. 9 /home/****/domains/****.nl/public_html/wiki/includes/specials/pagers/NewFilesPager.php(183): TraditionalImageGallery->toHTML()
  11. 10 /home/****/domains/****.nl/public_html/wiki/includes/pager/IndexPager.php(601): MediaWiki\Pager\NewFilesPager->getEndBody()
  12. 11 /home/****/domains/****.nl/public_html/wiki/includes/specials/SpecialNewFiles.php(148): MediaWiki\Pager\IndexPager->getBody()
  13. 12 /home/****/domains/****.nl/public_html/wiki/includes/specialpage/SpecialPage.php(719): MediaWiki\Specials\SpecialNewFiles->execute()
  14. 13 /home/****/domains/****.nl/public_html/wiki/includes/specialpage/SpecialPageFactory.php(1669): MediaWiki\SpecialPage\SpecialPage->run()
  15. 14 /home/****/domains/****.nl/public_html/wiki/includes/actions/ActionEntryPoint.php(504): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
  16. 15 /home/****/domains/****.nl/public_html/wiki/includes/actions/ActionEntryPoint.php(145): MediaWiki\Actions\ActionEntryPoint->performRequest()
  17. 16 /home/****/domains/****.nl/public_html/wiki/includes/MediaWikiEntryPoint.php(199): MediaWiki\Actions\ActionEntryPoint->execute()
  18. 17 /home/****/domains/****.nl/public_html/wiki/index.php(58): MediaWiki\MediaWikiEntryPoint->run()
  19. 18 {main}


Installed Version (on shared hosting):

MediaWiki 1.42.4

PHP 8.3.15 (litespeed)

ICU 64.2

MariaDB 10.6.20-MariaDB-cll-lve-log Fablableo (talk) 16:12, 3 February 2025 (UTC)Reply

Page content gone after migration

[edit]

I attempted to migrate my installation between providers and while the pages are there every one is blank and returned the "There is currently no text in this page." message. If I click Random page it still finds them, such as:

https://sportspaper.info/wiki/index.php/1982_Final_Four

My versions:

Product Version
MediaWiki 1.42.4
PHP 8.2.25 (litespeed)
ICU 71.1
MariaDB 10.11.10-MariaDB

Cholmes75 (talk) 00:14, 4 February 2025 (UTC)Reply

Is is just a migration between providers or was a codebase update done as well?
Maybe something went wrong with exporting and importing the database. Can you please share details on how you did that? Which tools, which commands? Osnard (talk) 15:38, 4 February 2025 (UTC)Reply
I'm sure I did it all wrong, but basically I installed MW on my new provider, then I imported a database backup I took from my old provider. Really not much more than that. Cholmes75 (talk) 16:05, 4 February 2025 (UTC)Reply
@Cholmes75 I suggest logging into the sql server directly and see what data is inside the tables. then open up your backup and see if the data is correctly in there.
One possibility, is that you installed a different version of mediawiki, and did not run the upgrade script to migrate the data correctly. —TheDJ (Not WMF) (talkcontribs) 11:09, 5 February 2025 (UTC)Reply
Thanks. I am not familiar with using sql to look inside the tables, is there a guide somewhere I can refer to? Cholmes75 (talk) 14:08, 5 February 2025 (UTC)Reply

Account Blocking

[edit]

Good afternoon.Please help, I experience an account blocking in the name of the user: OfiyaN. I don't understand why i was blocked, I was the first time i entered and wanted to contribute to writing. How to get my account not blocked or do i create a new account after 6 days with the same email? OfiyaN (talk) 07:35, 4 February 2025 (UTC)Reply

Migrate Wikimedia document to Confluence Cloud

[edit]

Hi Team,

We are looking to migrate the Wikimedia documents to confluence cloud. Is there any best way to proceed with that?

Regards,

Anirudh 2401:4900:8849:C0B3:950D:9725:E596:A195 10:48, 4 February 2025 (UTC)Reply

What are "Wikimedia documents"? Malyacko (talk) 08:40, 5 February 2025 (UTC)Reply

Error on some search queries

[edit]

I refer to Error on some search queries on Project:Support desk/Flow

But as this page has been protected to prevent editing or other actions, i was forced to open a new topic.

Are there any solutions on this issue in the meanwhile? I have a very similar problem. The string "YouTube" in my search field causes the same error.

Ufnbg (talk) 12:24, 4 February 2025 (UTC)Reply

There seems to be a Title in your database, that is not a 'valid' title. There can be various reasons for this, but you will have to figure out which title in the database is triggering this problem I think. —TheDJ (Not WMF) (talkcontribs) 11:05, 5 February 2025 (UTC)Reply
Thanks for your reply. I found a entry for a page in my database "YouTube" which should not exist. I deleted this entry, but the problem remains:
/index.php?search=youtube&title=Spezial%3ASuche&profile=default&fulltext=1 Wikimedia\Assert\PreconditionException: Precondition failed: This Title instance does not represent a proper page, but merely a link target. Ufnbg (talk) 12:04, 5 February 2025 (UTC)Reply
@Ufnbg: You may have a 'hidden' title, that's e.g. being obscured by a more recently added namespace. Does running NamespaceDupes.php help? Sam Wilson 05:44, 8 February 2025 (UTC)Reply
@Sam Wilson: yes, that helps. Problem solved, thank you! Ufnbg (talk) 13:22, 8 February 2025 (UTC)Reply
[edit]

Hello, I have recently started using the UploadWizard extension. Everything is working fine so far. However, when I open the uploaded images with the MultimediaViewer extension, I find the link “View licenses”. But when I click on it, I am always taken to pages that have not been created. Here is an example: I have an image called “Properties”. It already has a license that was previously selected in UploadWizard. If I now open “Properties” in the MultimediaViewer and then click on “View licenses”, I am taken to the page “File:Properties.png?uselang=en”. What is going on there? I createt a example page for this. I am using the 1.43.Wiki Verion. Thank you in advance for any answers! Agatnor (talk) 15:43, 4 February 2025 (UTC)Reply

Please see "Post a new question" above. Malyacko (talk) 08:39, 5 February 2025 (UTC)Reply
I have formulated my problem a little more specifically. I hope it is better by now. Agatnor (talk) 12:10, 7 February 2025 (UTC)Reply
For the MultimediaViewer to be useful on 3rd party wikis you have to install Extension:CommonsMetadata and a suitable information template. This is explained in Extension:MultimediaViewer#Installation. Tactica (talk) 19:01, 8 February 2025 (UTC)Reply
I have added the templates and the extension:CommonsMetadata to my wiki. This has already helped a bit, I can see general information in the media viewer. However, the licenses are still not displayed. I have added a new image to my wiki where you can see this. Thank you very much for the really quick help! Agatnor (talk) 17:46, 9 February 2025 (UTC)Reply

adding a file locaction to MediaWiki

[edit]

We have a folder in the public_html called forms. Is there a way to add that folder to the wiki so it will show the file history and file usage, like it does with file in the the files folder?

Rshoskins71 (talk) 17:15, 4 February 2025 (UTC)Reply

MediaWiki does not read random folders in random places outside of MediaWiki's realm itself. You cannot "add a folder to the wiki" as it breaks the abstraction. Malyacko (talk) 09:28, 10 February 2025 (UTC)Reply
You could use something like Extension:SimpleBatchUpload. Jonathan3 (talk) 11:00, 10 February 2025 (UTC)Reply
P.S. What about this, which was mentioned under "Bulk upload of images" below? Manual:rebuildImages.php. I've never used it. Jonathan3 (talk) 11:03, 10 February 2025 (UTC)Reply

MobileFrontend fails using setTarget()

[edit]

My wiki no longer works at all on mobile. Visiting any page gives a glob of plaintext error output with backtraces. The error is "Call to undefined method MediaWiki\Output\OutputPage::setTarget()". setTarget() is called from MobileFrontend/includes/MobileFrontendHooks.php(217), inside method OnBeforeInitialize.

The release notes for for 1.42 say explicitly that OutputPage::setTarget() has been removed. So I wonder how anyone can be using MobileFrontend at all.

My wiki is here. I'm using Extension:MobileFrontend version 2.4.1 (the latest version) and MediaWiki 1.42.3. I posted this question on Extension_talk:MobileFrontend a few days ago, no response as yet.

Any advice greatly appreciated.

-- Larrydberg (talk) 01:54, 5 February 2025 (UTC)Reply

When importing articles from Wikipedia to my wiki, how do I properly give attribution?

[edit]

Am I required to include the full history when exporting articles prior to importing them to my wiki? Also, what interwiki prefix should I use when importing them to my wiki? I read that I should use "wikipedia" as the interwiki prefix, but I'm unsure.Humanipedia (talk) 04:17, 5 February 2025 (UTC)Reply

This is a question for Wikipedia, not for the MediaWiki support desk. Anyway, see their Terms of Use, under "7. Licensing of Content" → g. Re-Use. Myself, I link to a permalink pointing to the original article and mention the original license, usually CC BY-SA 4.0. There's no need to import the full history, let alone dealing with interwikis if you "edit" the original article, copy the parts you need from the source and paste that into your wiki article. Tactica (talk) 19:54, 5 February 2025 (UTC)Reply

How do I change the upload file size limit in the file manager for my wiki?

[edit]

This page says I should be able to edit php.ini, but I'm not able to find such a file in my website's file manager. Also, while I did find includes/specials/SpecialImport.php, when I edit it, I am unable to find the code listed here:

I'm reading the instructions under the "Large Scale Transfer" heading:

https://en.wikipedia.org/wiki/Help:Import

Humanipedia (talk) 04:22, 5 February 2025 (UTC)Reply

php.ini is located wherever PHP installed it on your machine. What "code listed here" as there is no code shown? Why do you refer to some English Wikipedia page which is unrelated to MediaWiki instructions for something? Malyacko (talk) 08:37, 5 February 2025 (UTC)Reply
Unrelated to this topic in particular, but maybe Project:Support desk/Header should hint that questions posted here related to obsolete MW versions will be given low priority or something along those lines. Tactica (talk) 19:38, 5 February 2025 (UTC)Reply
That page is for people considering importing files into Wikipedia, not for general use in 3rd party wikis. You should be reading this instead: Manual:Configuring file uploads#Set maximum size for file uploads. Also, you shouldn't edit any *.php files unless you know what you're doing; as a general rule, the only PHP related to MediaWiki that you might need to edit is the main configuration file, LocalSettings.php. Tactica (talk) 19:25, 5 February 2025 (UTC)Reply
Thanks. Where do I find php.ini in my file manager? I found LocalSettings.php, but I don't see any way to edit the file size of uploads there.Humanipedia (talk) 01:13, 6 February 2025 (UTC)Reply
See if changing the configuration file reported by entering php --ini in a console helps you. If it doesn't, maybe your web server is using a separate PHP configuration file. Manual:php.ini is linked by the article I mentioned above and provides further instructions if that's the case.
If you can't use a console but instead are limited to a "file manager" (whatever that is), I'm not sure I can help you. Tactica (talk) 01:33, 6 February 2025 (UTC)Reply
I may have come up with an easier way to solve my problem. I found out how to change the max upload and max post size in Hostgator:
https://ibb.co/0RcdmkqT
I have them set to 1000MB and 2000MB respectfully. However, when I try to import a file on my wiki which is about 77MB, I receive a "service unavailable error". I'm assuming it's because Mediawiki considers the file too big, because I have no problem importing smaller files. If you can tell me how to prevent this error from occuring when I import large files into Mediawiki, I would appreciate it:
https://ibb.co/0ynbmy0F
Humanipedia (talk) 02:24, 6 February 2025 (UTC)Reply
More likely is that the request doesn't finish quickly enough and that the webserver of the hostel times you out. —TheDJ (Not WMF) (talkcontribs) 12:15, 6 February 2025 (UTC)Reply
Is there a solution for that?Humanipedia (talk) 17:46, 6 February 2025 (UTC)Reply

Trying to enable email notifications for watchlists and the emails are not sending

[edit]

Hello!

We are using MediaWiki version 1.40.0. We ARE able to send emails from the Wiki using the Special:EmailUser form, so we have confirmed our SMTP settings are correct. Below are the settings in our LocalSettings.php file:

$wgEnotifUserTalk = false; # UPO

$wgEnotifWatchlist = true; # UPO

$wgDefaultUserOptions['enotifwatchlistpages'] = 0;

#$wgEmailAuthentication = false;

$wgUserEmailUseReplyTo = true;


Note: $wgEmailAuthentication is commented out because we use allowlisting. I have tried uncommenting that value and rebooting the server but emails still aren't sent.

Any help is appreciated! Thank you!! Jbubz (talk) 19:12, 5 February 2025 (UTC)Reply

You are using an outdated, insecure version. Please upgrade for your own safety. Malyacko (talk) 20:33, 5 February 2025 (UTC)Reply

Module not found error

[edit]

I imported the module Yesno to my wiki, however I still receive an error on pages saying "Lua error in package.lua at line 80: module 'Module:Yesno' not found."

https://bgr.sgk.temporary.site/index.php/Module:Yesno

My goal is to import templates and modules to my wiki so that they show up correctly in articles. If anyone can give me a general guide on how to do this, I would appreciate it. Are there any steps I would have to take beyond simply exporting the modules and templates from Wikipedia and importing them to my wiki?Humanipedia (talk) 06:00, 6 February 2025 (UTC)Reply

Bulk upload of images

[edit]

Hello all,

I am new to mediawiki. I have a wiki that I have the xml dumps from. The site is working great. I have a large folder of images I need to transfer up to the website and when I upload them to the images folder they do not appear on the website. I know i need to manually some how sync the images to the website. All images have the correct name and hopefully will just appear in the wiki. I am hoping I do not have to do these one at a time. Can anyone point me to an article or let me know how I can achieve this. Extremeshannon (talk) 05:01, 7 February 2025 (UTC)Reply

@Extremeshannon: Do you mean that you've got the original wiki's images/ directory, i.e. with the a/bb/Foo.jpg file paths? If the files are already represented on the wiki (i.e. you've imported their description pages) then does running the rebuildImages.php maintenance script help? Sam Wilson 05:22, 7 February 2025 (UTC)Reply
I do not seem to have that. It s dump of all images in one folder. There is a file .desc with them for each image Extremeshannon (talk) 05:37, 7 February 2025 (UTC)Reply
This worked great thank you Extremeshannon (talk) 06:13, 8 February 2025 (UTC)Reply

Long waiting time for wiki page approval

[edit]

Hello,

My page was declined and I've updated it since but no one has checked it yet. How long should this take as it's been over a month? Draft:Jakob Hallgren: Revision history - Wikipedia Thank you. Roxanabovia (talk) 08:36, 7 February 2025 (UTC)Reply

Hi, you need to bring this up on English Wikipedia. This website (mediawiki.org) is for using the MediaWiki software, not for content policies of Wikipedias. Malyacko (talk) 15:09, 7 February 2025 (UTC)Reply
thank you. Roxanabovia (talk) 11:06, 10 February 2025 (UTC)Reply

Words in all Content Pages Statistic

[edit]

MediaWiki - 1.39.8 PHP - 8.1.31 (fpm-fcgi)

I previously was tracking statistics, which contained a total word count. I recently ran, for the first time, the initSiteStats.php maintenance file. After doing so our statistics changed quite drastically, but the total word count disappeared entirely.

I saw "Words in all content pages" on the statistics for this wiki, but I don't have that "Other Statistics" section in the statistics table, in our production wiki or my local wiki.

How do I get this statistic to appear? Thank you in advance for your help and expertise. Kimmywingz (talk) 17:22, 7 February 2025 (UTC)Reply

https://www.mediawiki.org/wiki/Topic:Wa9kkt100ki3i9xn explains where the words count comes from. Tactica (talk) 19:43, 7 February 2025 (UTC)Reply

Are emails sent via $wgSMTP released via some sort of cron job on Windows?

[edit]

Hello!

We are using Windows Server 2022 Datacenter. At this point, I'm just trying to understand better how $wgSMTP works. Currently there is a delay in notification emails sent out when someone edits a site on another user's watchlist, and the delay is anywhere from 10 to 30 minutes. The email does send, it's just delayed. I want to learn what configurations control the cron-like job runner for Windows in the case of $wgSMTP. Is the job stored in something similar to cron once a user edits a watchlist page? And then released under certain conditions?

I am brand new to MediaWiki and I haven't messed with PHP hardly ever in the past so I'm familiarizing myself.

Any help is appreciated! Thank you!

Jbubz (talk) 20:54, 7 February 2025 (UTC)Reply

Adding template to Multiple pages

[edit]

Hello all,

I have a template for information I want to display at the top of many pages possibly all. How can I add the ({template}) at the top of all pages. Extremeshannon (talk) 06:16, 8 February 2025 (UTC)Reply

transclude the template on each page, or use Central Notice services - depending on the scale of diffusion and the nature of the wiki (MediaWiki ? private project? ...) you want to impact -- Christian 🇫🇷 FR 🚨 (talk) 23:22, 10 February 2025 (UTC)Reply

Documentation for extensions maintenance

[edit]

Hello, I am using version 1.43 and there is a really useful extension (markdown) which requires version 1.35. The error I have is "Class "ResourceLoaderFileModule" not found". This class was removed in version 1.39. Is there any reference documentation to upgrade extensions?

Thank you. Xavi.developer (talk) 08:02, 8 February 2025 (UTC)Reply

See Release notes/1.39 Malyacko (talk) 09:27, 10 February 2025 (UTC)Reply

Is it normal for a part of the page not yet marked for translation parse tvars wrongly?

[edit]

I edited the page Manual:Using custom namespaces (revision 7008818), which added some <tvar>s to the page. Other <tvar>s behaved normally, but those I added glitched, showing the raw tag and breaking some links. It is normal for them to behave so? 1F616EMO (talk) 14:09, 8 February 2025 (UTC)Reply

The tvar needs to be within <translate>...</translate> tags to work properly - yours aren't. * Pppery * it has begun 18:10, 8 February 2025 (UTC)Reply
Sorry, didn't notice that. Fixed in revision 7009428. 1F616EMO (talk) 00:29, 9 February 2025 (UTC)Reply

Download extensions from Phabricator

[edit]

Hi, I'd like to download some MW1.16 extensions from SVN. I found UsabilityInitiative · rSVN but can't find a way to download the extensions. Sorry for running such an old version of MW, but I'm really running it locally for curiosity only. FarmerCars789 (talk) 15:12, 8 February 2025 (UTC)Reply

https://phabricator.wikimedia.org/diffusion/SVN/ shows a "Checkout" button. Malyacko (talk) 09:26, 10 February 2025 (UTC)Reply
True, but unfortunately clicking on that button displays the message "Repository has no URIs set." for me. ‍—‍a smart kitten[meow] 12:27, 10 February 2025 (UTC)Reply
@A smart kitten Which button exactly? Leaderboard (talk) 12:30, 10 February 2025 (UTC)Reply
@Leaderboard the green "Checkout" button to the mid-right of the page on https://phabricator.wikimedia.org/diffusion/SVN/. ‍—‍a smart kitten[meow] 12:32, 10 February 2025 (UTC)Reply
@A smart kitten Try downloading the dump (it's a large file) at https://dumps.wikimedia.org/other/misc/. Leaderboard (talk) 13:28, 10 February 2025 (UTC)Reply
I did but i don't know how to open it, it's just an extremely large file with no folders at all. The file itself has no extension also. So i really have no idea. FarmerCars789 (talk) 14:27, 10 February 2025 (UTC)Reply
@FarmerCars789 The file has a .gz extension - try using 7Zip to open the file. Leaderboard (talk) 15:05, 10 February 2025 (UTC)Reply
When I extracted svn-mediawiki.gz it showed me a huge file with no extension whatsoever, unless I've downloaded the wrong file. FarmerCars789 (talk) 17:07, 10 February 2025 (UTC)Reply

Pywikibot/Replace.py - Only target redirect pages

[edit]

Hello! My bot uses the replace.py script to do some cleanup replacements on wiki articles. Recently my community was thinking to standardize the way redirects are written so I was wondering, is there a way to target only redirect pages? Can't find any way here.

(Is this the correct place to ask this question?) - Klein Muçi (talk) 18:31, 8 February 2025 (UTC)Reply

@Klein Muçi Searching for the redirect text is one option. Leaderboard (talk) 12:30, 10 February 2025 (UTC)Reply

Need help installing Lua modules in my wiki

[edit]

I've imported Lua modules from Wikipedia to my wiki, but I still run into template errors saying that Lua modules are not found. If anyone can give me a crash course on installing them properly, I would appreciate it.Humanipedia (talk) 06:40, 9 February 2025 (UTC)Reply

Wiki request

[edit]

So, I have a FANDOM wiki and I want to migrate it from FANDOM to MediaWiki, but sadly, most web servers have paywalls and I don't want to open it in a local server.


I'm also planning to rename it to Carriesoft Wiki. If you make the wiki for me, make me as bureaucrat. JoaoMedia (talk) 14:59, 9 February 2025 (UTC)Reply

See "Don't own a server? Find hosting services" on the front page. "migrate from FANDOM to MediaWiki" makes no sense as Fandom already runs MediaWiki.Malyacko (talk) 09:25, 10 February 2025 (UTC)Reply
@JoaoMedia and Malyacko: Fandom wiki is very heavily modified MediaWiki, so I think he's looking for a more vanilla experience. Fandom offers database dumps in XML for your wiki at Special:Statistics (more info). If you're looking for a hosted solution, Miraheze is very good in my opinion, and they even have a guide for migration from Fandom. QuickQuokka (talk) 15:24, 10 February 2025 (UTC)Reply
@JoaoMedia: Also, I forgot to mention, Miraheze is completely free! QuickQuokka (talk) 15:32, 10 February 2025 (UTC)Reply
I don't want Miraheze.
I want to make the URL something like "carriesoftwiki.org JoaoMedia (talk) 03:31, 11 February 2025 (UTC)Reply

API questions

[edit]

Hello,

I'm working on a project that requires API access to any given MediaWiki wiki, but I've encountered a few issues:

  • Detecting the API endpoint
  • Not all wikis have their API at /w/api.php. Some use /api.php or /wiki/api.php instead.
  • I initially considered using Special:ApiHelp, as it redirects to the API endpoint, but some wikis (e.g., wikiHow) restrict access to special pages for logged-in users.
  • A workaround somebody found is that all MediaWiki wikis I tested include a <link rel="EditURI"> tag in their HTML, with an href leading to ?action=rsd, which reveals the API endpoint.
  • Is this the best way to detect the API endpoint, or is there a more reliable method?
  • We plan on using the older API format without rvslots, but it gives a warning that states that the rvslots format will become the default in the future. Will there be an option to force the old format?

Thanks, -- QuickQuokka (talk) 13:53, 10 February 2025 (UTC)Reply

I revoke my first question about getting the endpoints, but my other question still stands QuickQuokka (talk) 18:54, 10 February 2025 (UTC)Reply

What versions of the LDAPAuthorization and LDAPAuthentication2 extensions are compatible with MW 1.43?

[edit]

What versions of the LDAPAuthorization and LDAPAuthentication2 extensions are compatible with MediaWiki 1.43? We are having issues with the LDAP extensions giving errors when we attempt to login to our Wiki site.

When I look here: Extension:PluggableAuth - MediaWiki it appears that the PluggableAuth extension latest version 7.0.0 is only compatible with the 2.0.0 version of both LDAPAuthorization and LDAPAuthentication2. However, even using the 2.0.0 versions of both of those (with the 1.43 release of MediaWiki) still results in an error ("The supplied credentials could not be authenticated") when we attempt to login to our Wiki site.

Has anyone encountered issues with LDAP and the latest version of MediaWiki? If so how did you resolve these? Jbubz (talk) 16:41, 10 February 2025 (UTC)Reply

Creating custom skins

[edit]

Hello. I have a custom CSS (also JS but not entirely mine) for the Vector 2022 skin as I find it terrible at its default, but CSS restricts me to narrow customizations as I can't change the HTML structure, and I think changing the HTML structure with JS that much without causing big problems would be very hard as it will be done over an existing structure (even the CSS side causes many hard-to-solve problems for the same reason). Also, the updates the skin gets can break my customizations, very annoyingly. So, I want to create my own MW skins and use them in WMF wikis. How can I do that without too much difficulty? RuzDD (talk) 18:25, 10 February 2025 (UTC)Reply

Special:Version why not using Special:MyLanguage for skins and extensions ?

[edit]

Why in Special:Version each link to entry points leads correctly to the translated page (in my case https://www.mediawiki.org/wiki/Manual:$wgArticlePath/fr for example), and then starting from Bleu de Cologne which is https://www.mediawiki.org/wiki/Skin:Cologne_Blue they lead to the EN page (that is for skins and following extensions) altrough the translated FR pages still exist ? -- Christian 🇫🇷 FR 🚨 (talk) 23:06, 10 February 2025 (UTC)Reply

Is there a more efficient way of importing pages?

[edit]

I'm trying to import large numbers of pages from Wikipedia to my wiki, but when I import large numbers at once (e.x. 1,000 or more), I run into "503 service unavailable" errors. Is there a way of importing large numbers of pages at once, or importing them using the File Manager of my web host?Humanipedia (talk) 04:52, 11 February 2025 (UTC)Reply

VisualEditor Toolbar

[edit]

When I activate editing mode on a page in my wiki, the editor toolbar is not displayed. What can I do? I am using MediaWiki version 1.42.3, recently updated. Mmtorou (talk) 05:42, 11 February 2025 (UTC)Reply