Jump to content
MediaWiki

Project:Support desk

Add topic
From mediawiki.org
Latest comment: 8 hours ago by Sagittarix in topic Scala Santa e Oratorio di San Silvestro in Palatio
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".

Documentation for extensions maintenance

[edit ]
Latest comment: 12 days ago 5 comments3 people in discussion

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
thanks, I could not find it Xavi.developer (talk) 04:59, 20 February 2025 (UTC) Reply
These classes were moved into namespaces, so you will have to update the references to account for those namespaces. But it's likely there are a lot more issues of course. That's the problem with older extensions that don't have a maintainer any longer. —TheDJ (Not WMF) (talkcontribs) 16:16, 11 February 2025 (UTC) Reply
Thanks for the response. I have managed to make it work in honor to MediaWiki devs, the plugin devs and of course, Aaron Swartz, for designing the markdown format. Here are the changes I have made to the plugin. Of course I am not proud on how I have solved them. I have made it quick due to I don't know if someday it will be fixed nicely. I will post these changes also in the plugin github.
  • in ResourceLoaderWikiMarkdownVisualEditorModule make these changes (as namespaces for these classes have been created):
  • add
```
use MediaWiki\ResourceLoader\Context;
use MediaWiki\ResourceLoader\Module;
```
  • replace "ResourceLoaderModule" per "Module"
  • replace "ResourceLoaderContext" per "Context"
  • in extension.json, modify the ContentHandlers to be an array with key "class"
```
"ContentHandlers": {
"markdown": {"class": "MarkdownContentHandler"}
},
```
  • in MarkdownContentHandler.php, modify __construct to replace the constants per its values (I don't know why it doesn't load the constants on WikiMarkdown::onRegistration())
```
$modelId = 'markdown', $formats = ['text/markdown']
```
  • in WikiMarkdown.php, replace the usage of Linker::makeHeadLine (it was deprecated in 1.43) per self::makeHeadLine and add the method to the class (restored from from 1.42.5, https://github.com/wikimedia/mediawiki/blob/REL1_42/includes/linker/Linker.php :: 1956)
```
public static function makeHeadline( $level, $attribs, $anchor, $html,
$link, $fallbackAnchor = false
)
{
$anchorEscaped = htmlspecialchars($anchor, ENT_COMPAT);
$fallback = '';
if ($fallbackAnchor !== false && $fallbackAnchor !== $anchor) {
$fallbackAnchor = htmlspecialchars($fallbackAnchor, ENT_COMPAT);
$fallback = "<span id=\"$fallbackAnchor\"></span>";
}
return "<h$level$attribs"
. "$fallback<span class=\"mw-headline\" id=\"$anchorEscaped\">$html</span>"
. $link
. "</h$level>";
}
``` Xavi.developer (talk) 07:38, 20 February 2025 (UTC) Reply

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

[edit ]
Latest comment: 12 days ago 4 comments3 people in discussion

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
The text statement that consist's of no more than that of the Chord Major (c mjor, cminr-majr].
is a denominator./ 202.36.254.250 01:57, 20 February 2025 (UTC) Reply

Download extensions from Phabricator

[edit ]
Latest comment: 3 days ago 31 comments4 people in discussion

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
@FarmerCars789 That's actually a text-readable file. But you should not be expected to read a 14 GB text file using Notepad, so I'm indeed missing something. @Malyacko any idea if you know what to do here or where I should ask this? Leaderboard (talk) 13:24, 11 February 2025 (UTC) Reply
Does it contain some sort of links or something in there? FarmerCars789 (talk) 13:28, 11 February 2025 (UTC) Reply
@FarmerCars789 It actually contains all the code across all the extensions from what I can see. Leaderboard (talk) 04:25, 12 February 2025 (UTC) Reply
And how could I extract them? FarmerCars789 (talk) 12:36, 12 February 2025 (UTC) Reply
@FarmerCars789 You can use any text editor to view them; what I am not sure is how to extract them in terms of folders and all that, which is why I pinged Malayacko. @A smart kitten also makes a good point. Leaderboard (talk) 13:07, 13 February 2025 (UTC) Reply
Out of my own curiosity, I installed Subversion & started trying to load the MediaWiki Subversion dump file (using svnadmin create mediawiki-svn-repo & svnadmin load mediawiki-svn-repo --normalize-props < svn-mediawiki).
However, I interrupted the svnadmin load command after it became clear how long it was going to take to complete, as - given how long it seemed like it was going to take - I thought that there was probably a better way of doing things that I hadn't thought of. (At the length of time it looked like the command was going to take, I thought it may be quicker to code a quick Python script to scrape the folder structure/file contents from the repo on Phabricator!)
Best, ‍—‍a smart kitten [meow] 19:20, 12 February 2025 (UTC) Reply
Is the python script done? Or it isn't really possible? FarmerCars789 (talk) 16:54, 14 February 2025 (UTC) Reply
To be honest, I haven’t attempted to create such a script myself yet - I only mentioned it as something I thought might be quicker than what I was previously trying. Apologies if the way I worded my last message caused any confusion. Best, ‍—‍a smart kitten [meow] 17:48, 14 February 2025 (UTC) Reply
Ah I understand now. FarmerCars789 (talk) 17:56, 14 February 2025 (UTC) Reply
How long it was to complete the subversion file? hours? days? FarmerCars789 (talk) 10:46, 22 February 2025 (UTC) Reply
I’m not completely sure to be honest, as I interrupted the command early due to the time it was taking. However, extrapolating from the progress I remember seeing while the command was running, I’d probably say at least hours at a guess. Best, ‍—‍a smart kitten [meow] 09:52, 23 February 2025 (UTC) Reply
Either way, how could you download from SVN? FarmerCars789 (talk) 15:39, 23 February 2025 (UTC) Reply
I've also tried to download it with Git, but it always gives me a 403. FarmerCars789 (talk) 18:37, 23 February 2025 (UTC) Reply
I ran the command on the (extracted) svn-mediawiki file downloaded from https://dumps.wikimedia.org/other/misc/ - is this what you're referring to? If not, I'm afraid I'm not personally aware of another way to download the old SVN repos. Best, ‍—‍a smart kitten [meow] 11:57, 24 February 2025 (UTC) Reply
Yeah, we can't really download whole folders from Phabricator, if we could, then I wouldn't be here. I did find the svn export command though. When i tried to use Git I ran the command like this: git clone https://https://phabricator.wikimedia.org/diffusion/SVN/browse/branches/REL1_16/extensions/UsabilityInitiative and gave me a 403. I know Gerrit is meant for Git downloading but on the official Phabricator software documentation it does say somewhere it supports Git. I'm too lazy to link as I'm writing this on my phone. FarmerCars789 (talk) 09:53, 25 February 2025 (UTC) Reply
In my opinion the SVN archive repository should be hosted on Wikimedia Gerrit, where you can download any archive from the site itself or with Git. FarmerCars789 (talk) 17:42, 25 February 2025 (UTC) Reply
@A smart kitten @Leaderboard @Malyacko? FarmerCars789 (talk) 08:44, 26 February 2025 (UTC) Reply
@FarmerCars789 I'm not sure what you mean by "Wikimedia Gitles" - I get references to girls instead? Leaderboard (talk) 08:59, 26 February 2025 (UTC) Reply
Oops, I meant Gerrit. Sorry for the confusion, I wrote that off my mind. Should be fixed now. FarmerCars789 (talk) 11:04, 26 February 2025 (UTC) Reply
Gerrit supports only Git, not SVN. Malyacko (talk) 21:35, 26 February 2025 (UTC) Reply
No, I meant to transfer the SVN archive repo from Phabricator to Gerrit. I'm not referring to the SVN dump that works with SVN. FarmerCars789 (talk) 10:07, 27 February 2025 (UTC) Reply
I might just make a Python/JS script to scrape the file/folders of the repo, just like @A smart kitten suggested. I know the class that holds the file/folder name. ("diffusion-browse-name") FarmerCars789 (talk) 13:16, 1 March 2025 (UTC) Reply

Pywikibot/Replace.py - Only target redirect pages

[edit ]
Latest comment: 6 days ago 15 comments2 people in discussion

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
@Leaderboard, yes but the problem was that that text appeared in multiple citation links as well so I would need to spend some time fine-tunning regexes and since redirects can appear in all namespaces I was wondering if there was a cleaner way to filter those pages. It feels like a hack to filter them through regex parsing. - Klein Muçi (talk) 12:15, 12 February 2025 (UTC) Reply
@Klein Muçi Try asking the bot to search through Special:ListRedirects. You can also use AWB for this. Leaderboard (talk) 12:19, 12 February 2025 (UTC) Reply
Ah, so they are filtered somewhere! Any idea how can i specify that through Manual:Pywikibot/Page Generators?
I was hoping to have it as a monthly recurring job run on Toolforge. - Klein Muçi (talk) 12:23, 12 February 2025 (UTC) Reply
@Klein Muçi One quick and dirty way is to use the -randomredirect:n option where n is a very large number, thereby getting all the redirects. Another option is to first get the list of redirects in a file (or in Python itself) and feed that into replace.py as a file. Leaderboard (talk) 12:30, 12 February 2025 (UTC) Reply
I see. Thank you! Is there a way where I can "wish" for an upgrade to the list of generators to include functions with special pages as well? - Klein Muçi (talk) 12:49, 12 February 2025 (UTC) Reply
@Klein Muçi Try IRC or the mailing list at Manual:Pywikibot. Leaderboard (talk) 13:13, 12 February 2025 (UTC) Reply
@Leaderboard, apparently Special:ListRedirects only lists 5000 redirects, which for my homewiki are not enough to go up to letter C in an alphabetical order. :/ - Klein Muçi (talk) 00:33, 13 February 2025 (UTC) Reply
@Klein Muçi Can you try the other option then? Leaderboard (talk) 02:06, 13 February 2025 (UTC) Reply
@Leaderboard, I'm sorry but what is the other way? If you're referring to Another option is to first get the list of redirects in a file (or in Python itself) and feed that into replace.py as a file. the problem still persists: How do I get the list of all redirects of a wiki? I thought I could get it through Special:ListRedirects but apparently that has a hardset limit of 5000 pages. - Klein Muçi (talk) 11:39, 13 February 2025 (UTC) Reply
@Klein Muçi Use the API. See https://www.mediawiki.org/w/api.php?action=help&modules=query%2Ballredirects - an example is at https://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&format=json&generator=allredirects&formatversion=2&garlimit=max. That does have a limit of 500 (5000 for bots/sysops), but you can easily tell the API to continue returning the next 500(0) and so on. Leaderboard (talk) 12:33, 13 February 2025 (UTC) Reply
Ugh... That goes way beyond what I was expecting this job to be worth of. I believe my request will have to wait until redirects can be listed in an easier manner. I'll actually request that as a wish on Meta later on. Thank you for all your help, @Leaderboard! :) - Klein Muçi (talk) 12:50, 13 February 2025 (UTC) Reply
To give some closure to this, I was able to generate a list using Quarry. Lists on Quarry are not dynamic by nature so they're not a good option for recurring tasks but at least I can use those to work with AWB every once in a while. I also created this wish for redirect changes. - Klein Muçi (talk) 11:13, 14 February 2025 (UTC) Reply
@Klein Muçi If you can do this using Quarry, it should be pretty straightforward to adapt this as a SQL script. Leaderboard (talk) 09:00, 26 February 2025 (UTC) Reply

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

[edit ]
Latest comment: 6 days ago 4 comments2 people in discussion

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

There has not been an official release of the LDAP extensions for 1.43 yet. But I am not aware of any incompatibilities so far. The error "The supplied credentials could not be authenticated" can be caused by a lot of things. It is not necessarily a version incompatibility. Did you upgrade from a working setup? Or is is a fresh installation? Osnard (talk) 07:34, 14 February 2025 (UTC) Reply
Apologies, sorry for the delay. I've been out of the office!
So, I learned that it is because the php-cgi.exe process is unable to access the .json file at D:\Websites\Wikis\<sitename>\ldapconfigs\ldapconfigs.json
I migrated a working setup from an older 2016 version server onto a new server with a Windows Server 2022 OS.
I have migrated two different Wiki sites onto this new server to see if they had the same access issue. Neither has had any issues, it's just the one wiki site that for some reason isn't allowing php-cgi.exe to access the .json file.
I'd love any ideas. I used Procmon for some troubleshooting and that is where I uncovered that it's php-cgi.exe that is failing to access the .json file. I have looked at the folder and file permissions between this site and another site that I was able to successfully migrate, and the security permissions look identical. I know they can't be, though. I'm just missing something.
Procmon does list the user that the system is using to run php-cgi.exe, which is listed as IIS APPPOOL\MyAppPoolitrdemocategoriestest.
Here are the versions of everything:
MediaWiki 1.43.0
PHP 8.4.3 (cgi-fcgi)
ICU 75.1
MariaDB 10.5.8-MariaDB
Lua 5.1.5 Jbubz (talk) 20:46, 25 February 2025 (UTC) Reply
Try using a PHP based configuration instead of the JSON file. This will ensure PHP can always read the config Osnard (talk) 07:29, 26 February 2025 (UTC) Reply

Creating custom skins

[edit ]
Latest comment: 9 days ago 12 comments2 people in discussion

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

@RuzDD Manual:How to make a MediaWiki skinTheDJ (Not WMF) (talkcontribs) 16:10, 11 February 2025 (UTC) Reply
Thanks, I will write here if I have problems. RuzDD (talk) 19:40, 11 February 2025 (UTC) Reply
@TheDJ The links I saw don't help, how can I install or enable intl? RuzDD (talk) 19:56, 11 February 2025 (UTC) Reply
@RuzDD Basic (web) development knowledge is required for those who want to develop skins, there is no 'easy' way to learn how to develop skins. Maybe ask AI to help you if you still need to learn. I'm not sure what prompted you to ask about intl, but most likely it refers to php intl, which are additional features for php itself, that you have to enable or install for you PHP install. —TheDJ (Not WMF) (talkcontribs) 09:09, 12 February 2025 (UTC) Reply
@TheDJ I got an error message saying I need to install or enable intl, but these pages don't tell how can I install or enable it in XAMPP's Apache. I already have basic web developement knowledge. Can you help me for installing or enabling php intl in XAMPP's Apache? RuzDD (talk) 10:51, 12 February 2025 (UTC) Reply
https://www.google.com/search?q=php+intl+in+XAMPP%27s+Apache&client=safari&sca_esv=0fc7dd398656b67a&source=hp&ei=0JGsZ_XIAZaI9u8Pxp-amQI&iflsig=ACkRmUkAAAAAZ6yf4ASJVi6QszO4AkILzyDjydPwh0QF&ved=0ahUKEwj18LGfj76LAxUWhP0HHcaPJiMQ4dUDCBE&oq=php+intl+in+XAMPP%27s+Apache&gs_lp=Egdnd3Mtd2l6IhpwaHAgaW50bCBpbiBYQU1QUCdzIEFwYWNoZTIHECEYoAEYCjIHECEYoAEYCkj2EFAAWABwAHgAkAEAmAFloAFlqgEDMC4xuAEMyAEA-AEC-AEBmAIBoAJrmAMAkgcDMC4xoAeuAw&sclient=gws-wizTheDJ (Not WMF) (talkcontribs) 12:20, 12 February 2025 (UTC) Reply
I uncommented ";extension=intl" (there was no ";extension=php_intl.dll") in php.ini and looks like it worked, thanks. I will write here if I have another problem. RuzDD (talk) 14:00, 12 February 2025 (UTC) Reply
I got this error:
Cannot access the database: :real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES).
Check the host, username and password and try again. If using "localhost" as the database host, try using "127.0.0.1" instead (or vice versa).
I tried both but they don't work. (I ran XAMPP as admin and both Apache and MySQL are running.) What can I do @TheDJ? RuzDD (talk) 14:12, 12 February 2025 (UTC) Reply
I solved this problem and completed the installation and I will write here again if I have a problem creating the skin. RuzDD (talk) 13:06, 13 February 2025 (UTC) Reply
@TheDJ The page you linked first tells three ways, but I don't know anything about the mustache templates or whatever gives the data. To clarify, with my current knowledge, I can make an HTML structure giving the look of the skin but can't make the skin show any data. Can you please help me about that? RuzDD (talk) 13:49, 13 February 2025 (UTC) Reply
@wargo Can you help me about that? RuzDD (talk) 18:08, 23 February 2025 (UTC) Reply

I created 2 accounts

[edit ]
Latest comment: 6 days ago 2 comments2 people in discussion

How do I merge my accounts into one I Am Interested In Words (talk) 06:33, 13 February 2025 (UTC) Reply

Extension:MergeAccount if the wiki in question supports this. Leaderboard (talk) 17:43, 26 February 2025 (UTC) Reply

how to right justify a vertical table, with rest of page flowing around?

[edit ]
Latest comment: 8 days ago 5 comments4 people in discussion

when i was on mediaWiki 1.34, i could do this:

<div class="tright" style="text-align: right;"> |- | my table elements here |} </div>

and that table whould show on the right edge of my page, all the way down, while the REST of the page showed to its left.

but now that i've updated to 1.43, it stacks above the rest of my page. how do i reimplement the table on the right?

Davecotter (talk) 18:42, 16 February 2025 (UTC) Reply

{| class="wikitable" style="float:right;" ? Not sure what your tright class does, that is not MediaWiki code... Malyacko (talk) 22:28, 16 February 2025 (UTC) Reply
It works fine using the Timeless skin (https://karaoke.kjams.com/w/index.php?title=Sandbox&useskin=Timeless) so maybe the "tright" class doesn't exist in MediaWiki/Vector any more. You could add "clear: right; float: right" to the style above. I'm sure it's possible to achieve the same thing by styling the table itself though. Jonathan3 (talk) 22:34, 16 February 2025 (UTC) Reply
P.S. By "it" I meant the code on the wiki page, which begins:
<div class="tright" style="text-align: right;">
{|cellspacing="0" cellpadding="0"
| ...
Jonathan3 (talk) 22:37, 16 February 2025 (UTC) Reply
The tright class is no longer provided by default. See Manual:$wgUseLegacyMediaStylesTheDJ (Not WMF) (talkcontribs) 14:13, 24 February 2025 (UTC) Reply

Date parsing

[edit ]
Latest comment: 12 days ago 4 comments3 people in discussion

Does MediaWiki include a built-in way to convert a JavaScript Date object to a string formatted according to the end-user's preferences, i.e. one of the following:

  • 17:18, 17 February 2025
  • 17:18, February 17, 2025
  • 17:18, 2025 February 17
  • 2025年02月17日T17:18:30

So, if you had a date object called myDate, you could do something like mw.dateString(myDate). Mr. Starfleet Command (talk) 17:19, 17 February 2025 (UTC) Reply

You could have a look at Help:Extension:ParserFunctions##time and Extension:Scribunto/Lua_reference_manual#os.date. Jonathan3 (talk) 22:27, 19 February 2025 (UTC) Reply
@Jonathan3 Thanks, but I need something that would work in JavaScript. However, I have found an alternative solution that isn't ideal but works decently well, so I'll just stick with it. Mr. Starfleet Command (talk) 22:31, 19 February 2025 (UTC) Reply
@Mr. Starfleet Command: Good frontend formatting of dates is a bit of a long-standing issue, e.g.: phab:T21992. Sam Wilson 23:52, 19 February 2025 (UTC) Reply

external image: how to set size?

[edit ]
Latest comment: 8 days ago 6 comments3 people in discussion

i have "$wgAllowExternalImages" set to TRUE, tried the trick explained here, which didn't work. so how do i get my images resized? i used to use the <img> tag, but that no longer is available since i upgraded my installation.

Davecotter (talk) 19:15, 17 February 2025 (UTC) Reply

Really? nobody knows how to do this?
Specifically i need this is to enable HiDPI or Retina Display images. ie: display pic at 50%, but have it show up double high rez.
Davecotter (talk) 19:25, 22 February 2025 (UTC) Reply
i found this:
> you can also embed external images. To do that, simply insert the image's URL:
> http://url.for/some/image.png
> Embedded images can be resized by the CSS transform property. They also may be formatted by surrounding MediaWiki markup or HTML/CSS code.
however there is no example of this "CSS transform property" nor "MediaWiki markup" nor "HTML/CSS code". could someone please provide an example of eahc?
Davecotter (talk) 21:18, 22 February 2025 (UTC) Reply
Maybe TemplateStyles will allow this? Or put to sitewide common.css if you want set fixed size for all images. Surrounding code is any valid code you can use in wikitext. It could be, for example, span or div. These can be sized by inline css or be tagged with classes and ids, so CSS can target them and their content. wargo (talk) 22:04, 22 February 2025 (UTC) Reply
is there example code for that? specifically just to set an image to 50%, or for an svg image, to a pixel width? an external image, with an external link. Davecotter (talk) 21:45, 23 February 2025 (UTC) Reply
wgAllowExternalImages is not used by WMF, and as such doesn't really get feature development. For that reason there are no built in ways to scale the image you are referring to. —TheDJ (Not WMF) (talkcontribs) 14:10, 24 February 2025 (UTC) Reply

How to specify the template data in the documentation of a template?

[edit ]
Latest comment: 9 days ago 2 comments2 people in discussion

I ever tried editing the template data in my wiki, and I put the data table in the documentation of the template (like Template:XXX/doc). However, the template data was identified incorrectly as belonging to the template Template:XXX/doc, instead of Template:XXX. How could I correct it? BugCatcher2019 (talk) 20:23, 17 February 2025 (UTC) Reply

Transclude /doc to /Template:XXX - noinclude is enough. wargo (talk) 22:15, 22 February 2025 (UTC) Reply

SqliteMaintenance TypeError

[edit ]
Latest comment: 12 days ago 2 comments1 person in discussion

mediawiki 1.43.0 fedora f41 [1]

SqliteMaintenance vacuum fail

cd /usr/share/webapps/mediawiki/maintenance
sudo -u apache -g apache php ./run.php SqliteMaintenance --vacuum --integrity
[bd237d1cef6d626ee1badfac] [no req] TypeError: SqliteMaintenance::vacuum(): Argument #1 ($dbw) must be of type Wikimedia\Rdbms\Databa
seSqlite, Wikimedia\Rdbms\DBConnRef given, called in /usr/share/webapps/mediawiki/maintenance/SqliteMaintenance.php on line 68 
Backtrace: 
from /usr/share/webapps/mediawiki/maintenance/SqliteMaintenance.php(80) 
#0 /usr/share/webapps/mediawiki/maintenance/SqliteMaintenance.php(68): SqliteMaintenance->vacuum() 
#1 /usr/share/webapps/mediawiki/maintenance/includes/MaintenanceRunner.php(703): SqliteMaintenance->execute() 
#2 /usr/share/webapps/mediawiki/maintenance/run.php(51): MediaWiki\Maintenance\MaintenanceRunner->run() 
#3 {main}

Un1Gfn (talk) 04:44, 20 February 2025 (UTC) Reply

bug report #T386891 [2] Un1Gfn (talk) 05:33, 20 February 2025 (UTC) Reply

Displaying MediaWiki:Moveddeleted-notice for all visitors

[edit ]
Latest comment: 7 days ago 2 comments2 people in discussion

In case you've recently lost track, I run a Miraheze wiki.

Whenever pages get deleted, a message (MediaWiki:Moveddeleted-notice) and log overview get shown above the "no page found" reminder. However, neither are shown to IPs and other visitors by default (at least on Miraheze), although WP can already display them. What permission is required to make them show up? --Slgrandson (talk) 03:18, 23 February 2025 (UTC) Reply

@Slgrandson: As far as I'm aware (and judging by some code I found using Codesearch ), there isn't currently a configuration option to show the moveddeleted-notice log overview to unregistered users.
However, my understanding is that - when a page has been recently deleted - the log overview is shown to unregistered users; using the moveddeleted-notice-recent message. I believe that this may have been the message that was displayed to unregistered users on the Wikipedia page you linked.
All the best :) ‍—‍a smart kitten [meow] 20:07, 25 February 2025 (UTC) Reply

Location Map Error

[edit ]
Latest comment: 1 day ago 3 comments2 people in discussion

I'm having an issue while attempting to implement a location map on my wiki. (Currently running MediaWiki version 1.43.0 after being updated as the result of a previous help request.) Instead of properly displaying a box and floating the map right, it does neither of those things and instead displays the text "class=notpageimage|" below the image. (Screenshot) This error does not occur in the implementation on Wikipedia sandbox. Also, whether or not the PageImages extension is enabled in LocalSettings.php doesn't seem to make a difference. –Noha307 (talk) 05:10, 24 February 2025 (UTC) Reply

Try to export all templates related to the Location map and import to your wiki. It can help. Fokebox (talk) 09:33, 24 February 2025 (UTC) Reply
I tried updating both the Location map+ and Location map~ templates with the import/export function, but it unfortunately didn't help. I also tried inserting a regular image thumbnail from Wikimedia Commons, since I hadn't tested that yet and it worked fine. I also tried reducing the number of entries and amount of syntax in the template to the bare minimum, but that didn't help either. I did find one discussion that suggested running something called "initImageData.php" might help, but I am not familiar with what that is. –Noha307 (talk) 05:00, 3 March 2025 (UTC) Reply

SVG

[edit ]
Latest comment: 7 days ago 3 comments1 person in discussion

I use [[File:Logo.svg|Fikipedia]] in japanese Mediawiki, but, happen this.

[50925ae0dcedbf26fc1ccec8] /mediawiki/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8&action=submit RuntimeException: PCRE failure
Backtrace:
from C:\xampp\htdocs\mediawiki\includes\parser\Parser.php(2172)
#0 C:\xampp\htdocs\mediawiki\includes\parser\Parser.php(1629): MediaWiki\Parser\Parser->handleExternalLinks(string)
#1 C:\xampp\htdocs\mediawiki\includes\parser\Parser.php(701): MediaWiki\Parser\Parser->internalParse(string)
#2 C:\xampp\htdocs\mediawiki\includes\content\WikitextContentHandler.php(384): MediaWiki\Parser\Parser->parse(string, MediaWiki\Title\Title, MediaWiki\Parser\ParserOptions, bool, bool, null)
#3 C:\xampp\htdocs\mediawiki\includes\content\ContentHandler.php(1691): MediaWiki\Content\WikitextContentHandler->fillParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams, MediaWiki\Parser\ParserOutput)
#4 C:\xampp\htdocs\mediawiki\includes\content\Renderer\ContentRenderer.php(79): MediaWiki\Content\ContentHandler->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Content\Renderer\ContentParseParams)
#5 C:\xampp\htdocs\mediawiki\includes\editpage\EditPage.php(4202): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput(MediaWiki\Content\WikitextContent, MediaWiki\Title\Title, null, MediaWiki\Parser\ParserOptions)
#6 C:\xampp\htdocs\mediawiki\includes\editpage\EditPage.php(4105): MediaWiki\EditPage\EditPage->doPreviewParse(MediaWiki\Content\WikitextContent)
#7 C:\xampp\htdocs\mediawiki\includes\editpage\EditPage.php(2986): MediaWiki\EditPage\EditPage->getPreviewText()
#8 C:\xampp\htdocs\mediawiki\includes\editpage\EditPage.php(783): MediaWiki\EditPage\EditPage->showEditForm()
#9 C:\xampp\htdocs\mediawiki\includes\actions\EditAction.php(66): MediaWiki\EditPage\EditPage->edit()
#10 C:\xampp\htdocs\mediawiki\includes\actions\SubmitAction.php(38): EditAction->show()
#11 C:\xampp\htdocs\mediawiki\includes\actions\ActionEntryPoint.php(733): SubmitAction->show()
#12 C:\xampp\htdocs\mediawiki\includes\actions\ActionEntryPoint.php(510): MediaWiki\Actions\ActionEntryPoint->performAction(Article, MediaWiki\Title\Title)
#13 C:\xampp\htdocs\mediawiki\includes\actions\ActionEntryPoint.php(146): MediaWiki\Actions\ActionEntryPoint->performRequest()
#14 C:\xampp\htdocs\mediawiki\includes\MediaWikiEntryPoint.php(200): MediaWiki\Actions\ActionEntryPoint->execute()
#15 C:\xampp\htdocs\mediawiki\index.php(58): MediaWiki\MediaWikiEntryPoint->run()
#16 {main}

version is 1.43.0. Chasa 366 (talk) 13:10, 24 February 2025 (UTC) Reply

and this is in localhost Chasa 366 (talk) 13:11, 24 February 2025 (UTC) Reply
この時は少し混乱していました。
[[ファイル:Fikipedia-logo-ja.svg]]が使えませんでした。Wikicommonsにあるファイルは全て使用できました。
エラーは先ほどと同じような感じです。また、ファイルページではsvgが灰色になってしまいました。
:$wgFileExtensions = array(
: 'tiff', 'tif', 'png', 'gif', 'jpg', 'jpeg', 'webp', 'xcf', 'pdf',
: 'mid', 'ogg', 'ogv', 'svg', 'djvu', 'oga', 'flac', 'opus', 'wav', 
: 'webm', 'mp3', 'midi', 'mpg', 'mpeg'
:);
: $wgEnableSVG = true;
:$wgShowExceptionDetails = true;error_reporting( -1 );
:$wgMaxUploadSize = 9999999;
:ini_set('display_errors', 1);
:error_reporting(E_ALL);
:$wgGenerateThumbnailOnParse = true;
:putenv('TMP=C:\\xampp\\tmp');
:putenv('TEMP=C:\\xampp\\tmp');
:putenv('TMPDIR=C:\\xampp\\tmp');
:$wgUseImageMagick = true;
:$wgImageMagickConvertCommand = "C:/Program Files/ImageMagick-7.1.1-Q16-HDRI/magick.exe";
:$wgMainCacheType = CACHE_NONE;
:$wgCacheDirectory = false;
:$wgUsePathInfo = true;
:
Chasa 366 (talk) 10:52, 25 February 2025 (UTC) Reply

Issue with dark mode reporting

[edit ]
Latest comment: 7 days ago 2 comments2 people in discussion

I would like to report an issue about reporting dark mode bugs using the link "Report an issue with dark mode" on the appearance menu on the Vector 2022 skin on Wikipedia and other Wikimedia wikis.

Description of the issue: After following said link, and switching to visual editing, the page content will be replaced by the report instead of adding a new section.

To recreate:

1. Find any page to test report dark mode.

2. Click on "Report an issue with dark mode" link in the appearance menu (glasses button or right side of the screen).

3. Switch to visual editing using the pencil menu.

4. Type "this is a test", or something similar.

5. Save the edit.

6. Notice how the page gets replaced by the report, rather than adding it to the bottom of the page.

Thanks Justjourney (talk) 06:21, 25 February 2025 (UTC) Reply

Hi, how to "Find any page to test report dark mode"? Any reason not to provide a specific link? Where does "the link "Report an issue with dark mode"" actually go? Also note that you may want to bring this up on meta:Tech as this page is usually about 3rd party installations of MediaWiki, not about issues on Wikimedia websites. Malyacko (talk) 10:33, 25 February 2025 (UTC) Reply

Sidebar, "tools" section ?

[edit ]
Latest comment: 6 days ago 4 comments2 people in discussion

Admin only on a relative default wiki(MW 1.39.10, vector(2010(default),2022), monobook)

The active sidebar shows 3 sections. But the MediaWiki:Sidebar page only specified the first two. But not the last "Tools" section. ???

How/what/? is added it, and can I somehow edit or override it. (was thinking to split it into page-related and global-stuff sections)

MvGulik (talk) 09:42, 25 February 2025 (UTC) Reply

@MvGulik The Tools section has always been special as it is context dependant. For that reason, it was never made customisable. —TheDJ (Not WMF) (talkcontribs) 15:57, 25 February 2025 (UTC) Reply
I'll take it that's 'not customizable' without additional work (bureaucrat/system admin-level), as there are MW wiki's that seems to have alternative/edited/(separate) "Tools" menu's. (but that's not really an option for the target wiki, but good to know). Thanks. MvGulik (talk) 19:28, 25 February 2025 (UTC) Reply
Yes, extensions, skins and javascript tooling can all rearrange the position and the contents of that menu. But you cannot do it via MediaWiki:Sidebar —TheDJ (Not WMF) (talkcontribs) 09:46, 26 February 2025 (UTC) Reply

Getting 409 errors for resources

[edit ]
Latest comment: 6 days ago 1 comment1 person in discussion

Product Version MediaWiki 1.40.1 PHP 8.0.30 (litespeed) ICU 69.1 MySQL 5.7.23-23

website: www.jainkosh.org

Hi I have been using MW for years. It had been working great. Recently we are having 409 issues for resources that causes website to not load properly. The JS, CSS files are giving issues. I tried adding $wgCacheEpoch = 20250226090409; so it clears cache. But this didn't help. The resources are still throwing 409 code. can you please guide what can be done to fix? We have not changed anything on the server or in code. It's strange how it has started giving these errors now. It has been about 3 months we are continuously having this issue.


Thanks Vikas Vikasnd (talk) 09:33, 26 February 2025 (UTC) Reply

How to set values for text size, etc. in Appearance menu for logged-out users?

[edit ]
Latest comment: 2 days ago 2 comments2 people in discussion

Is there any way to set predetermined values for text size, etc. in the Appearance menu for logged-out users? Maybe by setting something in LocalSettings.php?

I'd like to have certain choices predetermined for people who view my site (https://michaelbeijer.co.uk/) for the first time and are not logged in.

Appearance:

  • Text: Small/standard/large
  • Width: Standard/Wide
  • Color: Dark/Light

~~~ MichaelBeijer (talk) 23:25, 26 February 2025 (UTC) Reply

hmm, no one?
Michaelbeijer (talk) 11:07, 2 March 2025 (UTC) Reply

Etymology from Wiktionary API

[edit ]
Latest comment: 5 days ago 1 comment1 person in discussion

Hi, can you please make it possible to retrieve etymology data from the Wiktionary API? 71.184.139.106 03:28, 27 February 2025 (UTC) Reply

Display short list of new pages on the homepage

[edit ]
Latest comment: 5 days ago 2 comments1 person in discussion

MediaWiki 1.39.3

Hello. How can I display a short list of recently created pages, on the homepage?

A bit like the dynamicpagelist plugin, but for all pages. X4rtqd6941 (talk) 12:51, 27 February 2025 (UTC) Reply

Actually found it, so I share it here.
Look at the accepted answer at the bottom here https://stackoverflow.com/questions/2419917/embedding-recent-changes-on-main-page-on-mediawiki
And from the comment of the said answer, look here: https://www.mediawiki.org/wiki/Help:Recent_changes X4rtqd6941 (talk) 12:57, 27 February 2025 (UTC) Reply

Error: 1062 Duplicate entry for key 'actor_name' (localhost)

[edit ]
Latest comment: 4 days ago 3 comments2 people in discussion

Hi,

I'm trying to migrate a very old version of MediaWiki (1.32.6 !!!) and was advised (by this very desk) to run migrateActors.php before. Si I did :

[root@sup-qua-wiki00009 /web/wikipole/wiki]# php maintenance/migrateActors.php 
 Creating actor entries for all registered users
 ... 1 - 54
 Completed actor creation, added 21 new actor(s)
 Beginning migration of revision.rev_user and revision.rev_user_text to revision_actor_temp.revactor_actor
 [...]
 User name "Xhumbert" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
 [...]
 Completed migration, updated 1925 row(s) with 1 new actor(s), 3278 error(s)
 Beginning migration of archive.ar_user and archive.ar_user_text to archive.ar_actor
 ... img_name=Puttygen1.png
 User name "Xhumbert" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
 [...]
 Completed migration, updated 108 row(s) with 0 new actor(s), 166 error(s)
 Beginning migration of oldimage.oi_user and oldimage.oi_user_text to oldimage.oi_actor
 User name "XHumbert" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
 [...]
 ... oi_name=Topase.png oi_timestamp=20170919100858
 Completed migration, updated 31 row(s) with 0 new actor(s), 68 error(s)
 Beginning migration of filearchive.fa_user and filearchive.fa_user_text to filearchive.fa_actor
 ... fa_id=6
 Completed migration, updated 5 row(s) with 0 new actor(s), 0 error(s)
 Beginning migration of recentchanges.rc_user and recentchanges.rc_user_text to recentchanges.rc_actor
 ... rc_id=5390
 Completed migration, updated 88 row(s) with 0 new actor(s), 0 error(s)
 Beginning migration of logging.log_user and logging.log_user_text to logging.log_actor
 ... log_id=100
 [20991d5afb7a4752411ac77e] [no req] Wikimedia\Rdbms\DBQueryError from line 1506 of /web/wikipole/mediawiki-1.32.6/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? 
 Query: INSERT INTO `mw_pole_actor` (actor_name) VALUES ('')
 Function: MigrateActors::addActorsForRows
 Error: 1062 Duplicate entry '' for key 'actor_name' (localhost)
 
 Backtrace:
 #0 /web/wikipole/mediawiki-1.32.6/includes/libs/rdbms/database/Database.php(1476): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)
 #1 /web/wikipole/mediawiki-1.32.6/includes/libs/rdbms/database/Database.php(1236): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
 #2 /web/wikipole/mediawiki-1.32.6/includes/libs/rdbms/database/Database.php(2078): Wikimedia\Rdbms\Database->query(string, string)
 #3 /web/wikipole/mediawiki-1.32.6/maintenance/migrateActors.php(193): Wikimedia\Rdbms\Database->insert(string, array, string)
 #4 /web/wikipole/mediawiki-1.32.6/maintenance/migrateActors.php(268): MigrateActors->addActorsForRows(Wikimedia\Rdbms\DatabaseMysqli, string, array, array, integer)
 #5 /web/wikipole/mediawiki-1.32.6/maintenance/migrateActors.php(91): MigrateActors->migrate(string, array, string, string, string)
 #6 /web/wikipole/mediawiki-1.32.6/maintenance/Maintenance.php(1698): MigrateActors->doDBUpdates()
 #7 /web/wikipole/mediawiki-1.32.6/maintenance/doMaintenance.php(94): LoggedUpdateMaintenance->execute()
 #8 /web/wikipole/mediawiki-1.32.6/maintenance/migrateActors.php(587): require_once(string)
 #9 {main}

Worth to be noted, before, the actor table was empty, after it contains that :

MariaDB [pole]> select * from mw_pole_actor;
 +----------+------------+---------------------------+
 | actor_id | actor_user | actor_name                |
 +----------+------------+---------------------------+
 |        1 |          1 | Admin                     |
 |        2 |         29 | Correcteur de redirection |
 |        3 |         36 | Xhumbert                  |
 [...]
 |       22 |       NULL | MediaWiki default         |
 |       23 |       NULL |                           |
 +----------+------------+---------------------------+

Thanks for help

Regards,

Xavier Xavier8854 (talk) 13:33, 27 February 2025 (UTC) Reply

It says: " User name "XHumbert" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation." Have you done this ? —TheDJ (Not WMF) (talkcontribs) 21:08, 27 February 2025 (UTC) Reply
Yes, I did with no significant result
[root@sup-qua-wiki00009 /web/wikipole/wiki]# php maintenance/cleanupUsersWithNoId.php --prefix mw_pole_
...Update 'CleanupUsersWithNoId' already logged as completed.
[root@sup-qua-wiki00009 /web/wikipole/wiki]# php maintenance/cleanupUsersWithNoId.php --prefix mw_pole_ --force
Beginning cleanup of revision
... rev_timestamp=20081103151542 rev_id=1
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of archive
... ar_id=26
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of logging
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of image
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of oldimage
... oi_name=Topase.png oi_timestamp=20170919100858
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of filearchive
... fa_id=6
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of ipblocks
Completed cleanup, assigned 0 and prefixed 0 row(s)
Beginning cleanup of recentchanges
... rc_id=5390
Completed cleanup, assigned 0 and prefixed 0 row(s)
Xavier8854 (talk) 07:36, 28 February 2025 (UTC) Reply

Running KaTeX at preview in the wiki editor (follow-up)

[edit ]
Latest comment: 5 days ago 1 comment1 person in discussion

I am using KaTeX as an external math rendering tool (I need some features that aren't offered by MW's math extension). I want math to be rendered each time the preview of the wiki editor is refreshed. @TheDJ suggested to add a JS hook, but I am not able to get it to work (see here). Does anybody have a hint on how to solve this?

Sorry for bothering again, I'm really stuck... 😬 Also, I wanted to write in the original thread but it has been protected. Sparushau (talk) 15:09, 27 February 2025 (UTC) Reply

Pagelinks.sql.gz file

[edit ]
Latest comment: 3 days ago 1 comment1 person in discussion

I am trying to work with the Pagelinks file in order to extract the number of articles that link to a specific Wiki page (same idea as can be seen in the "What-links-here" tool.

However, when I loop over this sql like file, I find very weird cases of links that doesn't seem to exist in Wikipedia.

For example, the first line in the file indicate that there is a link between page ids 1939 and 2. PageID 2 doesn't even seems to exist.

Even when I look on pageIDs that do exist, the link indicated in the file does not exist in the actual wiki page.

Am I missing anything? Avrahami-isr (talk) 02:07, 1 March 2025 (UTC) Reply

I need to regenerate slots.ibd

[edit ]
Latest comment: 1 day ago 5 comments3 people in discussion

Due to a defective hard drive and my being stupid not keeping backups I'm having serious trouble recovering this MySQL table. Is there a way to regenerate it somehow? With time and patience I was able to salvage all the others but this one will throw a read error every time no matter what. TIA. Tactica (talk) 09:49, 1 March 2025 (UTC) Reply

@Tactica Hi. How is this related to MediaWiki at all? MediaWiki does not have some table called "slots.ibd". Please also read "Post a new question" at the top of the page. Thanks. Malyacko (talk) 17:41, 1 March 2025 (UTC) Reply
(削除) Sorry for that... So this table comes from an extension, which basically means it's pretty much irrelevant, at least in my case. Thanks. (削除ここまで)
Erm... Manual:Slots_table does point to this being a MediaWiki core table? I'm using MW 1.43.0 with MariaDB 11.1.2 to handle a local wiki, and "slots.ibd" is obviously one of the two filenames of the table on disk.Tactica (talk) 23:39, 1 March 2025 (UTC) Reply
this is the core revision table that keeps track of what is stored where. if you lost it, you will have lost your connections between revisions and your content tables. This is really difficult to restore. I wouldn't even know where to start. is the ibd file corrupt, or completely lost ? If if is corrupt, I would advise to peruse mysql/mariadb files on methods for restoring data from corrupt db files. There are some ways usually, where you will just partially loose some data. —TheDJ (Not WMF) (talkcontribs) 15:52, 3 March 2025 (UTC) Reply
Thank you for answering. As far as I can tell, the file is incomplete. It should be around 14 MB but the most I can copy over is about 6 MB. Forcing a low speed copy with rsync goes through the motions as if it was copying everything, but in the end it reports errors too.
The process I followed to copy the old wiki was to have a fresh install of Linux, MariaDB, MediaWiki, etc. on a healthy drive. I created a new database there as instructed in Manual:Installing MediaWiki, then copied over the images and the MariaDB tables from the bad drive (direct copy with cp, not using any kind of export/import as the software versions and even the database name are the same). Everything was copied successfully except for a few thumbnails and the full 14 MB of this table in particular, which has me stuck.
Right now I'm trying with rsync at 1 KB/s, if that fails too I suppose I'll have to try my luck with direct MySQL commands like CHECK TABLE and friends after doing some backups. I was hoping there would be a way for MediaWiki to do this, maybe with a maintenance script. Also, I don't know if I should copy&replace the files stored on the parent directory of the wiki database, in this case /var/lib/mysql/* Tactica (talk) 19:41, 3 March 2025 (UTC) Reply

Common.css not loading

[edit ]
Latest comment: 2 days ago 2 comments2 people in discussion

Good morning. I am using Media Wiki 1.43. Since I started my wiki I have not been able to use Common.css. I have purged and cleared browser history. I have used, Edge, Chrome, and Firefox to see. Nothing changes at all. I am using Vector Legacy 2010. I am not sure why common.css is not working. Any help would be great Extremeshannon (talk) 19:09, 1 March 2025 (UTC) Reply

The page name is "MediaWiki:Common.css". Maybe you missed out the "MediaWiki:" part. Also you might need to do a hard refresh of whatever other page you're looking at. Jonathan3 (talk) 00:04, 2 March 2025 (UTC) Reply

Category

[edit ]
Latest comment: 1 day ago 1 comment1 person in discussion

What is the category Category:Name other category that this category should be included in for? 73.31.42.97 03:27, 3 March 2025 (UTC) Reply

QuickStatements using Wikibase as MediaWiki extension

[edit ]
Latest comment: 1 day ago 1 comment1 person in discussion

Hi, is it possible to use QuickStatements using Wikibase as MediaWiki extension? I couldn't find an installation guide. Thank you! P17-local (talk) 11:32, 3 March 2025 (UTC) Reply

Restricting edit access to a accounts with a specified verified email domain

[edit ]
Latest comment: 17 hours ago 1 comment1 person in discussion

I am attempting to restrict editing to users with a verified email of a specific domain (e.g. only users with an @ example.net email). I found this post from several years ago, but the hook it's using doesn't seem to work with newer versions. The code I'm using now looks something like (at the bottom of LocalSettings):

$wgEmailDomain = '@icloud.com'; // Set the email domain to check
  $wgHooks['ConfirmEmailComplete'][] = function ( $user ) use ( $wgEmailDomain) {
         if ( preg_match('/' . preg_quote($wgEmailDomain, '/') . '$/i', $user->getEmail()) ) {
         $user->addGroup('domain_member');
     }
     return true;
};

No matter what event I tie this to (e.g. ConfirmEmailComplete, AbortNewAccount, etc.) I always wind up encountering errors when I attempt to run it. Any suggestions on fixes or a different way to implement? Thanks! Ironblade101 (talk) 03:12, 4 March 2025 (UTC) Reply

Scala Santa e Oratorio di San Silvestro in Palatio

[edit ]
Latest comment: 8 hours ago 1 comment1 person in discussion

Stavo modificando il post sulla Scala Santa (https://it.wikipedia.org/wiki/Scala_Santa), inserendo la correzione:

* la cappella di San Lorenzo cui si accede dalla prima rampa di scale a destra;

Prima questa cappella era citata erroneamente come oratorio di San Silvesto in Palatio, con una foto però corretta di S. Lorenzo.

Fatta questa modifica la foto della cappella di S. Lorenzo è sparita e non sono in grado di recuperarla, e cliccandoci mi porta a una pagina di disambiguazione che non cita S. Lorenzo.

Anche la pagina https://it.wikipedia.org/wiki/Oratorio_di_San_Silvestro_in_Palatio contiene molte citazioni errate: questa è la cappella di San Lorenzo alla Scala Santa.

Ho bisogno di aiuto più competente della mia incompetenza, anche perchè in futuro ho intenzione di inserire molte piante di monumenti/siti in formato .bmp e non saprei proprio come fare.

Grazie Sagittarix (talk) 11:44, 4 March 2025 (UTC) Reply

AltStyle によって変換されたページ (->オリジナル) /