Project:Support desk
(Read this message in a different language)
See also
Before you post
- Check the FAQ and Errors and symptoms .
- If your question is about a specific feature, check the relevant technical manual , end-user help or extension page and consider asking on its talk page .
- For issues about the mediawiki.org website, report to Village Pump instead.
- Ask technical questions about Wikimedia websites on meta:Tech instead.
Post a new question
- To help us answer your questions, please indicate which version of MediaWiki you are using, as found on your wiki's Special:Version page:
- 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. - 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.
- To start a new thread, click the box with the text "Add topic".
![]() |
---|
|
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)
- https://phabricator.wikimedia.org/diffusion/SVN/ shows a "Checkout" button. Malyacko (talk) 09:26, 10 February 2025 (UTC)
- 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)
- @A smart kitten Which button exactly? Leaderboard (talk) 12:30, 10 February 2025 (UTC)
- @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)
- @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)
- 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)
- @FarmerCars789 The file has a .gz extension - try using 7Zip to open the file. Leaderboard (talk) 15:05, 10 February 2025 (UTC)
- 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)
- @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)
- Does it contain some sort of links or something in there? FarmerCars789 (talk) 13:28, 11 February 2025 (UTC)
- @FarmerCars789 It actually contains all the code across all the extensions from what I can see. Leaderboard (talk) 04:25, 12 February 2025 (UTC)
- And how could I extract them? FarmerCars789 (talk) 12:36, 12 February 2025 (UTC)
- @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)
- And how could I extract them? FarmerCars789 (talk) 12:36, 12 February 2025 (UTC)
- @FarmerCars789 It actually contains all the code across all the extensions from what I can see. Leaderboard (talk) 04:25, 12 February 2025 (UTC)
- Does it contain some sort of links or something in there? FarmerCars789 (talk) 13:28, 11 February 2025 (UTC)
- 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)
- Is the python script done? Or it isn't really possible? FarmerCars789 (talk) 16:54, 14 February 2025 (UTC)
- 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)
- Ah I understand now. FarmerCars789 (talk) 17:56, 14 February 2025 (UTC)
- 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)
- How long it was to complete the subversion file? hours? days? FarmerCars789 (talk) 10:46, 22 February 2025 (UTC)
- 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)
- Either way, how could you download from SVN? FarmerCars789 (talk) 15:39, 23 February 2025 (UTC)
- I've also tried to download it with Git, but it always gives me a 403. FarmerCars789 (talk) 18:37, 23 February 2025 (UTC)
- 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)- 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)- 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)
- @A smart kitten @Leaderboard @Malyacko? FarmerCars789 (talk) 08:44, 26 February 2025 (UTC)
- @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)
- 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)
- Gerrit supports only Git, not SVN. Malyacko (talk) 21:35, 26 February 2025 (UTC)
- 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)
- 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)
- 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)
- @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)
- @A smart kitten @Leaderboard @Malyacko? FarmerCars789 (talk) 08:44, 26 February 2025 (UTC)
- 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)
- Yeah, we can't really download whole folders from Phabricator, if we could, then I wouldn't be here. I did find the
- I ran the command on the (extracted)
- 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)
- Is the python script done? Or it isn't really possible? FarmerCars789 (talk) 16:54, 14 February 2025 (UTC)
- @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)
- 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)
- @FarmerCars789 The file has a .gz extension - try using 7Zip to open the file. Leaderboard (talk) 15:05, 10 February 2025 (UTC)
- 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)
- @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)
- @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)
- @A smart kitten Which button exactly? Leaderboard (talk) 12:30, 10 February 2025 (UTC)
- 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)
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)
- @Klein Muçi Searching for the redirect text is one option. Leaderboard (talk) 12:30, 10 February 2025 (UTC)
- @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)
- @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)
- 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)
- @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)- 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)
- @Klein Muçi Try IRC or the mailing list at Manual:Pywikibot. Leaderboard (talk) 13:13, 12 February 2025 (UTC)
- @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)
- @Klein Muçi Can you try the other option then? Leaderboard (talk) 02:06, 13 February 2025 (UTC)
- @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)
- @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)
- 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)
- 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)
- @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)
- 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)
- 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)
- @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)
- @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)
- @Klein Muçi Can you try the other option then? Leaderboard (talk) 02:06, 13 February 2025 (UTC)
- @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)
- @Klein Muçi Try IRC or the mailing list at Manual:Pywikibot. Leaderboard (talk) 13:13, 12 February 2025 (UTC)
- 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)
- @Klein Muçi One quick and dirty way is to use the
- @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)
- @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)
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)
- 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)
- 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)
- 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)
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)
- @RuzDD Manual:How to make a MediaWiki skin —TheDJ (Not WMF) (talk • contribs) 16:10, 11 February 2025 (UTC)
- Thanks, I will write here if I have problems. RuzDD (talk) 19:40, 11 February 2025 (UTC)
- @TheDJ The links I saw don't help, how can I install or enable intl? RuzDD (talk) 19:56, 11 February 2025 (UTC)
- @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) (talk • contribs) 09:09, 12 February 2025 (UTC)
- @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)
- 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-wiz —TheDJ (Not WMF) (talk • contribs) 12:20, 12 February 2025 (UTC)
- 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)
- 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)
- 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)
- @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)
- @wargo Can you help me about that? RuzDD (talk) 18:08, 23 February 2025 (UTC)
- @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)
- 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)
- 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)
- 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-wiz —TheDJ (Not WMF) (talk • contribs) 12:20, 12 February 2025 (UTC)
- @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)
- @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) (talk • contribs) 09:09, 12 February 2025 (UTC)
- @TheDJ The links I saw don't help, how can I install or enable intl? RuzDD (talk) 19:56, 11 February 2025 (UTC)
- Thanks, I will write here if I have problems. RuzDD (talk) 19:40, 11 February 2025 (UTC)
I created 2 accounts
[edit]How do I merge my accounts into one I Am Interested In Words (talk) 06:33, 13 February 2025 (UTC)
- Extension:MergeAccount if the wiki in question supports this. Leaderboard (talk) 17:43, 26 February 2025 (UTC)
how to right justify a vertical table, with rest of page flowing around?
[edit]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)
{| class="wikitable" style="float:right;"
? Not sure what yourtright
class does, that is not MediaWiki code... Malyacko (talk) 22:28, 16 February 2025 (UTC)- 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)
- 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)
- The tright class is no longer provided by default. See Manual:$wgUseLegacyMediaStyles —TheDJ (Not WMF) (talk • contribs) 14:13, 24 February 2025 (UTC)
external image: how to set size?
[edit]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)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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) (talk • contribs) 14:10, 24 February 2025 (UTC)
How to specify the template data in the documentation of a template?
[edit]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)
- Transclude
/doc
to/Template:XXX
-noinclude
is enough. wargo (talk) 22:15, 22 February 2025 (UTC)
Displaying MediaWiki:Moveddeleted-notice for all visitors
[edit]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)
- @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)
Location Map Error
[edit]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)
- 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)
- 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)
SVG
[edit]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)
- and this is in localhost Chasa 366 (talk) 13:11, 24 February 2025 (UTC)
- この時は少し混乱していました。
- [[ファイル:Fikipedia-logo-ja.svg]]が使えませんでした。Wikicommonsにあるファイルは全て使用できました。
- エラーは先ほどと同じような感じです。また、ファイルページではsvgが灰色になってしまいました。
- Chasa 366 (talk) 10:52, 25 February 2025 (UTC)
:$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; :
Issue with dark mode reporting
[edit]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)
- 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)
Sidebar, "tools" section ?
[edit]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)
- @MvGulik The Tools section has always been special as it is context dependant. For that reason, it was never made customisable. —TheDJ (Not WMF) (talk • contribs) 15:57, 25 February 2025 (UTC)
- 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)
- 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) (talk • contribs) 09:46, 26 February 2025 (UTC)
- 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)
Getting 409 errors for resources
[edit]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)
How to set values for text size, etc. in Appearance menu for logged-out users?
[edit]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)
- hmm, no one?
- Michaelbeijer (talk) 11:07, 2 March 2025 (UTC)
Etymology from Wiktionary API
[edit]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)
Display short list of new pages on the homepage
[edit]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)
- 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)
Error: 1062 Duplicate entry for key 'actor_name' (localhost)
[edit]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)
- 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) (talk • contribs) 21:08, 27 February 2025 (UTC)
- 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)
Running KaTeX at preview in the wiki editor (follow-up)
[edit]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)
Pagelinks.sql.gz file
[edit]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)
- See Manual:pagelinks table and Manual:linktarget table for info about tables structure, their relation and to determine how to extract actual pages. wargo (talk) 13:13, 5 March 2025 (UTC)
I need to regenerate slots.ibd
[edit]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)
- @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)
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)
- 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) (talk • contribs) 15:52, 3 March 2025 (UTC)
- 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)
Common.css not loading
[edit]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)
- 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)
Category
[edit]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)
- Maybe it's in some sort of tutorial showing that category pages can themselves be categorised. Jonathan3 (talk) 11:45, 6 March 2025 (UTC)
QuickStatements using Wikibase as MediaWiki extension
[edit]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)
Restricting edit access to a accounts with a specified verified email domain
[edit]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)
Scala Santa e Oratorio di San Silvestro in Palatio
[edit]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)
- @Sagittarix Hi, this page is for the general MediaWiki software. Please bring up your question at w:it:Wikipedia:Bar instead - thanks! Malyacko (talk) 18:48, 8 March 2025 (UTC)
Howo do I add images?
[edit]60.49.235.92 04:12, 5 March 2025 (UTC)Someone please tell me how to add images to articles please?60.49.235.92 04:12, 5 March 2025 (UTC)
- For your own wiki, see Manual:Configuring file uploads and then Help:Images for the syntax. For Wikipedia, you use the upload link on Commons (c:Special:UploadWizard) and then use the same syntax to add the image to the relevant article(s) in any Wikipedia. Tactica (talk) 02:15, 6 March 2025 (UTC)
"Edit" only appears on Main Page but not on "Discussion"
[edit]I am a noob. Using version 1.43. I have enabled visualeditor and it appears as "Edit" on the "Main Page", but when I select "Discussion" only "Edit source" appears. I have spent several hours trying to figure it out to no avail. Cthomask (talk) 22:06, 5 March 2025 (UTC)
- I don't think it's designed for talk pages. See Topic:T2q1jtrwx74r3np4, and the "Talk pages" heading at Help:VisualEditor/FAQ. Jonathan3 (talk) 11:44, 6 March 2025 (UTC)
Recent changes missing after migration
[edit]Hello all,
I am running multiple MediaWiki 1.43 instances. As a part of my work, I routinely copy Wikis from my PROD to my DEV environment. I do this by copying /images folder, LocalSettings.php and restoring a mysqldump of PROD databases to a DEV MediaWiki instance. This has worked flawlessly for months.
Recently however, "Recent changes" is empty after the restore in DEV, but only for some Wikis. I've tried rebuildrecentchanges.php which did nothing, and rebuildall.php which did "Removing 'recentchanges.rc_timestamp' default value. Modifying rc_timestamp field of table recentchanges...done." Still no recent changes, though. I've tried dumping with --routines and --skip-triggers and a whole lot of other MySQL parameters, but no joy. I've compared the recentchanges table in DEV and PROD, and from what I can see they are identical. I am by no means a MySQL expert, though.
Anyone who has an idea about what is going on? I'm worried about other things going missing during a copy without me noticing.
136.163.203.4 13:21, 6 March 2025 (UTC)
Editnotice in discussiontools-ui-replyWidget
[edit]Hi there, I have an editnotice on my talk page with my pronouns. This editnotice shows up when the source is being edited or when someone starts a new topic. I would like it to show up when someone is replying to another person as well, since this is probably the most likely moment for someone to need my pronouns. Am I missing something or is this not (yet) possible? Thanks! :) Elphie (talk) (they/them) 11:37, 7 March 2025 (UTC)
Request for Instructions on Hiding Public Logs for Anonymous Users (MediaWiki 1.39.3)
[edit]Hello,
I am using MediaWiki version 1.39.3 and I would like to know how to hide all public logs that are accessible via Special:Log
for anonymous users. Could you please provide me with step-by-step instructions on how to accomplish this?
Thank you in advance.
Best regards Sdelriog (talk) 13:04, 7 March 2025 (UTC)
Mylittlewiki.org
[edit]This part of wiki is an important place for collectors and neerds.
Problem is, the original author does not seem to exist any longer. She disappeared years ago.
There is only a few people over the world that can update now. And they're drowning in information that should be added.
Is it only the original author that can expand the group of administrators? Or is it possible to make some more people admin?
Please help. We're getting desperate.
Christine Tomtlund. Paintdelicious (talk) 15:54, 7 March 2025 (UTC)
- You need a "bureaucrat" account to create admin accounts, and it looks like the owner is the only one with this right on that site. If you absolutely must have more admins and the owner can't be reached, maybe you should consider using Special:Export to export the articles and a spider to download the 8.48 GB worth of images and then replicate the wiki under a new domain. Tactica (talk) 03:01, 8 March 2025 (UTC)
Upgrading Mediawiki through export and import
[edit]Dear all,
I want to upgrade my Mediawiki installation from 1.42.1 to the latest LTS 1.43.0.
I've read the upgrade documentation and it seems to me quite difficult and error prone.
Considering that:
- my wiki is really small (20 pages more or less);
- I only modified 4-5 lines in LocalSettings.php;
- I only installed a couple of extension and I'm using the default skin;
I'm thinking of:
- creating a new subdomain;
- making a fresh installation of 1.43.0 on the new domain; with all extensions I'm using on 1.42.1;
- merging the old LocalSettings.php (1.42.1) into the new LocalSettings.php (1.43.0);
- copying the images directory;
- export all pages an importing them in the new wiki (Special:Export + Special:import)
Do you think this could be easier than following the upgrade procedure?
Regards,
Massimiliano 94.32.36.29 00:25, 8 March 2025 (UTC)
- For a wiki with 20 articles and a couple of extensions, your plan sounds overkill. It would be far simpler to just overwrite your MW installation with 1.43.0 and updated versions of those extensions, backup the database just in case and then run maintenance/update.php to upgrade it. This presumes you have all the requirements to run MW 1.43. Tactica (talk) 02:37, 8 March 2025 (UTC)
- It's not meant to be a great idea to overwrite the files. But it would be nearly as easy to use a separate directory to download the 1.43 files and compatible versions of the two extensions, copy the images and LocalSettings.php across, and run update.php. Jonathan3 (talk) 23:28, 8 March 2025 (UTC)
Double links after validate a text modification
[edit]Hello
I installed Mediawiki on a server (Debian/Apache), directory /var/lib/mediawiki
In the directory /var/www/html I added a link
docs -> /var/lib/mediawiki
When I call the link mon-site/docs/index.php/Accueil I display the page, it works
But when I want to make a modification of a page and I click on Validate. I don't return to the previous page. The URL has been change, the link to my site is double mon-site/docs/mon-site/docs/index.php/Accueil
What parameter does this modification make ?
Thanks 46.193.144.242 16:15, 8 March 2025 (UTC)
Unable to import wiki dump using Special:Import or importDump.php
[edit]Hi, I'm trying to fork my Fandom wiki, eventually to a custom domain, but for now only locally hosted. I'm having many issues importing the xml dump of my wiki to my new database. I'm in way over my head, I have no experience with mysql or php, just the frontend stuff.
Initially I tried using the maintenance scripts such as importDump.php as per the Manual:ImportDump.php article, but I keep getting this error in return:
PS D:\Wiki Files\htdocs\wiki\maintenance> php importDump.php --conf ../LocalSettings.php /destinycollect_pages_current.xml --username-prefix="w:c:destinycollect"
*******************************************************************************
NOTE: Do not run maintenance scripts directly, use maintenance/run.php instead! Running scripts directly has been deprecated in MediaWiki 1.40. It may not work for some (or any) scripts in the future.
*******************************************************************************
PHP Warning: fopen(/destinycollect_pages_current.xml): Failed to open stream: No such file or directory in D:\Wiki Files\htdocs\wiki\maintenance\importDump.php on line 296
Warning: fopen(/destinycollect_pages_current.xml): Failed to open stream: No such file or directory in D:\Wiki Files\htdocs\wiki\maintenance\importDump.php on line 296
fopen(/destinycollect_pages_current.xml): Failed to open stream: No such file or directory
I'm not sure if I'm doing something wrong, or if the script just no longer works as the warning suggests. I see it's apparently having trouble finding my xml file, though I placed it in the maintenance folder for simplicity's sake, but like I said, I don't know if that's the actual problem or not. I also couldn't find anything explaining how to work run.php for this purpose.
Next I tried the Special:Import page of my wiki. I have had multiple different errors with this method, the following being the latest one:
[1b039779a0e57e43db782d99] /wiki/index.php?title=Special:Import&action=submit Wikimedia\Rdbms\DBTransactionStateError: Cannot execute query from LCStoreDB::get while transaction status is ERROR
Initially, I was running into issues with the maximum execution time, which was defaulted to 120 seconds in my php.ini file. I changed it to 3600 (really not sure how long it should take, my wiki is ~320 articles with various categories and templates), and after a couple errant issues like the attached one, I eventually ran into a problem with the memory limit being exceeded. I changed that from 512M to 1024M. Then I set it to run overnight, and this morning it had reached the time limit again, which I increased again to 24 hours. Now I'm running into the attached error each time.
The approach used in the Manual:Importing XML dumps article is appealing, but I honestly have little clue what I'm looking at here. It's clearly intended for those with more experience.
I tried to provide my LocalSettings.php and php.ini files for reference, as well as screencaps of my error messages, but external links are unallowed it seems. In any case, help would be greatly appreciated. As I said, I don't know what I'm doing! If anyone has any up to date learning resources as well, I'd be glad to be pointed in the right direction. Thanks! Ironybee523 (talk) 17:58, 8 March 2025 (UTC)