Project:Support desk/Flow/2024/07
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
| This page is an archive. |
| Please ask questions on the current support desk. |
Increase hard limit of output from template
I am working on a project to translate a collection of over 5,000 songs into Spanish. To generate a list of all songs translated I am using the Special:PrefixIndex template as seen at: https://es.sarkarverse.org/wiki/Usuario:Abhidevananda/zona_de_pruebas
However this only generates the first 345 results. I need to see all of the results (currently over 2600). Is this possible... in this fashion or by some other means? Please note that I need the results as a single list on a single page, not stetching over multiple pages.
Thanks. Abhidevananda (talk) 05:04, 1 July 2024 (UTC)
- You can do this by editing
$MaxPerPageonSpecialAllPages.php(currently set to 345). Note that you may run into other issues when changing it, such as timeouts. Leaderboard (talk) 06:38, 1 July 2024 (UTC) - The DPL extension might be a better option. Bawolff (talk) 06:43, 1 July 2024 (UTC)
- Wow! @Leaderboard and @Bawolff Thank you so much for the quick and helpful replies. I will try the extension first and then - if I can't get that to work - editing the SpecialAllPages.php. Abhidevananda (talk) 09:05, 1 July 2024 (UTC)
502 Bad Gateway when accessing a particular page with any account logged in
This is weird.
I'm currently using MediaWiki 1.40.1+PHP 7.4.33+nginx 1.18.0. There's (so far I found) only one page on my wiki that behaves weird. If I access that page with my administrator account logged in, the page returns 502. The same happens for non-admin accounts.
The output in /var/log/nginx/access.log after I tried to access the page on my computer is as follows:
[01/Jul/2024:14:37:49 +0800] "GET <XXX> HTTP/1.1" 502 559 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
[01/Jul/2024:14:37:52 +0800] "GET /load.php?modules=skins.citizen.serviceWorker&only=scripts&raw=true&skin=citizen&version=akqj0 HTTP/1.1" 304 0 "/load.php?modules=skins.citizen.serviceWorker&only=scripts&raw=true&skin=citizen&version=akqj0" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
and there's no output about this wiki site in error.log.
If I log out of my account, the page is shown as usual with no data loss. The page content retrieved through curl in command line is also normal.
I searched through the Internet but found no clues. The sole related solution is mentioned in https://stackoverflow.com/questions/67062607/nginx-returns-502-to-browsers-but-works-fine-with-curl and linked to a media wiki support desk topic which suggests setting $wgDisableOutputCompression to true. Unfortunately, no luck.
This problem is so weird to me. So I come here to seek for help. Subilan1234 (talk) 07:05, 1 July 2024 (UTC)
- 502 usually means a timeout. You might have more info on nginx error log (instead of php error log)
- Sometimes different users might have different cachability, which might mean that logged out hits cache but admin does not and hits timeout.
- Is the contents of that page particularly complex. Bawolff (talk) 17:59, 1 July 2024 (UTC)
- Yes, the content is long and complex to some extent. I'll check if there are other error logs present. Thanks. Subilan1234 (talk) 03:57, 2 July 2024 (UTC)
- Is this related to the use of Cloudflare? The error page suggests it's a host error, "The web server reported a bad gateway error", but there's no error logged in nginx error log (
/var/log/nginx/error.log) and PHP error log(/var/log/php7.4-fpm.log). I can't find any. - Interestingly when I added
error_reporting( -1 ); ini_set( 'display_errors', 1 );to LocalSettings.php, the page becomes accessible at once (Why?), with some extra lines displayed. - Notice: Array to string conversion in extensions/VisualEditor/includes/Hooks.php on line 889
- (repeated, about 50 lines)
- Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80
- Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80
- <Here, the original content is shown without error>
- Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80
- Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80
- Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80
- Warning: Cannot modify header information - headers already sent by (output started at extensions/VisualEditor/includes/Hooks.php:889) in includes/Request/WebResponse.php on line 80
- I think none of these warnings are of any use or related. If I remove the two lines from LocalSettings.php, the page returns 502 on refresh right away.
- There must be something wrong but is there any way to see the error directly? The error seemed invisible now as both nginx error log and php error log show no clue and turning on error_reporting in LocalSettings.php also gives no useful information. Subilan1234 (talk) 04:51, 2 July 2024 (UTC)
Deleted Images
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi! you know there is "deleted" folder at images folder. How to remove correctly ll files at this folder? Fokebox (talk) 08:27, 1 July 2024 (UTC)
- There is deleteArchivedFiles.php. Osnard (talk) 08:43, 1 July 2024 (UTC)
- Yes I ran this script. But it there is a result:So it doesn't look like a true as I looked to delete folder and there are a lot of files. I don't know, may be it makes sense that I have wiki farm and shared DB of files and other stuff?! Fokebox (talk) 08:49, 1 July 2024 (UTC)
Searching for and deleting archived files... Done! [1 file(s)]
- I found a solution with my farm wiki:I have to specify which wiki I shall use for script running. Fokebox (talk) 08:59, 1 July 2024 (UTC)
php deleteArchivedFiles.php --delete --wiki ru
Spam from mediawiki script
Hello guys,
I have a customer that run just mediawiki at their cpanel account at propriedadeintelectual.wiki.br and your script are disparing spam. Can you help me please?
I already updated the script.
Time: Sun Jun 30 23:57:44 2024 -0300
Path: '/home/propried/public_html'
Count: 101 emails sent
Sample of the first 10 emails:
2024-06-30 23:02:21 cwd=/home/propried/public_html 5 args: /usr/sbin/sendmail -t -i -f email@propriedadeintelectual.wiki.br
Possible Scripts:
Time: Mon Jul 1 19:55:43 2024 -0300
Type: LOCALRELAY, Local Account - propried
Count: 101 emails relayed
Blocked: No
Sample of the first 10 emails:
2024-07-01 19:30:48 1sOPXr-0004Oq-2L <= email@propriedadeintelectual.wiki.br U=propried P=local S=1589 id=propried_mw-mwpi_.66832e1737dd92.45706034@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for isabella.dacosta73@festivaldomingosmartins.com.br
2024-07-01 19:31:00 1sOPY4-0004SY-06 <= email@propriedadeintelectual.wiki.br U=propried P=local S=1570 id=propried_mw-mwpi_.66832e23ca5fc9.59544495@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for christianrichardson41@turu.ophixy.com
2024-07-01 19:31:01 1sOPY5-0004T9-0Q <= email@propriedadeintelectual.wiki.br U=propried P=local S=1541 id=propried_mw-mwpi_.66832e24e91c76.05179894@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for ch5yohorta@outlook.com
2024-07-01 19:31:02 1sOPY6-0004V4-0Q <= email@propriedadeintelectual.wiki.br U=propried P=local S=1561 id=propried_mw-mwpi_.66832e260a5cc4.60198161@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for elmogoodenough60@happy.ylixo.com
2024-07-01 19:31:08 1sOPYC-0004a9-0k <= email@propriedadeintelectual.wiki.br U=propried P=local S=1553 id=propried_mw-mwpi_.66832e2c1f3dc1.01267558@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for ilsebrauer91@frio.dravix.org
2024-07-01 19:31:23 1sOPYR-0004eU-2U <= email@propriedadeintelectual.wiki.br U=propried P=local S=1558 id=propried_mw-mwpi_.66832e3b94a6d8.74043617@propriedadeintelectual.wiki.br T="Propriedade Intelectual email address confirmation" for chauchristmas31@every.hivoltz.org 187.108.15.9 (talk) 23:27, 1 July 2024 (UTC)
- what makes you think these are spam? Bawolff (talk) 01:06, 2 July 2024 (UTC)
Elastria and CirrusSearch extensions not work?
I added these extensions because I heard that they can hide redirects from the search bar. But it doesn't work? Do I need to wait a bit for it to hide redirects? I use version 1.41.1. Tang Empire (talk) 00:03, 2 July 2024 (UTC)
- I'm not 100% sure but I don't think cirrussearch does that... Bawolff (talk) 01:07, 2 July 2024 (UTC)
- I heard Wikipedia uses it to do that. Are there any other alternative solutions? Tang Empire (talk) 01:57, 2 July 2024 (UTC)
Increase limit on list of articles (per Category page)
On my project, I have a category that currently includes 3262 articles. When I go to that Category page, I can only view 200 articles at a time. I would like to see all 3262 articles listed on a single page (without having to navigate from page to page, 200 results at a time). I need to allow for an output of 6000 results on any Category page. How can I make that possible? For reference, please see https://sarkarverse.org/wiki/Category:Songs_of_Prabhat_Samgiita
Thanks again. Abhidevananda (talk) 07:03, 2 July 2024 (UTC)
I just installed MediaWiki 1.42, and I get fatal error connecting to DB
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Original exception: [ac5e92b0d2f6ecce1f33f1a8] /index.php Wikimedia\Rdbms\DBConnectionError: Cannot access the database: Access denied for user 'wiki_user'@'192.168.0.5' (using password: YES) (192.168.0.20)
It says the user is denied, but I used the same user that I installed with, and the installer had no trouble installing the tables.
Can someone explain why it can't connect to the DB? DB is remote, in the same network. Sir Berzerk (talk) 20:31, 2 July 2024 (UTC)
- I'm using mariadb also. Sir Berzerk (talk) 20:32, 2 July 2024 (UTC)
- Found out the cause, I needed to restart my php-fpm. Sir Berzerk (talk) 22:30, 2 July 2024 (UTC)
Automated way to add a Category to all pages in Namespace "Main"
Hi again. I have a wiki with close to 3000 articles in Namespace Main. Now I need to add a Category (the same category) to all of those articles (with only a few exceptions). I am looking for an automated way to do this, maybe a regex in Special:ReplaceText (or possibly in some other extension). I have researched this but could not find specific instructions. If this can be done, what would the regex(s) be... presumably in two parts (one for the Search string and the other for the Replace string? Thanks. Abhidevananda (talk) 05:26, 3 July 2024 (UTC)
- Maybe something like https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser would be useful, but i dont know if it can be used outside wikipedia. Bawolff (talk) 00:12, 4 July 2024 (UTC)
- Thanks, Bawolff. Just found the answer through AI.
Search for: (.+)$Replace with: $1\n- Here’s a breakdown of what these expressions do:
(.+)$: This matches the entire content of the page.$1\n: This appends the category tag to the end of the content.- Make sure to replace YourCategoryName with the actual name of the category you want to add. (Sorry, I had trouble typing all of the Replace string. Immediately after the $1\n must come two opening square brackets, then Category:YourCategoryName followed by two closing square brackets.)
- I also found that for such a large number of results in the ReplaceText extension I had to extend the result limits from the default 250 to a much higher number. But the instructions for doing this (adding a line in LocalSettings) were explained in the ReplaceText extension doc.
- Appreciate all your help. Abhidevananda (talk) 03:04, 4 July 2024 (UTC)
LDAP Login
Dear Community,
I hope this message finds you well. I am facing a challenge in setting up LDAP login in my MediaWiki version 1.41 and am in need of urgent assistance.
Specifically, I am looking for someone experienced in configuring and setting up LDAP login in MediaWiki. I would greatly appreciate any help or guidance you can provide.
Your assistance would be greatly appreciated. Please do not hesitate to reach out if you have the necessary expertise or know someone who might be able to assist me.
Thank you in advance! 141.88.235.198 (talk) 09:31, 3 July 2024 (UTC)
- Have you checked out documentation at LDAP hub? If you get stuck, I can probably support you. Osnard (talk) 09:43, 3 July 2024 (UTC)
- Dear Support Team,
- I hope this message reaches you safely. I would like to inform you that I have looked at the instructions in LDAP HUB. Therefore, I would like to use the following configuration to manage LDAP authentication and authorization:
Extension: LDAPProviderExtension: LDAPAuthorization- I use the configuration in
LocalSettings.php. $LDAPProviderDomainConfigProvider = function() {$config = ["akg.lan" => ["connection" => ["server" => "ldap://akg-dc-01","user" => "CN=Administrator,CN=Users,DC=AKG,DC=LAN","pass" => "testtestt","basedn" => "DC=AKG,DC=LAN","groupbasedn" => "DC=AKG,DC=LAN","userbasedn" => "DC=AKG,DC=LAN","searchattribute" => "samaccountname","searchstring" => "Administrator@akg.lan", // Replace USER-NAME with actual username"usernameattribute" => "samaccountname","realnameattribute" => "cn","emailattribute" => "mail","grouprequest" => "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\GroupMember::factory"],"authorization" => ["rules" => ["groups" => ["required" => [ "CN=Mediawiki,OU=Groups,DC=AKG,DC=LAN" ] // Adjust group DN as needed]]],"groupsync" => ["mechanism" => "mappedgroups","mapping" => ["sysop" => "CN=Projektmanagement,OU=Groups,DC=AKG,DC=LAN", // Map sysop and bureaucrat groups"bureaucrat" => "CN=Mediawiki,OU=Groups,DC=AKG,DC=LAN"]],"userinfo" => ["email" => "mail","realname" => "cn",// Add additional user info mappings as needed]]];return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray($config);};- Then i run this comands:
php maintenance/update.php --quickphp maintenance/rebuildLocalisationCache.php- Then when i Try to login on mediawiki i see this:
- "The credentials provided could not be verified."
- Could you please provide guidance or assistance regarding the setup of LDAPProvider and LDAPAuthorization for this purpose? Any documentation or step-by-step instructions you can share would be greatly appreciated.
- Thank you in advance for your prompt attention to this matter. I look forward to your response.
- Best regards, 141.88.235.198 (talk) 12:03, 3 July 2024 (UTC)
- Please wire debug logs and then try to use the CLI script
php extensions/LDAPProvider/maintenance/CheckLogin.php --domain=akg.lan --username=<someusername>to test the login. Share a redacted version (may contain sensitive data) of the debug logs here. Osnard (talk) 06:04, 8 July 2024 (UTC)
What's the situation with Structured Discussions?
I wonder what extensions are recommended atm if you need comments or a forum.
On Structured Discussions I read that the project ended in November 2023 and everyone is advised to archive their discussion (what the?). Is there a follow-up? On the other hand this very support desk uses exactly this?
What should I use if I start a wiki nowaydays and want future-proof comments under article pages instead of talk pages?
- Extension:Comments looks very old.
- What will mediawiki.org use? Subfader (talk) 10:17, 3 July 2024 (UTC)
- Structured discussion is dead, I wouldn't use it. I'd argue it is impossible to maintain for 3rd parties, with a lot of exceptions and interventions that differ from how we do things in MW.
- Everything Wikimedia will eventually switch to using DiscussionTools. —TheDJ (Not WMF) (talk • contribs) 11:39, 3 July 2024 (UTC)
- Thanks. Let's hope this will be supported longer than Flow. Subfader (talk) 11:53, 3 July 2024 (UTC)
- I have a much better feeling about discussion tools than flow. Its already been fairly well recieved by the community, where flow was controversial right out of the gate. I think it has staying power (just my 2 cents, i dont have access to a crystal ball any more than anybody else) Bawolff (talk) 00:08, 4 July 2024 (UTC)
- @Subfader: Out of general curiosity, exactly what is the problem with Comments? As the maintainer and primary developer of it since 2011, I'd be curious to know. :) Its User Interface is pretty stable and definitely not using the latest fancy design things, but it gets the job done. (I'll admit, though, that OOUI did end up lasting for several years longer than it did, but that, too, is being phased out and I'm sure that the successor will also be sunset in favor of a newer, shinier gadget, give it some time. Not using these sort of frameworks comes with the unexpected benefit of your code working regardless, if you can tolerate a somewhat "dated" looking UI.)
- For the record: the initial version was written circa 2006 (!) and as it (like other social tools originating from ArmchairGM which enable new content types, like Extension:FanBoxes, Extension:LinkFilter, Extension:Video, ...) predates MediaWiki's ContentHandler system by many years, it does things in a way which isn't ideal, yet it's surprisingly functional and shockingly robust (in my biased opinion), because even major core changes aren't likely to disrupt this little extension which does things in its own way.
- Some people argue that "no recent code commits" (or something similar) equals to a dead project. I largely disagree; while it may mean that the end-user should exercise a bit of caution and carefully test things etc., not all MediaWiki developers are huge fans of "move fast and break stuff", which, alas, seems to be all too common these days. Sure, it bumps up a repository's commit count a lot, but what for, and at what cost?
- Now, as for Comments' actual architectural shortcomings...while the comments are associated with a(n existing wiki) page, they are indeed in other ways separate, they are not regular wiki page content or anything. So implementing a history interface (phab:T156736) or the ability to undelete previously deleted comments (phab:T127595) is very tricky, to say the least, and I for one would be very surprised (but in a positive way!) to see those implemented before Comments turns 20 years old in 2026. Jack Phoenix (Contact) 12:24, 3 July 2024 (UTC)
- Sorry, not old as outdated code but interface-wise. From the screenshots it looks like forum discussions from early 2000s.
- Do you know of sites that use it which you could link or mail me?
- In over 15 years I went from ArticleComments to some forum extension I forget and then Flow. Each time I was forced to throw away all old comments and posts. Not funny when you try to run a community. This timed I prefer some more LTS. Subfader (talk) 18:35, 4 July 2024 (UTC)
- CSS wizards can probably suggest tweaks to the existing styles to make 'em more modern. I'm not enough of a CSS guru nor "modern" to know, though. :) The look hasn't bothered me and nobody's submitted a patch to improve things, so alas. As always, patches are more than welcome (but as a volunteer I cannot guarantee that they would definitely be tested/reviewed in a given time, or merged)!
- Comments is one of those social tools extensions which doesn't even require SocialProfile and it's a pretty popular, basic functionality, so I'd expect plenty of sites out there to use it. (If only WikiApiary was a bit more stable...) Here's an example page on Brickipedia, the LEGO encyclopedia hosted by ShoutWiki, which uses comments.
- Ah, ArticleComments...I remember that. It's been a while, eh? Out of sheer curiosity I did some digging, dug up the MW 1.20-compatible version and tried getting it working. It wasn't even that difficult, although it's still not working perfectly for me locally. The code somewhat shows its age, although admittedly its brilliance is that the "comments" are indeed just regular wiki edits on a regular wiki page. For example, the PostComment extension by wikiHow took a similar approach.
- Flow was always dead-on-arrival software, but the problem was that you couldn't say it out loud that the Emperor has no clothes. I'm sorry you ended up wasting your time with it. The WMF has a rather poor track record with discussion-related extensions, although Extension:DiscussionTools is doing better than Flow ever did and it has been more positively received by the various communities on WMF web properties.
- Migrations absolutely are horrible to do, and it's oftentimes just uncharted territory, and basically always so with MediaWiki extensions (e.g. "how do I migrate from extension X to Y or Z?"). There are various reasons as to why, but I think the main ones are technical complexity and a ridiculously small target audience, plus probably funding or the lack of thereof.
- Predicting the future is, of course, impossible. There are many reasons why some of the social tools are kinda horrible, as I explained in my earlier response; and yet, bizarrely enough, these same reasons might also be why they're surprisingly great (in my biased opinion, of course). Comments and others precede ContentHandler by several years, and while this has rather obvious drawbacks, it also means that these extensions have stayed surprisingly stable over the years (or decades, I should say, for a lot of them will be turning 20 years old in ~2-3 years (!)) by not relying on the standard MediaWiki way to do things. Whether this is or isn't something you want is a question only you (and your community) can answer.
- Also, I should point out that there are probably some other, likely even better commenting/discussion-related extensions. I just happen to be most familiar with the extension that I maintain. Jack Phoenix (Contact) 22:41, 13 July 2024 (UTC)
Using Phonos with Top Icon
Hello! I post this here, because at Help_talk:Extension:Phonos has been suggested to use this page. I am trying to understand the possibilities to use Phonos in some creative ways. At en:Wikipedia:Spoken_articles we have a list of articles with spoken version (see, for example, en:2 Broadway. The project adds a Top Icon loudspeaker, which goes to the file itself when clicked, instead of being in the page (which may be better for people who wants to use the spoken version without leaving the page). I wonder if there would be a way to combine both things, and have the audio played directly when clicked the top icon. I could get the Phonos loudspeaker up there, but I don't know if there is a better option (like using the custom loudspeaker). Thanks! Theklan (talk) 15:13, 3 July 2024 (UTC)
- It should be possible with e.g.
'"`UNIQ--indicator-0000000D-QINU`"'but it seems not to work because the click handler is only looking within #mw-content-text and the indicators area is outside that. We should probably also add the wikipage.indicators hook. I opened T369262. Sam Wilson 09:12, 4 July 2024 (UTC) - Thanks! Theklan (talk) 09:15, 4 July 2024 (UTC)
Mediawiki keeps redirecting to old IP after the server got a new IP
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I installed mediawiki at work and it has been working without issues. But recently I changed ip addresses of my server from 192.168.80.30 to 172.16.9.10 but whenever i am trying to access mediawiki is redirecting to old ip address. Kindly assist. i have been trying to search localsetting but i am not lucky to find it? Kmuriuki (talk) 09:45, 4 July 2024 (UTC)
- Try to clean cache Fokebox (talk) 11:03, 4 July 2024 (UTC)
- Thanks Kmuriuki (talk) 11:39, 4 July 2024 (UTC)
- Check the value of $wgServer in LocalSettings.php Bawolff (talk) 18:25, 4 July 2024 (UTC)
The link icon is not displayed

In the timeless skin, there was originally a link svg in the upper right corner of the inserted link text, but it was not displayed Kohana240 (talk) 12:22, 4 July 2024 (UTC)
- Dear Wikimedia Support Team,
- content strikken
- [edited by administrator]
- @Srigurukripa this is a support desk for the software and not a general appeals platform. So not only are you in the WRONG place, you added your comment to a random other thread, using an alternate account from your actual account. Please don't. -- User:TheDJ Srigurukripa (talk) 13:24, 4 July 2024 (UTC)
- @TheDJ can you please tell me from where I can get support. can you please help by providing me support desk link of Wikipedia. Srigurukripa (talk) 15:15, 4 July 2024 (UTC)
- https://en.wikipedia.org/wiki/Wikipedia:Appealing_a_block but please dont hijack threads. Bawolff (talk) 18:23, 4 July 2024 (UTC)
- Hmm.. Can anybody please help me with this problem. I will be very thankful. Kohana240 (talk) 17:18, 4 July 2024 (UTC)
- @Kohana240: to clarify you mean the little square with an arrow pointing out of it, icon that comes after external links. E.g. like like this ?
- If your wiki is public, a link to it would be helpful. Bawolff (talk) 18:29, 4 July 2024 (UTC)
- Yes. The icon after the link is always not displayed. And the link of the website is soka.cafe. It is a Chinese website. Kohana240 (talk) 14:25, 5 July 2024 (UTC)
- soka.cafe is the link Kohana240 (talk) 14:23, 5 July 2024 (UTC)
- The external link icon is supposed to be located at https://soka.cafe/skins/Timeless/resources/images/ext-link.svg - however i think the short url setup is intercepting the url and treating it as an article, preventing MediaWiki from loading the icon. What url MediaWiki uses for this is controlled by $wgStylePath.
- p.s. I love the customization of the Timeless skin, it is very pretty. Bawolff (talk) 23:09, 5 July 2024 (UTC)
- Thank you very much! Kohana240 (talk) 07:47, 6 July 2024 (UTC)

Profile 
Pseudo-static - How should I set $wgStylePath? I try many ways to solve this problem. I found if I set the profile of the website, the svg displays, but the File, Mediawiki pages can't load. Maybe because of my terrible skill. But if I set the pseudo-static of the website, all pages can load corrctly. Only the link's svg can't display. Kohana240 (talk) 14:51, 13 July 2024 (UTC)
Replacing site name with image
Hello, I'm looking on how to replace the site name with an image like how Wikipedia.org has the globe logo as site image and a WikipediA text logo in the place of the site name...
Can anyone help me on this matter? 213.204.92.109 (talk) 11:58, 5 July 2024 (UTC)
getting all pages in a category
hello, how is there any way to get (crawl) all pages in a category? including pages in sub-categories in that category.
using api or pywiki
thank you WASP-Outis (talk) 12:37, 5 July 2024 (UTC)
Links disappeared?
Hi,
On this Wiki there used to be several links for years. They are still in the code, but for reason have disappeared of the actual pages. Any idea how I can fix this?
https://wiki.musicmeter.nl/index.php/Verborgen_functionaliteiten 2A02:A212:A500:DE00:153A:A1F4:EE3E:F66F (talk) 22:43, 7 July 2024 (UTC)
- Looks fine to me Bawolff (talk) 00:55, 8 July 2024 (UTC)
- Sorry, but I only see them in the code and not on the actual page. This goes for all the pages on https://wiki.musicmeter.nl.
- Not sure how to send a screenshot here. 193.176.221.102 (talk) 11:40, 9 July 2024 (UTC)
Extensions Setup
I cloned chessBrowser repo in extensions directory and updated localSettings.php. how could i run its development server and verify the changes made? AnujAgrawal380 (talk) 06:48, 8 July 2024 (UTC)
- Hi!
- Is the extension listed on "Special:Version" of your wiki? If so, you should be able to test the functionality by putting any of the examples listed on Extension:ChessBrowser/Test_games to one out your wiki's pages. Osnard (talk) 10:11, 8 July 2024 (UTC)
- hey i made the necessary changes as provided by T363533. What should i do next? I'm new using gerrit and phabricator.
- Task : https://phabricator.wikimedia.org/T363533 AnujAgrawal380 (talk) 17:34, 8 July 2024 (UTC)
- Also this was docstring task but i'm still not able to figure out how to test extensions.@Osnard AnujAgrawal380 (talk) 17:36, 8 July 2024 (UTC)
- Please see https://developer.wikimedia.org/ and check the fine documentation linked from the mediawiki.org frontpage how to install MediaWiki and extensions. (No need to ping individual people.) Thanks! Malyacko (talk) 20:01, 10 July 2024 (UTC)
Upgrading 1.15 to 1.42 Sql error
Hi Team, Good day We need your assistance for the below , could you please review and assist.
We have a scenario to migrate media wiki to 1.15 to 1.42.. Old server is CentOS7 - as it has EOL , we are planning to migrate to RHEL8. but we are not able to migrate , following this page https://www.mediawiki.org/wiki/Manual:Restoring_a_wiki_from_backup
1. Re-create the database, user and permissions (Created ) 2. Import the database backup (Success - same tables are visible) 3. Import the MediaWiki files (Copied as it is from old server) 4. Check the configuration file (Validated)
the below errors we are able to see , while running " php update.php " PHP Deprecated: DefaultSettings.php is deprecated and will be removed. Use MainConfigSchema::listDefaultValues() or MainConfigSchema::getDefaultValue() instead. [Called from require_once in /var/www/html/mediawiki-1.42.1/LocalSettings.php at line 25] in /var/www/html/mediawiki-1.42.1/includes/debug/MWDebug.php on line 379 PHP Parse error: syntax error, unexpected token "new" in /var/www/html/mediawiki-1.42.1/extensions/calendar/Calendar.php on line 77
Upgrade existing installation
Updating category collations... Selecting next 100 pages from cl_from = 0... An error occurred: Error 1054: Unknown column 'cl_sortkey_prefix' in 'field list' Function: UpdateCollation::execute Query: SELECT cl_from,cl_to,cl_sortkey_prefix,cl_collation,cl_sortkey,cl_type+0 AS "cl_type_numeric",cl_timestamp,page_namespace,page_title FROM categorylinks STRAIGHT_JOIN page ON ((cl_from = page_id)) WHERE (cl_collation != 'uppercase') AND ((cl_from >= 0 AND cl_from < 100)) ORDER BY cl_from 2604:3D09:E485:F900:5160:88A7:E5B8:55B9 (talk) 14:39, 8 July 2024 (UTC)
- 1.15 is too old to do a direct upgrade, you have to do it in steps. See upgrading Bawolff (talk) 05:03, 9 July 2024 (UTC)
How do I hide redirects from search results?
I’m not experienced in MediaWiki commands and stuff, I cannot figure out how to hide redirects from search bar results. I want it to be like Wikipedia where redirects are hidden. I tried putting __NOINDEX__in a page but it didn’t work. I’m using version 1.41.1 Tang Empire (talk) 16:31, 8 July 2024 (UTC)
- I do not think you can with the default DB search. I requires using CirrusSearch / ElasticSearch —TheDJ (Not WMF) (talk • contribs) 11:15, 10 July 2024 (UTC)
- I installed and configured CirrusSearch and Elastica. What do I do now? Tang Empire (talk) 15:52, 10 July 2024 (UTC)
Микронации Вики
В Микронации Вики отсутствует графа сестемы авторизация , точнее нет графы регистрации но только есть просто вход. Пожалуста доделуйте сайт Микронации Вики чтоб я смог туда регистрироватся. Vlasovdmitrii16 (talk) 23:41, 8 July 2024 (UTC)
- micronation wiki is not operated by us. You would have to direct this question to the site operator.
- Wiki micronation не поддерживается нами. Этот вопрос вам придется задать оператору сайта. Bawolff (talk) 05:00, 9 July 2024 (UTC)
- I think you should following these steps:
- *Check for a "Sign Up" or "Register" Link:
- *Look in the Footer or Header:
- *Contact Site Administrators:
- *Check the Help or FAQ Section:
- *Try Logging In with Common User Accounts:
- *Search Online Forums or Communities: Selenaass23 (talk) 06:58, 9 July 2024 (UTC)
- @Selenaass23 Generic AI-generated answers are not helpful and thus not welcome here. Malyacko (talk) 20:00, 10 July 2024 (UTC)
$wgInterwikiCache not working in MW 1.42?
I recently updated my Mediawiki instance to v1.42, however I am now getting the error :
Deprecated: Use of InterwikiLoadPrefix hook (used in MediaWiki\Extension\Interwiki\Hooks::onInterwikiLoadPrefix) was deprecated in MediaWiki 1.36. [Called from MediaWiki\HookContainer\HookContainer::register in /var/www/vhosts/domain/mediawiki_1_42/w/includes/HookContainer/HookContainer.php at line 436] in /var/www/vhosts/domain/mediawiki_1_42/w/includes/debug/MWDebug.php on line 379.
And yet I have interwiki.php defined in the cache folder, and I'm requiring it in LocalSettings.php:
$wgInterwikiCache = require "$IP/cache/interwiki.php";
Has something else changed in these regards in MW 1.42? I shouldn't get this error when the $wgInterwikiCache variable is defined? Lwangaman (talk) 09:50, 9 July 2024 (UTC)
- do you have the correct version of Interwiki extension for your version of mediawiki? Bawolff (talk) 10:00, 9 July 2024 (UTC)
- I have the version that is bundled with Mediawiki. extension.json says v. 3.2.
- I install fresh Mediawiki instances by downloading the tar.gz and extracting:
wget https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.1.tar.gzLwangaman (talk) 10:52, 9 July 2024 (UTC)- just for good measure, I tried removing the Interwiki folder from extensions, and git cloning the extension from gerrit from branch REL1_42. Then I ran maintenance update scripts and
composer upfor good measure, but no change, still getting the same error. Lwangaman (talk) 11:01, 9 July 2024 (UTC) - I might also add that I had it working on MW 1.41 before upgrading to MW 1.42, there were no errors, $wgInterwikiCache was requiring the exact same "$IP/cache/interwiki.php". Lwangaman (talk) 12:07, 9 July 2024 (UTC)
- Ok I think I found the answer: I tried setting the
$interwikiCachevariable BEFORE loading the Interwiki extension, and the error seems to have gone away. Up until the last version of MediaWiki it was working fine after loading the extension. Lwangaman (talk) 07:15, 10 July 2024 (UTC) - Actually no, the error has not gone away... Am still seeing it when running maintenance scripts. It was just further up in the message output. Lwangaman (talk) 07:18, 10 July 2024 (UTC)
- Do you have $wgInterwikiCentralDB or $wgInterwikiCentralInterlanguageDB set? It seems like those settings use that hook Bawolff (talk) 10:41, 16 July 2024 (UTC)
- I do have $wgInterwikiCentralDB set:
$wgInterwikiCentralDB = 'seminaverbi_en'; $wgGroupPermissions['sysop']['interwiki'] = true; $wgInterwikiCache = require "$IP/cache/interwiki.php";
- Should I not be setting this anymore? Or should I take any other measures? Lwangaman (talk) 18:20, 16 July 2024 (UTC)
- I have commented out the $wgInterwikiCentralDB setting. If I turn on error reporting, I no longer see a warning in the frontend about the deprecated hook. However when I run jobs on the command line, I still see the deprecation error:
- Lwangaman (talk) 19:18, 16 July 2024 (UTC)
PHP Deprecated: Use of InterwikiLoadPrefix hook (used in MediaWiki\Extension\Interwiki\Hooks::onInterwikiLoadPrefix) was deprecated in MediaWiki 1.36. [Called from MediaWiki\HookContainer\HookContainer::register in /w/includes/HookContainer/HookContainer.php at line 438] in /w/includes/debug/MWDebug.php on line 386 Deprecated: Use of InterwikiLoadPrefix hook (used in MediaWiki\Extension\Interwiki\Hooks::onInterwikiLoadPrefix) was deprecated in MediaWiki 1.36. [Called from MediaWiki\HookContainer\HookContainer::register in /w/includes/HookContainer/HookContainer.php at line 438] in /w/includes/debug/MWDebug.php on line 386
VideoCutTool Gitlab Repo
Could someone please give me VideoCutTool Gitlab repo link? AnujAgrawal380 (talk) 10:51, 10 July 2024 (UTC)
- https://gitlab.wikimedia.org/cloudvps-repos/videocuttool/VideoCutTool —TheDJ (Not WMF) (talk • contribs) 11:13, 10 July 2024 (UTC)
- I was trying to sign in Wikimedia's GitLab, it throwed me this error :
- Your account is pending approval from your GitLab administrator and hence blocked. Please contact your GitLab administrator if you think this is an error. AnujAgrawal380 (talk) 07:24, 11 July 2024 (UTC)
- @AnujAgrawal380 Can you please file a request in Phabricator using this form, You can log into Phabricator with your Wikimedia SUL account (aka your login on this wiki). P858snake (talk) 08:34, 11 July 2024 (UTC)
- I already have a sperate LDAP account logged in phabricator. Can i fill the from with it? AnujAgrawal380 (talk) 08:58, 11 July 2024 (UTC)
- @AnujAgrawal380 Yes, you can use whatever account you are already using to sign into phabricator. P858snake (talk) 10:13, 11 July 2024 (UTC)
- See Phabricator/Help linked from the Phabricator frontpage. Malyacko (talk) 11:19, 11 July 2024 (UTC)
- I linked my LDAP account with MediaWiki account in phabricator and also filled the form still i didn't got access to gitlab.
- https://phabricator.wikimedia.org/T369807 AnujAgrawal380 (talk) 13:59, 11 July 2024 (UTC)
- Please read the second banner on GitLab again. Malyacko (talk) 17:33, 11 July 2024 (UTC)
Wiki pages with somewhat long titles error when saving
Hello,
I have upgraded to MediaWiki 1.39.7 with the following components:
| Product | Version |
|---|---|
| MediaWiki | 1.39.7 |
| PHP | 7.4.33 (apache2handler) |
| MariaDB | 10.5.25-MariaDB |
| ICU | 74.2 |
I have been getting errors from the web browser such as "The connection was reset" when I try to edit and save pages with somewhat long titles (about 30 characters). Note that the titles are in the Greek alphabet, so I do not know if this plays a role regarding the size of character encoding. From what I read online, the maximum size for a page title is 255 bytes.
Also sometimes when saving is successful, I get lines of the form "<<<<<<< /private/var/tmp/merge-old-6jssyq" incorporated into the page's contents.
Note that I did not have problems of this sort with older versions of MediaWiki (or MySQL). I also do not have any problems with pages that have shorter page titles.
Any help on the matter is appreciated.
Thank you in advance. Kupirijo (talk) 11:39, 10 July 2024 (UTC)
- > I get lines of the form "<<<<<<< /private/var/tmp/merge-old-6jssyq" incorporated into the page's contents
- This sounds like you have a git merge conflict in a file of your mediawiki installation. —TheDJ (Not WMF) (talk • contribs) 12:08, 10 July 2024 (UTC)
- Thank you @TheDJ
- Could you explain how git is involved in this error please? Aren't characters "<<<<<<<<" and ">>>>>>>>" used more widely and not only in git?
- Btw, this type of lines appears in the source of a wiki page, when I am editing a section of the page. Kupirijo (talk) 12:20, 10 July 2024 (UTC)
- merge-old is what was triggering me. That is the prefix for the filenames that git uses when encountering two conflicting versions. —TheDJ (Not WMF) (talk • contribs) 15:08, 10 July 2024 (UTC)
- Greek characters are 2 bytes each. 30 character greek title = 60 bytes. So its probably not a length issue.
- It could also be something going wrong with edit conflict merging which also uses diff3 (and uses the merge-old-xxxxx convention), but i've never heard that happening before. See also manual:$wgDiff3
- Can you check your php error log. Bawolff (talk) 19:08, 10 July 2024 (UTC)
- Thank you. I checked
/var/log/apache2/error.log - and I get
[Thu Jul 11 08:52:19.418457 2024] [core:notice] [pid 137] AH00052: child pid 21546 exit signal Segmentation fault (11)[Thu Jul 11 08:52:19.418818 2024] [core:notice] [pid 137] AH00052: child pid 21052 exit signal Segmentation fault (11)- Also I have the following values in
LocalSettings.php ## Shared memory settings$wgMainCacheType = CACHE_NONE;$wgMemCachedServers = array();- Thank you in advance. Kupirijo (talk) 07:56, 11 July 2024 (UTC)
- Debugging php segfaults can be pretty difficult if you arent familiar with php internals. Normally i suggest updating your version of php to see if that helps. Bawolff (talk) 11:01, 11 July 2024 (UTC)
- Thank you. Shall I update to PHP 8.1? Kupirijo (talk) 06:15, 12 July 2024 (UTC)
- What is the distribution on the server? Or do you operate in a container? Want (talk) 07:57, 12 July 2024 (UTC)
- Hi. By "distribution" do you mean the current version of PHP? If yes, it is on the first message in the thread (7.4.33 (apache2handler)). I am running the wiki locally (MacOS). Kupirijo (talk) 11:16, 12 July 2024 (UTC)
- Ok. If MasOS used, probably is created any container. It is possible that something is missing from it. Want (talk) 20:21, 12 July 2024 (UTC)
- https://kb.opclabs.com/Special:Version is MediaWiki, which I upgraded from MW 1.35 before month Want (talk) 07:58, 12 July 2024 (UTC)
- Looks nice! Is this running on a VM? Is this https://bitnami.com/stack/mediawiki/cloud? Kupirijo (talk) 06:39, 19 July 2024 (UTC)
- Yes, but not use bitnami prefabricated package. It's Debian on a VM, with MW instalation from Git repositories. Want (talk) 10:49, 19 July 2024 (UTC)
- What is the distribution on the server? Or do you operate in a container? Want (talk) 07:57, 12 July 2024 (UTC)
- Its worth a shot. Bawolff (talk) 06:24, 12 July 2024 (UTC)
- I have upgraded to PHP 8.2 from Homebrew but the segmentation fault persisted. I have then installed Apache2 (httpd) from Homebrew and deactivated the built-in Apache2 and the segmentation fault disappeared! Kupirijo (talk) 07:19, 1 September 2024 (UTC)
RuntimeException on Main Page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I just upgraded to MediaWiki 1.42.1 and now I get a RuntimeException on any content page.
The error message is as follows:
[Zo7mSqEjpbLgQB5NVrqDPwAAAgg] /wiki/index.php?title=Main_Page RuntimeException: Could not open '/home/brassgog/tmp_a5xawf/mw-GlobalIdGenerator1087-UUID-128'.
There is also a backtrace, but the spam filter won't allow me to post it.
My wiki is at https://brassgoggles.net/wiki/ Short of nuking it from orbit, how can I fix this? VonCorax (talk) 19:57, 10 July 2024 (UTC)
- Try just deleting the file /home/brassgog/tmp_a5xawf/mw-GlobalIdGenerator1087-UUID-128 . Sometimes this file gets created with wrong permissions if you run maintenance script as wrong user,but its safe to delete and that usually fixes it. Bawolff (talk) 06:05, 12 July 2024 (UTC)
- That file already doesn't exist. There is no directory /home/brassgog/tmp_a5xawf . VonCorax (talk) 23:55, 12 July 2024 (UTC)
- Is $wgTmpDirectory pointing somewhere writable by whatever user mediawiki is running as? Bawolff (talk) 00:26, 13 July 2024 (UTC)
- No. It's pointing to tmp_a5xawf . I assume you want me to set to to something that does exist? VonCorax (talk) 21:46, 13 July 2024 (UTC)
- I changed it to /home/brassgog/tmp, and that seems to have fixed the problem. Thanks. VonCorax (talk) 22:17, 13 July 2024 (UTC)
Links to Special:UserLogin and other pages render the wrong page
I have a problem where a number of 'Special' links such as those below render the Main_Page and not the special page in question. This means that the Login, Page Logs, Create Account and other links are broken.
This site in question is https://b58.wiki
```
/wiki/Main_Page?title=Special:Log&page=Main+Page
/wiki/Main_Page?title=Special:UserLogin&returnto=Main+Page&returntoquery=page%3DMain%2BPage
/wiki/Main_Page?title=Special:CreateAccount&returnto=Main+Page&returntoquery=page%3DMain%2BPage
```
My virtual host config is
```
<VirtualHost *:443>
ServerAdmin webmaster@b58.wiki
ServerName b58.wiki
DocumentRoot /var/www/b58.wiki/
<Directory /var/www/b58.wiki/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/b58-wiki-error.log
CustomLog ${APACHE_LOG_DIR}/b58-wiki-access.log combined
SSLCertificateFile /etc/letsencrypt/live/b58.wiki/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/b58.wiki/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
```
And I have a .htaccess file (/var/www/b58.wiki/.htaccess) as follows:
```
RewriteEngine On
# main rewrite rule
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
```
The apparently relevant settings in /var/www/b58.wiki/w/LocalSettings.php are
```
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
$wgScript = "";
$wgUsePathInfo = true;
## The protocol and server name to use in fully-qualified URLs
$wgServer = "https://b58.wiki:443";
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
```
I note that on your wiki, for example, the login link is of the form /w/index.php?title=Special:UserLogin&returnto=Project%3ASupport+desk which is different that the login links generated by my mediawiki instance. If I manually type out this URL path and query into my wiki, I get a redirect to a new article called '/W/index.php' (with the text There is currently no text in this page...).
Software versions are
MediaWiki: 1.41.0
PHP: 8.1.2-1ubuntu2.18
Debug panel is currently installed on the site.
This has defeated me for a day or so. I can't see what the problem would be. Any pointers or fresh eyes would be much appreciated. Townsonj (talk) 21:51, 10 July 2024 (UTC)
- The problem turns out to be that either after installation (or somewhere in the shortURL documentation, I'm not sure), the LocalSettings.php has
- $wgScript = "";
- This overrides the default and correct value, which is $wgScript = "$wgScriptPath/index.php"; Townsonj (talk) 07:05, 11 July 2024 (UTC)
Wikimedia\Rdbms\DBConnectionError - LoadBalancer.php: Cannot access the database: Unknown error ()
I have upgraded my mediwiki from 1.24 to 1.35. but now my DB connection didn#t work.
When I do the online upgarde everythink looks ok.
=> Upgrade complete.
You can now start using your wiki.
And than: #0 /usr/www/users/tjifyn/wiki_1.35.14/includes/libs/rdbms/loadbalancer/LoadBalancer.php(937): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
and so on ...
I can connect with CLI to my DB:
tjifyn@dedi4039:~$ mysql -u i**** -p i*****
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 31790822
Server version: 10.5.23-MariaDB-0+deb11u1 Debian
my LocalSettings.php
$wgDBtype = "mysql";
$wgDBserver = "dedi4039.your-server.de";
$wgDBname = "i**********";
$wgDBuser = "i*********";
$wgDBpassword = "a***********";
# $wgDBport = "3306";
$wgDBprefix = "";
thx 4 your help! Mulch23 (talk) 06:42, 11 July 2024 (UTC)
- Does it help if you change $wgDBserver to "localhost" ? Possibly it is the difference between tcp connection vs unix domain socket connection. Bawolff (talk) 06:03, 12 July 2024 (UTC)
I recently updated to MediaWiki 1.40, and binlogs started to take huge disk space
I recently updated from mediawiki 1.34.2 to 1.40 (through 1.35).
Also I updated from ubuntu 18.04 to 20.04, php and MySQL.
Since then mysql binlogs started to take a lot of disk space.
The logs from the last 7 days took 109GB.
How do I check what made it so large?
Thanks. Men770 (talk) 08:08, 11 July 2024 (UTC)
- That sounds like a good question for a MySQL or MariaDB forum? Malyacko (talk) 11:22, 11 July 2024 (UTC)
PLEASE HELP ME
MediaWiki can't load. Whenever I check it out, I can't even access it at all. My terminal can't load either. Please help me now. My hosting and domain provider is Namecheap.
https://dre.luagunsx.xyz Gerhjfwejgn (talk) 03:37, 12 July 2024 (UTC)
- I worked so hard on this. Just for it to get destroyed. WHOEVER IS THERE, HELP ME NOW. Gerhjfwejgn (talk) 03:38, 12 July 2024 (UTC)
- You haven't provided enough information for anyone to help you. Bawolff (talk) 05:59, 12 July 2024 (UTC)
How to get tags for all edits
Hello,
I wanted to analyze data about edits on Wikipedia, so I downloaded the data dump with full history. But going through the xml, I managed to find all the revisions, edits and their comments, but tags assigned to the edits are nowhere to be found. Where are they in the dump or do I have to get them somewhere separately? VitSkalicky (talk) 09:17, 12 July 2024 (UTC)
- There is a separate file called change_tag.sql.gz with this information that you can download from the dump site. Bawolff (talk) 21:16, 12 July 2024 (UTC)
editing no longer works
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am looking for help:
After deactivating the plugin TinyMCE (editor that seems to have become incompatible), the visual editor no longer works (MediaWiki Vers. 1.42.1, VisualEditor Vers. 12ef5b7). Clicking on the editing button scrolls to the top of the site (or simply does nothing if the top view is already shown)
Another oddity is that I can no longer open the tab "editing" (as well as any other tab) in the settings section.
I checked the log file but could not find any hint about the problem (but most probably I am not competent enough to understand what I am looking at).
The code editor still works but the editing toolbar is gone. So, editing has become quite uncomfortable.
Any advice as to how to tackle the issue is appreciated 93.198.61.251 (talk) 08:32, 13 July 2024 (UTC)
- When did you last update VisualEditor? Leaderboard (talk) 12:28, 13 July 2024 (UTC)
- I used the version shipped with Mediawiki. When the issue occurred, I updated to GitHub master; it's shown as "– (12ef5b7) 09:34, 8 July 2024" on the MediaWiki version page 93.198.61.251 (talk) 13:09, 13 July 2024 (UTC)
- Can you try again after downloading VisualEditor for 1.42 specifically? What other plug-ins do you have that could cause this issue? Leaderboard (talk) 14:04, 13 July 2024 (UTC)
- I changed back to Version origin/REL1_42 (a219f95 vom 11 July 2024) - still not working
- These extensions are also activated:
- Flex Diagrams
- Translate
- CodeEditor
- WikiEditor
- Babel
- CategoryTree
- Cite
- EmbedVideo
- ImageMap
- InputBox
- ParserFunctions
- Poem
- Scribunto
- SyntaxHighlight
- TemplateData
- PDF Handler
- CLDR
- Clean Changes
- MultimediaViewer
- SecureLinkFixer
- UniversalLanguageSelector Delta4252 (talk) 18:44, 13 July 2024 (UTC)
- Have all of the extensions (including skins) been upgraded to 1.42? What happens if you disable all extensions except VisuaEditor (and anything absolutely necessary)? Leaderboard (talk) 19:08, 13 July 2024 (UTC)
- deactivated all "unnecessary" plugins and VisualEditor started working again 👍 will activate the plugins one by one again and maybe find out what caused the issue... thanks for your help Delta4252 (talk) 19:27, 13 July 2024 (UTC)
SMW Property Value Template
Hello, everyone.
The default data type for property value is “page”. Property name::property value.
Can I also use a Template instead of a page as data type or isn’t this recommended?
It’s just because it thought it may be a good idea to organize templates with the help of SMW. I didn’t fin lad any information on this topic. Only which data types exist.
https://www.semantic-mediawiki.org/wiki/Help:List_of_datatypes
Thank you very much for your help Ben 188.23.153.198 (talk) 11:51, 13 July 2024 (UTC)
Güvenlik konseyi
Merhaba güvenlik konseyi almadan önce sezonluk birlik açılacak deniliyor ama 2 defa aldım ve biraz önce aldım açılmadı lütfen bunu düzeltin 188.58.87.119 (talk) 18:11, 13 July 2024 (UTC)
- You are most likely in the wrong place. This is the support forum for the Mediawiki software. —TheDJ (Not WMF) (talk • contribs) 21:29, 13 July 2024 (UTC)
Loop through anonymous template parameters?
I have a template where I need to loop through multiple anonymous parameters.
{{My template
| Cats
| Dogs
}}
The template uses the variables in different places, so I cannot use
{{My template | Cats }}
{{My template | Dogs }}
How can I create a template that doesn't add all cases of {{{1}}}…{{{99}}}?
__NOTOC____NOEDITSECTION__<!--
-->{{#vardefine:mode|{{{mode|full}}}}}<!--
-->{{#ifeq:{{{1}}}|||{{#vardefine:1|{{{1}}}}}}}<!--
-->{{#ifeq:{{{2}}}|||{{#vardefine:2|{{{2}}}}}}}<!--
-->{{#ifeq:{{#var:mode}}|full|
== Magic ==
<ul>
{{#if:{{#var:1}}
|Magic stuff with {{#var:1}}
}}
{{#if:{{#var:2}}
|Magic stuff with {{#var:2}}
}}
</ul>
== Templates ==
}}
{{#if:{{#var:1}}
| {{Other template/{{#var:1}}}}
}}
{{#if:{{#var:2}}
| {{Other template/{{#var:2}}}}
}}
Is it only possible with Extensions like Extension:Loops and Extension:LoopFunctions? Subfader (talk) 11:21, 14 July 2024 (UTC)
- It sounds like you'd do better with Extension:Scribunto, so you could either construct the entire template in Lua, or create a function that'd check for the param's existence (e.g. via frame:getParent()). Sam Wilson 11:49, 14 July 2024 (UTC)
pagelinks dump no longer return columns `pl_namespace` and `pl_title`
since 20240620, those two columns are not returned in automated dump at https://dumps.wikimedia.org/enwiki/
here's DDL of 20240601
CREATE TABLE `pagelinks` (
`pl_from` int(8) unsigned NOT NULL DEFAULT 0,
`pl_namespace` int(11) NOT NULL DEFAULT 0,
`pl_title` varbinary(255) NOT NULL DEFAULT '',
`pl_from_namespace` int(11) NOT NULL DEFAULT 0,
`pl_target_id` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`pl_from`,`pl_target_id`),
KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`),
KEY `pl_backlinks_namespace` (`pl_from_namespace`,`pl_namespace`,`pl_title`,`pl_from`),
KEY `pl_target_id` (`pl_target_id`,`pl_from`),
KEY `pl_backlinks_namespace_target_id` (`pl_from_namespace`,`pl_target_id`,`pl_from`)
) ENGINE=InnoDB DEFAULT CHARSET=binary ROW_FORMAT=COMPRESSED;
here's DDL of post 20240601
CREATE TABLE `pagelinks` (
`pl_from` int(8) unsigned NOT NULL DEFAULT 0,
`pl_from_namespace` int(11) NOT NULL DEFAULT 0,
`pl_target_id` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`pl_from`,`pl_target_id`),
KEY `pl_target_id` (`pl_target_id`,`pl_from`),
KEY `pl_backlinks_namespace_target_id` (`pl_from_namespace`,`pl_target_id`,`pl_from`)
) ENGINE=InnoDB DEFAULT CHARSET=binary ROW_FORMAT=COMPRESSED;
can someone look into this please 2A01:E0A:3DB:9860:2844:B882:AD24:C9D9 (talk) 03:37, 15 July 2024 (UTC)
- The pagelinks table was refactored to use a separate table for link targets. See https://lists.wikimedia.org/hyperkitty/list/wikitech-l@lists.wikimedia.org/message/U2U6TXIBABU3KDCVUOITIGI5OJ4COBSW/ and Manual:Linktarget table * Pppery * it has begun 04:01, 15 July 2024 (UTC)
- thank you, indeed it was refactored, Manual:Pagelinks table is outdaded 2A01:E0A:3DB:9860:2844:B882:AD24:C9D9 (talk) 06:14, 15 July 2024 (UTC)
- It was half in there, but I made it more obvious now. —TheDJ (Not WMF) (talk • contribs) 14:15, 15 July 2024 (UTC)
Account creation & renaming errors
Version 1.39.3
https://jfwiki.org
I am not able to create new accounts, I get the error:
"An account creation for this username is already in progress. Please wait."
Changing the username makes no difference.
Using createAndPromote from the command line returns the same error.
I attempted to rename a user w/ Special:RenameUser resulting in this error:
Internal error
[ZpVjTbzkAommjGxmWP@BlwAAQJE] /index.php?title=Special:RenameUser Error: Call to undefined method User::isCreatableName()
Backtrace:
from /home/jfwiki/wiki139/extensions/Renameuser/includes/SpecialRenameuser.php(251)#0 /home/jfwiki/wiki139/includes/specialpage/SpecialPage.php(701): SpecialRenameuser->execute(NULL)#1 /home/jfwiki/wiki139/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run(NULL)#2 /home/jfwiki/wiki139/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)#3 /home/jfwiki/wiki139/includes/MediaWiki.php(904): MediaWiki->performRequest()#4 /home/jfwiki/wiki139/includes/MediaWiki.php(562): MediaWiki->main()#5 /home/jfwiki/wiki139/index.php(50): MediaWiki->run()#6 /home/jfwiki/wiki139/index.php(46): wfIndexMain()#7 {main}
___________________________________________
What's up with isCreatableName?
I updated from WM 1.35 to 1.39.3 a year ago and I haven't tried to create a user since, so this likely happened during the update.
Error reporting is showing this, I'm not sure that it's relevant:
Deprecated
: Use of $wgUser was deprecated in MediaWiki 1.35. [Called from VectorHooks::makeGlobalVariablesScript in /home/jfwiki/wiki139/extensions/Vector/Vector.hooks.php at line 186] in
/home/jfwiki/wiki139/includes/debug/MWDebug.php
on line
381
Deprecated
: Use of User::getOption was deprecated in MediaWiki 1.35. [Called from StubObject::_call in /home/jfwiki/wiki139/includes/StubObject.php at line 120] in
/home/jfwiki/wiki139/includes/debug/MWDebug.php
on line
381
Deprecated
: $wgUser reassignment detected [Called from VectorHooks::makeGlobalVariablesScript in /home/jfwiki/wiki139/extensions/Vector/Vector.hooks.php at line 186] in
/home/jfwiki/wiki139/includes/debug/MWDebug.php
on line
381
_____________________________________________________
I have enabled Create Account in case you'd like to see it:
https://jfwiki.org/index.php?title=Special:CreateAccount&returnto=Main+Page
Thank you for any help
Sean Seaniekaye (talk) 18:19, 15 July 2024 (UTC)
- It sounds like you are trying to use MW 1.35 extensions with MediaWiki 1.39. Try and ensure that all extensions have also been upgraded to the appropriate version.
- Of special note - RenameUser extension functionality is now in MediaWiki core. The extension cannot be used with newer versions of MediaWiki and must be removed on mediawiki 1.39. Bawolff (talk) 21:24, 15 July 2024 (UTC)
- Brian, you have saved me so many hours over the years. This worked. Thank you so much for your help. Seaniekaye (talk) 20:37, 16 July 2024 (UTC)
- You're welcome. Glad it worked. Bawolff (talk) 13:35, 17 July 2024 (UTC)
New Member Introduction
Hi everyone,
I am new here and excited to join the Media Wiki community.
I am eager to learn and contribute where I can.
Could someone please guide me on how to ask questions here ?
Where should I post if I have a query ?
Looking forward to your advice and connecting with you all.
Thanks, Selenaass23 (talk) 13:18, 16 July 2024 (UTC)
- Hi and welcome! This depends on the topic of your questions. :) See Communication Malyacko (talk) 16:05, 16 July 2024 (UTC)
Wiki family with nginx
I have a Linux webserver using nginx, and I would like to run multiple wikis for multiple domains, with the following installation configuration:
Running in a subdirectory that is NOT the website root (e.g. not location = /)
Using short URLs (URL rewrites)
I am having trouble with the initial installation.
Most recent point of failure: index.php just loads in browser as a text file
I am using mediawiki 1.42.1
What do I do here?
/etc/nginx/sites_available/example1.org.conf:
# Redirect from www to non-www bare domain
server
{
ssl_certificate /etc/letsencrypt/live/example1/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/example1/privkey.pem; # managed by Certbot
listen 443 ssl;
server_name ~^(www\.)(?<subdomain>.*)example1.org$;
return 301 https://${subdomain}example1.org$request_uri;
}
server
{
ssl_certificate /etc/letsencrypt/live/example1/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/example1/privkey.pem; # managed by Certbot
listen 443 ssl;
server_name example1.org;
root /srv/static/example1.org/www;
access_log /var/log/nginx/example1.org/access.log;
error_log /var/log/nginx/example1.org/error.log;
location = /
{
index index.html;
}
location /wiki
{
alias /srv/mediawiki-1.42.1/;
index index.php;
try_files $uri $uri/ /index.php?$query_string;
location /wiki/\.php$
{
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /srv/mediawiki-1.42.1$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
try_files $uri =404;
}
# Additional configuration for static files and security
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$
{
try_files $uri /wiki/index.php?$query_string;
expires max;
log_not_found off;
}
location ~* ^/wiki/images/
{
try_files $uri /wiki/index.php?$query_string;
}
location ~* ^/wiki/(cache|includes|maintenance|languages|serialized|tests|images/deleted)/
{
deny all;
}
location ~* ^/wiki/(bin|docs|extensions|includes|maintenance|mw-config|resources|serialized|tests)/
{
internal;
}
}
} Teer.8 (talk) 17:53, 16 July 2024 (UTC)
Fatal error. Initial Install.
Fatal error: Uncaught Error: Call to undefined function putenv() in /home/<domain>/<user>/public_html/MediaWiki/includes/Setup.php:312 Stack trace: #0 /home/<domain>/<user>/public_html/MediaWiki/includes/WebStart.php(85): require_once() #1 /home/<domain>/<user>/public_html/MediaWiki/mw-config/index.php(41): require('/home/1301174.c...') #2 {main} thrown in /home/<domain>/<user>/public_html/MediaWiki/includes/Setup.php on line 312
Initial install on a cloud hosted Debian box with PHP 8.1
parts of the file paths have been redacted for reasons
Followed manual installation instructions per the instructions on mediawiki.org
When I navigate to domain/MediaWiki I get a page that says LocalSettings.php is not found click here to run the setup script.
I am redirected to /MediaWiki/mw-config/index.php with the error string listed at the top of the post. I do not know enough about PHP or how this code works to understand how to troubleshoot this further.
Please help. Justrobfl (talk) 18:05, 16 July 2024 (UTC)
- Some hosts disable the putenv() php function. You could try commenting out thr putenv line in Setup.php. alternatively you could try a different hosting provider. Bawolff (talk) 00:55, 17 July 2024 (UTC)
vector-22 skin icons problem
im using vector-22 on my wiki and i dont know why but suddenly skin icons are not visible or loading in my wiki. ive been looking for a solution since forever, need help.
thanks in advance.
*the icons im talking about: https://i.ibb.co/CVgjj9K/image.png
when i try to access the icon url this is the error i get: https://i.ibb.co/PZDPwxs/Ekran-g-r-nt-s-2024-07-16-220639.png Dragsugur (talk) 19:05, 16 July 2024 (UTC)
Page Display Issue After Upgrading from 1.27 to 1.35
I recently upgraded my MediaWiki installation from version 1.27 to 1.35, and I'm encountering an issue with the almost all of my pages. After the upgrade, the homepage started up with only the title 'Main Page', the usual content and styling. It's showing only the basic text and structure, missing all of my wiki edits. Weird thing is I can see the history , edits and whatever changes I make gets saved. But I can keep doing it for all my pages. The upgrade wasnt easy but I was able to work through the issues.
Upgrade Process.
- Imported SQL Server data using MySql Workbench migration wizard.
- Reseeded around 17 tables whose Auto Increment was dropped by the migration.
- Ran the 1.35 mediawiki installer (Browser not CLI)
- Issues with Foreign keys so dropped whatever it complained about.
- And finally took what was needed from my Original Localsettings file.
Hoping these screenshots make sense of what I jst described
Screenshots Georgesanjeev (talk) 20:20, 16 July 2024 (UTC)
preferences error
We have not changed LocalSettings.php in a very long time, and this error has begun to appear for everyone when hitting the precerences tab.
Backtrace:
from /home/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(351)
#0 /home/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(260): MediaWiki\Preferences\DefaultPreferencesFactory->loadPreferenceValues(User, RequestContext, array)
#1 /home/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(1800): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor(User, RequestContext)
#2 /home/rabidpan/public_html/fascipedia/includes/specials/SpecialPreferences.php(131): MediaWiki\Preferences\DefaultPreferencesFactory->getForm(User, RequestContext, string)
#3 /home/rabidpan/public_html/fascipedia/includes/specials/SpecialPreferences.php(109): SpecialPreferences->getFormObject(User, RequestContext)
#4 /home/rabidpan/public_html/fascipedia/includes/specialpage/SpecialPage.php(701): SpecialPreferences->execute(NULL)
#5 /home/rabidpan/public_html/fascipedia/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run(NULL)
#6 /home/rabidpan/public_html/fascipedia/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#7 /home/rabidpan/public_html/fascipedia/includes/MediaWiki.php(904): MediaWiki->performRequest()
#8 /home/rabidpan/public_html/fascipedia/includes/MediaWiki.php(562): MediaWiki->main()
#9 /home/rabidpan/public_html/fascipedia/index.php(50): MediaWiki->run()
#10 /home/rabidpan/public_html/fascipedia/index.php(46): wfIndexMain()
#11 {main} -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 21:43, 16 July 2024 (UTC)
Why I can not regist to https://vi.wikipedia.org/
I need support to know that is it Create an account on https://vi.wikipedia.org/ system still working ?
After successfully registering with the user name pass and email it redirects to the notification page which notices that I can not edit other pages yet until some date point. it is fine but how about login to the created account? There is no email verification or something else. I tried to log in using the saved Username and password but failed. DellosCao (talk) 02:24, 17 July 2024 (UTC)
- You logged in here, and we use the same account system as vi.wikipedia.org Bawolff (talk) 02:44, 18 July 2024 (UTC)
- it same to confuse me. I can not use this site account for login to vi.wikipedia.org DellosCao (talk) 04:57, 21 July 2024 (UTC)
- @DellosCao Can you copy and paste the exact error message you are receiving? P858snake (talk) 05:15, 21 July 2024 (UTC)
Why am i here?
Hello whomever is out there i signed into my free phone account and ended up here what am i suppose to learn out here RrabadanPEI (talk) 04:07, 17 July 2024 (UTC)
- nothing common here with telephone fees! which links have you followed ? Christian 🇫🇷 FR 🚨 (talk) 07:52, 17 July 2024 (UTC)
- No idea, but it sounds like you are in the wrong place. Bawolff (talk) 02:43, 18 July 2024 (UTC)
MediaWiki:GlobalBlock Extension
Hello, I have followed all instruction as tolded in Extension:GlobalBlocking but when after I added the wfLoadExtension and entered my wiki it says the following error whats the solution of this
Database error
A database query error has occurred. This may indicate a bug in the software.
[ZpeOYZ36VsF47Yx6zkYYuwAAAAs] 2024-07-17 09:26:58: Fatal exception of type "Wikimedia\Rdbms\DBQueryError" Xaloria (talk) 06:18, 17 July 2024 (UTC)
- As a first step, set $wgShowExceptionDetails = true; in LocalSettings.php
- Did you create all the appropriate database tables in the appropriate databases? Bawolff (talk) 02:42, 18 July 2024 (UTC)
- How can I create that table and what should I place. Xaloria (talk) 03:56, 20 July 2024 (UTC)
- This is explained in https://www.mediawiki.org/wiki/Extension:GlobalBlocking#Installation Bawolff (talk) 04:21, 20 July 2024 (UTC)
- I have done everything mentioned. Xaloria (talk) 02:41, 21 July 2024 (UTC)
wrong indentation after a : {{intl|
how to reestablish correct indentation on translated page at Step 7 in -> https://www.mediawiki.org/wiki/Help:Growth/Tools/Add_a_link/fr#Comment_ajouter_des_liens after the message -> https://translatewiki.net/wiki/MediaWiki:Growthexperiments-addlink-onboarding-content-linking-guidelines-body/fr has been transcluded ?
':' seems to be disturbed by the 'li' but on other side indentation is correct on the EN page -> https://www.mediawiki.org/wiki/Help:Growth/Tools/Add_a_link#How_to_add_links,
so what is wrong ? Thanks. -- Christian 🇫🇷 FR ⛹🏽 Paris 2024🗼 (talk) 07:49, 17 July 2024 (UTC)
- i think ive got it: pb in translatewiki : all li items must be on a single line not spread on multiple lines.
- -w Christian 🇫🇷 FR ⛹🏽 Paris 2024🗼 (talk) 16:32, 17 July 2024 (UTC)
Edit preview not working
jfwiki.org
I upgraded to 1.42 yesterday and the page preview after editing is not working with the error:
Exception caught: Call to undefined method MediaWiki\Parser\ParserOutput::getCategories()
I am using PageInCat 3.0.0
The error log has many of these:
[Wed Jul 17 07:37:42.163289 2024] [fcgid:warn] [pid 1846434:tid 120972091238144] [remote 47.128.55.96:14690] mod_fcgid: stderr: PHP Deprecated: Use of MediaWiki\\Parser\\Parser::$pageInCat_cache was deprecated in MediaWiki 1.42. [Called from PageInCat::onClearState in /home/jfwiki/wiki142/extensions/PageInCat/src/PageInCat.php at line 174] in /home/jfwiki/wiki142/includes/debug/MWDebug.php on line 379
[Wed Jul 17 07:37:42.163349 2024] [fcgid:warn] [pid 1846434:tid 120972091238144] [remote 47.128.55.96:14690] mod_fcgid: stderr: PHP Deprecated: Use of MediaWiki\\Parser\\Parser::$pageInCat_onlyCache was deprecated in MediaWiki 1.42. [Called from PageInCat::onClearState in /home/jfwiki/wiki142/extensions/PageInCat/src/PageInCat.php at line 175] in /home/jfwiki/wiki142/includes/debug/MWDebug.php on line 379
[Wed Jul 17 07:37:42.490267 2024] [fcgid:warn] [pid 1846434:tid 120972091238144] [remote 47.128.55.96:14690] mod_fcgid: stderr: PHP Deprecated: Use of wfGetDB was deprecated in MediaWiki 1.39. [Called from PageInCat::inCatCheckDb in /home/jfwiki/wiki142/extensions/PageInCat/src/PageInCat.php at line 143] in /home/jfwiki/wiki142/includes/debug/MWDebug.php on line 379
_________
Thank you
Sean Seaniekaye (talk) 14:41, 17 July 2024 (UTC)
- PageInCat is not up to date for 1.42 yet it seems. You should either fix the extension and update it, or you can suppress deprecation warnings for php (should always be disabled for production) in your php.ini. —TheDJ (Not WMF) (talk • contribs) 18:24, 17 July 2024 (UTC)
- Oh, that is my extension. Guess i should fix it. Bawolff (talk) 02:41, 18 July 2024 (UTC)
- Thank you both! I have disabled PageInCat for now and haven't found any issues yet, I may not need it. Seaniekaye (talk) 14:43, 18 July 2024 (UTC)
- More testing, it appears to me that PageInCat works other than breaking the edit preview Seaniekaye (talk) 16:08, 18 July 2024 (UTC)
- Hi again,
- It looks like line 200 of PageInCat.php: $actualCategories = $parser->getOutput()->getCategories();
- Needs to be:
- $actualCategories = $parser->getOutput()->getCategoryNames(); Seaniekaye (talk) 20:54, 20 July 2024 (UTC)
How to disable caching for files for good?
On a wiki, I have the problem that uploaded new versions of existing files are not directly updated on pages linking them. If I click on a link, I get the previously uploaded version of the file. These are mainly PDF files, so no thumbnailing is involved if this matters.
- LocalSettings.php
$wgMainCacheType = CACHE_MEMCACHED;
$wgParserCacheType = CACHE_NONE;
$wgSessionCacheType = CACHE_DB;
$wgMessageCacheType = CACHE_MEMCACHED;
$wgMemCachedServers = [
'127.0.0.1:11211'
];
$wgCachePages = false;
$wgUseLocalMessageCache = true;
$wgEnableParserCache = false;
$wgGenerateThumbnailOnParse = false;
- VitualHost
<IfModule mod_headers.c> <filesMatch ".(pdf|odt|ott|doc|docx|dot|ods|ots|xls|xlsm|xlsx|xlt|odp|otp|ppt|pptx|pot|svg|jpg|jpeg|png|gif)$"> Header set Cache-Control "no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires 0 </filesMatch> ... </IfModule>
The issue persists. I suspect that I also need to set the main cache to $wgMainCacheType = CACHE_NONE; and forget about the message cache.
Perhaps there is something else I am missing? [[kgh]] (talk) 15:13, 17 July 2024 (UTC)
- There is no cache for this that is part of your localsettings.
- Your webserver configuration is only disabling the cache for files which are served from disk. If they still need to be generated (by a 404 handler, or if they are always provided by thumb.php, then your filesMatch won't do anything, as they are not files. They are files streamed though a php script in that case. —TheDJ (Not WMF) (talk • contribs) 18:22, 17 July 2024 (UTC)
- To rephrase your reply since I am not sure if I understand correctly:
- I need to set up a working 404 handler to prevent file caching? From what I posted, you cannot see if it is set up properly.
- In this case, I can provide specific information:
- LocalSettings.php
$wgGenerateThumbnailOnParse = false; $wgThumbnailScriptPath = "$wgScriptPath/thumb.php";
- Virtual Host
<Directory /path/to/wiki/> AuthType Basic AuthName "Access to my wiki" AuthUserFile "/var/htfiles/.htpasswd" <RequireAny> Require valid-user Require ip 127.0.0.1 Require ip 82.202.93.130 Require ip 86.34.125.129 </RequireAny> </Directory> <Directory /path/to/wiki/images/> AllowOverride None AddType text/plain .html .htm .phtml .shtml .lua .php .pl .py .rb .sh php_flag engine off </Directory> # Exclude thumb.php from authentication <Files "thumb.php"> Satisfy Any Allow from all </Files> <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^/?p(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B] </IfModule>- My second interpretation is to remove the existing thumb handling by setting
wgGenerateThumbnailOnParse = true; - Ultimately, I want to provide the most recent version of an uploaded file no matter what. [[kgh]] (talk) 09:07, 18 July 2024 (UTC)
- > I need to set up a working 404 handler to prevent file caching?
- No, I wasn't sure what setup you are running and indicating that what you have configured SO FAR
- OK, so you are using thumb.php. In that case, you should see in your browser that all requests for images are of the form https://commons.wikimedia.org/w/thumb.php?f=Example.png&w=600&p=206
- You'll want to modify the <Files "thumb.php"> block to add headers that disable the cache. —TheDJ (Not WMF) (talk • contribs) 09:45, 18 July 2024 (UTC)
- > No, I wasn't sure what setup you are running and indicating that what you have configured SO FAR
- In other words, do I need to disable the 404 handler?
- > OK, so you are using thumb.php. In that case, you should see in your browser that all requests for images are of the form
- This is correct. Files are served via "thumb.php?f=FileName.pdf&widht=120.."
- > You'll want to modify the <Files "thumb.php"> block to add headers that disable the cache.
- I believe this should do the job:
<Files "thumb.php"> Satisfy Any Allow from all <IfModule mod_headers.c> Header set Cache-Control "no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires 0 </IfModule> </Files>- I am still unsure if I should have a 404 handler in the first place. [[kgh]] (talk) 10:06, 18 July 2024 (UTC)
- @TheDJ: What is your opinion on having a 404 handler in the setup? :) [[kgh]] (talk) 09:03, 19 July 2024 (UTC)
- I would also suggest checking your browsers network tab to verify that all the headers are being set, and what caching behaviour is actually taking place (e.g. verify there isnt incorrect 304 responses or something) Bawolff (talk) 02:40, 18 July 2024 (UTC)
- The network analyses reveal no caching, i.e., I get "Answers from cache: 0." There is no 304 status to see—all 200, at least from my side. I am now hoping that the most current files are being served. The users need to verify. Let's wait for TheDJs' reply. [[kgh]] (talk) 09:59, 18 July 2024 (UTC)
1.42 breaks remote authentication
I have been using the PluggableAuth and Shibboleth extensions for account creation and logins for a while. Shibboleth has not been updated for a while so I switched to the Auth_remoteuser extension, which has been working very well.
Authentication with those broke when I tried to upgrade to MediaWiki 1.42.0. As an experiment on a development platform, I created two stripped down wikis called fix142 using MW 1.42 and check141 using MW 1.41. The 1.41 MW works perfectly. It creates accounts and logs users in. Access is controlled by SAML.
MW 1.42 gives me this:
MediaWiki is unable to load the extension Auth_remoteuser. Please check that the extension's name is correct and all of its files are properly installed.
Details:
Error reading /var/www/html/fix142/extensions/Auth_remoteuser/extension.json. filemtime(): stat failed for /var/www/html/fix142/extensions/Auth_remoteuser/extension.json.
#0 /var/www/html/fix142/includes/GlobalFunctions.php(53): ExtensionRegistry->queue()
#1 /var/www/html/fix142/LocalSettings.php(151): wfLoadExtension()
#2 /var/www/html/fix142/includes/Setup.php(215): require_once('...')
#3 /var/www/html/fix142/includes/WebStart.php(85): require_once('...')
#4 /var/www/html/fix142/index.php(50): require('...')
#5 {main}
Any ideas?
Thanks,
Chris Cfschulte 314 (talk) 18:41, 17 July 2024 (UTC)
- > filemtime(): stat failed
- that generally means the file is not at that location, or not readable from that location (permissions or owner issue). —TheDJ (Not WMF) (talk • contribs) 19:38, 17 July 2024 (UTC)
- I tweaked this a little more, made sure all ownership was correct, and added the debug code. Now, I only get this message:
- Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fix142/includes/libs/rdbms/database/DatabaseMySQL.php on line 756
- Essentially the same as the apache error.log:
- [Thu Jul 18 07:05:49.273546 2024] [php:error] [pid 438517] [client 10.130.194.96:58132] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fix142/includes/libs/rdbms/database/DatabaseMySQL.php on line 756, referer: https://dho-dev03.humonc.wisc.edu/fix142/index.php/Special:SpecialPages
- This is in the function, protected function doSingleStatementQuery( string $sql ): Cfschulte 314 (talk) 12:17, 18 July 2024 (UTC)
- I added an echo statement to see what the $sql was:
- SET /* Wikimedia\Rdbms\DatabaseMySQL::open */ group_concat_max_len = 262144, `sql_mode` = ''
- SELECT /* Wikimedia\Rdbms\DatabaseMySQL::serverIsReadOnly */ @@GLOBAL.read_only AS Value
- SELECT /* SqlBagOStuff::fetchBlobs */ keyname,value,exptime FROM `fix142objectcache` WHERE keyname = 'fix142-fix142:messages:en' AND (exptime >= '20240718121405')
- SELECT /* SqlBagOStuff::fetchBlobs */ keyname,value,exptime FROM `fix142objectcache` WHERE keyname = 'fix142-fix142:messages:en:status' AND (exptime >= '20240718121405')
- SELECT /* SqlBagOStuff::doLock */ IF(GET_LOCK('fix142-fix142:messages:en',0),UNIX_TIMESTAMP(SYSDATE(6)),NULL) AS acquired
- SET /* Wikimedia\Rdbms\DatabaseMySQL::open */ group_concat_max_len = 262144, `sql_mode` = ''
- BEGIN /* Wikimedia\Rdbms\Database::beginIfImplied (MessageCache::loadFromDB(en)-big) */
- SELECT /* MessageCache::loadFromDB(en)-big */ page_title,page_latest FROM `fix142page` WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`') AND (page_len > 10000)
- SELECT /* MessageCache::loadFromDB(en)-small */ /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_actor,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len FROM `fix142page` JOIN `fix142revision` ON ((page_id = rev_page)) JOIN `fix142actor` `actor_rev_user` ON ((actor_rev_user.actor_id = rev_actor)) JOIN `fix142comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = rev_comment_id)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`') AND (page_len <= 10000) AND (page_latest = rev_id)
- SELECT /* Wikimedia\Rdbms\Replication\MysqlReplicationReporter::getServerId */ @@server_id AS id
- REPLACE /* SqlBagOStuff::modifyTableSpecificBlobsForSet */ INTO `fix142objectcache` (keyname,value,exptime) VALUES ('fix142-fix142:messages:en','���\n�0���E_ +�� SELECT /* SqlBagOStuff::doUnlock */ RELEASE_LOCK('fix142-fix142:messages:en') AS released
- SELECT /* LCStoreDB::get */ lc_value FROM `fix142l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
- SELECT /* LCStoreDB::get */ lc_value FROM `fix142l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'list' LIMIT 1
- SELECT /* LCStoreDB::get */ lc_value FROM `fix142l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'preload' LIMIT 1
- SELECT /* LCStoreDB::get */ lc_value FROM `fix142l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'preload' LIMIT 1
- SELECT /* LCStoreDB::get */ lc_value FROM `fix142l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:double-redirect-fixer' LIMIT 1
- SELECT /* LCStoreDB::get */ lc_value FROM `fix142l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:usermessage-editor' LIMIT 1
- SELECT /* LCStoreDB::get */ lc_value FROM `fix142l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:proxyblocker' LIMIT 1
- SELECT /* LCStoreDB::get */ lc_value FROM `fix142l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:sorbs' LIMIT 1
- SELECT /* LCStoreDB::get */ lc_value FROM `fix142l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:spambot_username' LIMIT 1
- SELECT /* LCStoreDB::get */ lc_value FROM `fix142l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:autochange-username' LIMIT 1
- SELECT /* MediaWiki\User\User::load */ actor_id,actor_user,actor_name FROM `fix142actor` WHERE actor_name = 'Cfschulte' LIMIT 1
- SELECT /* MediaWiki\User\User::load */ actor_id,actor_user,actor_name FROM `fix142actor` WHERE actor_name = 'Cfschulte' LIMIT 1
- SELECT /* MediaWiki\User\User::load */ actor_id,actor_user,actor_name FROM `fix142actor` WHERE actor_name = 'Cfschulte' LIMIT 1
- SELECT /* MediaWiki\User\User::load */ actor_id,actor_user,actor_name FROM `fix142actor` WHERE actor_name = 'Cfschulte' LIMIT 1 << This line repeats until failure Cfschulte 314 (talk) 12:19, 18 July 2024 (UTC)
How to request a page deletion
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I created this page (Manual:Tlb) by mistake (thought I was local on my mediawiki installation). Please delete it permanently. 185.63.15.34 (talk) 09:38, 18 July 2024 (UTC)
Are shapefile datasets supported by Visus Data Platform?
I am a new user in media wiki. I am a geospatial analyst and i mainly work with vector and raster data formats. I am requesting to know if Visus Data Portal can support shapefile data formats? Okwiichristianemmanuel (talk) 12:36, 18 July 2024 (UTC)
- Hi, I think you are in the wrong place. We are not associated with Visus Data Portal (For that matter, I have never even heard of it). Bawolff (talk) 18:10, 18 July 2024 (UTC)
Remote mysql database ?
Hello, I'd like to transfer my mysql database to g**gle database. I just have the ip for mysql remote and the cloud configuration to make it public with authenticated. But I didn't succeeded. Is it possible, and how? 2A02:A020:88:D4DE:1:0:53DB:F38C (talk) 14:16, 18 July 2024 (UTC)
Redirect to log in page if user not logged in
Hello
I'm creating a private wiki. My goal is to have the user immediately redirected to the login page from any page when they're not logged in. But I cannot get it to work without changing the mediawiki sources. I do not want to change the sources for security reasons.
My versions are:
| MediaWiki | 1.39.4 |
| PHP | 8.2.4 (apache2handler) |
| MariaDB | 10.4.28-MariaDB |
| ICU | 71.1 |
I tried to use a hook but since the not logged in page is a permissionErrorPage the redirect is not executed. The hooks I tried were BeforeInitialize and BeforePageDisplay.
Below my hook handle which i wrote into LocalSettings.php:
$wgHooks['BeforeInitialize'][] = function ( $title, $unused, $output, $user, $request, $mediaWiki ) {
# Check if the user is not logged in and not login Page
if ( $user->isAnon() &&
strcmp($title, SpecialPage::getTitleFor( 'Userlogin' ))) {
# Get URL
$title = SpecialPage::getTitleFor( 'Userlogin' );
$url = $title->getFullURL();
# Redirect to login page
$output->redirect( $url );
return;
}
return true;
};
Is there a way to implement my request without changing the mediawiki sources? Or a different handle that suits my needs? I already searched through Manual:Hooks.
Thanks in advance Rakon12 (talk) 18:56, 18 July 2024 (UTC)
- How did you set up the 'private wiki'? If set up correctly you don't need to do anything. That should be the default, and in fact, only behavior; i.e "user [is] redirected to the login page from any page when they're not logged in." – Ammarpad (talk) 17:06, 25 July 2024 (UTC)
- Hello, I am sorry for the late reply.
- I set it to private in the setup process. The normal behaviour is that if you're not logged in, a page appears saying you're not logged in with a link to the login page. I did not want the user to have to click on the link, but to be taken directly to the login page. Rakon12 (talk) 12:24, 23 September 2024 (UTC)
所有的新页面都是404
按道理说当访问到一个不存在的wiki页面应该展示新建页面的选项,但是现在会直接显示404页面,即使是全新安装的wiki也是,我该如何解决这个问题? 对此佛具 (talk) 21:52, 18 July 2024 (UTC)
- Its hard to say. Possibly your webserver or hosting provider is intercepting and replacing 404 messages.
- 很难说。可能是你的网络服务器或托管提供商拦截并替换了 404 消息。 Bawolff (talk) 04:57, 19 July 2024 (UTC)
MediaWiki in WordPress
(Translated to English by Google)
I installed MediaWiki under a directory where WordPress is located (e.g. example.jp/wordpress/w/index.php), but the URLs were displayed in the format /w/index.php?title=$1, which was hard to read, so I changed it to /wiki/$1.
But then the pages were loaded on WordPress instead of MediaWiki, and I got a WordPress 404 error. What can I do to get them to display correctly?
I tried removing the permissions from WordPress to /wiki/ and /w/ in .htaccess, but it didn't work.
(I'm a beginner, so my explanation may be poor or my measures may be strange, but please bear with me.)
(Original: Japanese text)
WordPress のあるディレクトリの下 (例: example.jp/wordpress/w/index.php) に MediaWiki を導入してみたのですが、URL が /w/index.php?title=$1 の形式で表示されていて見にくかったので、/wiki/$1 の形式に変更しました。
すると MediaWiki 側ではなく WordPress 側でページが読み込まれ、WordPress の 404 エラーが出てしまいます。 正常に表示させるにはどうすればよいでしょうか?
.htaccess で、WordPress から /wiki/ と /w/ への権限をなくしてみましたが効果はありません。
(初心者のため、伝え方が下手だったり施策がおかしかったりするかもしれませんが、ご容赦願います) きくらげさん (talk) 06:06, 19 July 2024 (UTC)
- Why do you need CMS at the same directory. Have them at separate directories and set up both to use scripts paths to the direcotries. More over you can have bothsites at ceperate domain names like wiki.mysite.jp and wordpress.mysite.jp Fokebox (talk) 07:43, 19 July 2024 (UTC)
- Thank you for your reply.
- WordPress and MediaWiki are separate directories. What does "set up both to use scripts paths to the directories" mean and how do I what to do that? I don't understand well, sorry. きくらげさん (talk) 03:41, 21 July 2024 (UTC)
- You probably need different rewrite rules in .htaccess to control which application handles the url. There arent guides for when both wordpress and mediawiki are together - so if you are a new user i would reccomend not having them together so you can just follow manual:ShortURL Bawolff (talk) 20:38, 19 July 2024 (UTC)
- Thank you for your reply.
- Someone answered same this in another faq website so probably this is correct reply. きくらげさん (talk) 03:42, 21 July 2024 (UTC)
- (Wrong reply) きくらげさん (talk) 03:41, 21 July 2024 (UTC)
JS of my special page extension not loading only on smartphone
On my wiki I made a special page that display recent changes in a pinterest style. Fort the image, it fetchs them using mediawikiParserOutput as a thumb 100px and then with js, I fetch the big images and put them where it should go. On desktop the js is loaded properly but on smartphone (and mozilla firefox smartphone simulation), it doesn't load.
It doesn't even matter what is in the js, if the js is only composed of a console.log("loaded"), there will be nothing in the console.
Here's my extension.json :
{ "manifest_version": 1, "name": "ArchiRecentChanges", "version": "1.1", "license-name": "GPL-3.0", "author": "Aymeric Feltz", "description": "Custom pages for archi-wiki.org that display a pinterest style list of recent changes", "type": "specialpage", "SpecialPages": { "ArchiRecentChanges": "ArchiRecentChanges\\SpecialArchiRecentChanges" }, "AutoloadClasses": { "ArchiRecentChanges\\SpecialArchiRecentChanges": "SpecialArchiRecentChanges.php" }, "MessagesDirs": { "ArchiRecentChanges": [ "i18n" ] }, "ResourceModules": { "ext.archirecentchanges": { "scripts": [ "js/archirecentchanges.js" ], "messages":[ "readthis" ] } }, "ResourceFileModulePaths": { "localBasePath": "", "remoteExtPath": "ArchiRecentChanges" }, "ExtensionMessagesFiles": { "ArchiRecentChangesAlias": "ArchiRecentChanges.i18n.alias.php" } }
archi-mediawiki/extension/archiRecentChanges (commit 58bfb64de078fc436b60993f0f726f5cc15e4fd5, 19/07/24)
| Product | Version |
|---|---|
| MediaWiki | 1.39.7 |
| PHP | 7.4.33 (fpm-fcgi) |
| MariaDB | 10.11.6-MariaDB-0+deb12u1-log |
| ICU | 72.1 |
| elasticsearch | 6.8.23 |
We also have some js in our hack.js in our skin folder (that we deploy with npm), and this js works perfectly fine. It's only with the js of the extension that I have problems with Aphfug (talk) 12:18, 19 July 2024 (UTC)
- I think on 1.39 you have to specify targets in ResourceModules in extension.json for the js to load on mobile. This requirement was removed in newer versions of mediawiki. Bawolff (talk) 20:35, 19 July 2024 (UTC)
Pre-commit hook Errors
I'm trying to commit the changes i made for while now. Whenever i tried to git commit it give error: I will now check that you built them using the correct Node.js version v18.20.2.
Note: You are using v18.20.2.
Building assets...
2024-07-19 18:13:14: webpack compiled
M resources/dist/mobile.special.watchlist.scripts.js
M resources/dist/mobile.special.watchlist.scripts.js.map.json
M resources/dist/mobile.startup.js.map.json
After I built the assets, I noticed differences in the contents to what you committed.
Try running `npm run build` again or removing the node_modules folder and running npm install with the correct node version.
pre-commit:
pre-commit: We've failed to pass the specified git pre-commit hooks as the `precommit`
pre-commit: hook returned an exit code (1). If you're feeling adventurous you can
pre-commit: skip the git pre-commit hooks by adding the following flags to your commit:
pre-commit:
pre-commit: git commit -n (or --no-verify)
pre-commit:
pre-commit: This is ill-advised since the commit is broken.
pre-commit:
Also, i installed all the necessary packages. I think the issue lies in the not adding package.json and package-lock.json to the staging area. Also, i didnt build the directory using npm run build. It would be really helpful if someone could assist me.
Note: This is the MobileFrontend extension directory. AnujAgrawal380 (talk) 14:17, 19 July 2024 (UTC)
- Where exactly can this output be seen after you ran "git commit"? In your command line? Malyacko (talk) 19:53, 19 July 2024 (UTC)
- after output of all tests. AnujAgrawal380 (talk) 05:29, 20 July 2024 (UTC)
- Where to see test results? Malyacko (talk) 09:39, 21 July 2024 (UTC)
- Did you run the npm build step like the error message said to? Bawolff (talk) 21:53, 20 July 2024 (UTC)
Name wrong
Hello, I was wondering does Wiki make changes if a person names and hometown is wrong on the site? If yes, I will forward you the correct information once I get an answer from you.
Thanks,
LaMark Davis Lamarkdavis (talk) 20:09, 19 July 2024 (UTC)
- Generally yes if you have a reference to cite in order to know the information is correct. In fact (in most cases) you can make the change yourself.
- However, this is the wrong place to ask these types of questions. Please ask questions about contributing to english wikipedia at w:WP:TEAHOUSE as they will be able to help you better. Bawolff (talk) 20:31, 19 July 2024 (UTC)
nginx rewrite rules for multiple wikis
Can anyone please help me set up nginx rewrite rules for multiple wikis with a common installation? I have a separate wiki for each language. E.g.
example.org/wiki/en example.org/wiki/fr/
Problem: Both wikis load with the correct URLs, but any action re-directs to the English wiki. E.g. creating a new page on the French (i.e. example.org/wiki/fr/) wiki re-directs to the English (i.e. example.org/wiki/en/) wiki. And if I try to create `Main_page` on the French wiki, it re-directs and opens editing the existing Main_page on the English wiki @ example.org/wiki/en/Main_Page.
How do I rectify this? Thanks in advance, I am completely stumped and any help will be GREATLY appreciated.
nginx config:
server
{
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem; # managed by Certbot
listen 443 ssl;
server_name example.org;
root /srv/live/static/example.org/www; # wiki is not root page
access_log /var/log/nginx/example.org/access.log;
error_log /var/log/nginx/example.org/error.log;
location ^~ /wiki/
{
alias /srv/live/php/mediawiki-1.42.1/;
# Redirect /wiki/ to /wiki/en/
location = /wiki/
{
return 301 $scheme://$host/wiki/en/;
}
try_files $uri $uri/ @mediawiki;
# PHP handling for wiki
location ~ \.php$
{
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param MW_DB $arg_lang;
include fastcgi_params;
}
}
location @mediawiki
{
set $lang 'en';
if ($uri ~ "^/wiki/(en|fr)/")
{
set $lang $1;
}
set $wiki_id 'example_org_en';
if ($lang = 'fr')
{
set $wiki_id 'example_org_fr';
}
rewrite "^/wiki/([a-z]{2})/(.*)$" /wiki/index.php?title=$2&lang=$1 last;
fastcgi_param MW_DB $wiki_id;
}
}
LocalSettings.php
<?php
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
# Multi-wiki configuration
$wgConf = new SiteConfiguration();
$wikiLangMap = [
'example_org_en' => 'en',
'example_org_fr' => 'fr',
];
$wgConf->wikis = array_keys($wikiLangMap);
$wgConf->settings = [
'wgServer' => [
'default' => 'https://example.org',
],
'wgSitename' => [
'default' => 'example Wiki',
],
'wgLanguageCode' => $wikiLangMap,
'wgDBprefix' => [
'example_org_en' => 'example_org_en_',
'example_org_fr' => 'example_org_fr_',
],
];
# Determine the current wiki
$wikis = [
'example.org/wiki/en' => 'example_org_en',
'example.org/wiki/fr' => 'example_org_fr',
];
if ( defined( 'MW_DB' ) )
{
$wikiID = MW_DB;
}
else
{
$uri = $_SERVER['REQUEST_URI'] ?? ;
$parts = explode('/', trim($uri, '/'));
$lang = $parts[1] ?? 'en'; // Default to 'en' if not specified
$wikiID = $wikis["example.org/wiki/$lang"] ?? 'example_org_en';
}
# Apply the settings
$wgConf->extractAllGlobals( $wikiID );
# Common settings
$wgScriptPath = '/wiki';
$wgResourceBasePath = $wgScriptPath;
$wgArticlePath = "/wiki/$wgLanguageCode/$1";
$wgLogos = [
'1x' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",
'icon' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",
];
$wgEnableEmail = true;
$wgEnableUserEmail = true;
$wgEmergencyContact = ;
$wgPasswordSender = ;
$wgEnotifUserTalk = true;
$wgEnotifWatchlist = true;
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = 'mysql';
$wgDBserver = 'localhost';
$wgDBname = 'mediawiki_docs_db';
$wgDBuser = 'wiki_example_org';
$wgDBpassword = 'password';
# MySQL specific settings
$wgDBssl = false;
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# the rest are defaults, will post if requested!
.../mediawiki-1.42.1/settings/example.org/LocalSettings.en.php
<?php $wgLanguageCode = 'en'; $wgSitename = 'example.org Wiki';
.../mediawiki-1.42.1/settings/example.org/LocalSettings.fr.php
<?php $wgLanguageCode = 'fr'; $wgSitename = 'example.org Wiki'; Teer.8 (talk) 17:58, 20 July 2024 (UTC)
TypeError when attempting to view Special Pages
I just upgraded to MediaWiki 1.42.1 and now I get an InternalError:TypeError when attempting to display the Special Pages page.
The specific message is:
/wiki/index.php?title=Special:SpecialPages TypeError: MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::__construct(): Argument #1 ($dbProvider) must be of type Wikimedia\Rdbms\IConnectionProvider, Wikimedia\Rdbms\LoadBalancer given, called in /home/brassgog/public_html/wiki/extensions/ForumSsoProvider/ForumAuthManager.php on line 36
along with a lengthy backtrace which I will not reproduce here.
I'm using ForumSsoProvider to provide integration with Simple Machines Forum 2.1. VonCorax (talk) 22:30, 20 July 2024 (UTC)
- Error means your version of ForumSsoProvider is incompatible with your version of mediawiki. Try and get an updated version of the extension. Bawolff (talk) 01:39, 21 July 2024 (UTC)
- I had forgotten that ForumSsoProvider is a separate plugin; in this case I am using SimpleMachines'
smf-mw-authmodule. There isn't an official fix for it, but there is a PR with a patch that seems to have fixed the problem. VonCorax (talk) 17:18, 23 July 2024 (UTC)
preferences error
We havent altered localsettings.php (to my knowledge) and now everyone is getting this error, seemingly out of nowhere, when people try to use their preferences area:
Internal error Jump to navigation Jump to search
[5ae6fcab633b45b38c47906d] /Special:Preferences MWException: Default '2' is invalid for preference imagesize of user 𝗔𝗿𝗰𝗵𝗮𝗻𝗴𝗲𝗹
Backtrace:
from /home/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(351)
- 0 /home/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(260): MediaWiki\Preferences\DefaultPreferencesFactory->loadPreferenceValues(User, RequestContext, array)
- 1 /home/rabidpan/public_html/fascipedia/includes/preferences/DefaultPreferencesFactory.php(1800): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor(User, RequestContext)
- 2 /home/rabidpan/public_html/fascipedia/includes/specials/SpecialPreferences.php(131): MediaWiki\Preferences\DefaultPreferencesFactory->getForm(User, RequestContext, string)
- 3 /home/rabidpan/public_html/fascipedia/includes/specials/SpecialPreferences.php(109): SpecialPreferences->getFormObject(User, RequestContext)
- 4 /home/rabidpan/public_html/fascipedia/includes/specialpage/SpecialPage.php(701): SpecialPreferences->execute(NULL)
- 5 /home/rabidpan/public_html/fascipedia/includes/specialpage/SpecialPageFactory.php(1428): SpecialPage->run(NULL)
- 6 /home/rabidpan/public_html/fascipedia/includes/MediaWiki.php(316): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
- 7 /home/rabidpan/public_html/fascipedia/includes/MediaWiki.php(904): MediaWiki->performRequest()
- 8 /home/rabidpan/public_html/fascipedia/includes/MediaWiki.php(562): MediaWiki->main()
- 9 /home/rabidpan/public_html/fascipedia/index.php(50): MediaWiki->run()
- 10 /home/rabidpan/public_html/fascipedia/index.php(46): wfIndexMain()
- 11 {main} -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 06:51, 21 July 2024 (UTC)
- I just found this issue on one of my wikis. I don't suppose you ever found a fix?
- For comparison, here's my backtrace...
- [Z1oY54QmUfBG8HNxxUzIBQAAANI] /index.php?title=Special:Preferences MWException: Default '"0"' is invalid for preference math of user Pltee
- Backtrace:
- from /datalocal/www/html/mediawiki/includes/preferences/DefaultPreferencesFactory.php(298)
- #0 /datalocal/www/html/mediawiki/includes/preferences/DefaultPreferencesFactory.php(250): MediaWiki\Preferences\DefaultPreferencesFactory->loadPreferenceValues()
- #1 /datalocal/www/html/mediawiki/includes/preferences/DefaultPreferencesFactory.php(1681): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor()
- #2 /datalocal/www/html/mediawiki/includes/specials/SpecialPreferences.php(132): MediaWiki\Preferences\DefaultPreferencesFactory->getForm()
- #3 /datalocal/www/html/mediawiki/includes/specials/SpecialPreferences.php(110): SpecialPreferences->getFormObject()
- #4 /datalocal/www/html/mediawiki/includes/specialpage/SpecialPage.php(647): SpecialPreferences->execute()
- #5 /datalocal/www/html/mediawiki/includes/specialpage/SpecialPageFactory.php(1366): SpecialPage->run()
- #6 /datalocal/www/html/mediawiki/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
- #7 /datalocal/www/html/mediawiki/includes/MediaWiki.php(930): MediaWiki->performRequest()
- #8 /datalocal/www/html/mediawiki/includes/MediaWiki.php(564): MediaWiki->main()
- #9 /datalocal/www/html/mediawiki/index.php(53): MediaWiki->run()
- #10 /datalocal/www/html/mediawiki/index.php(46): wfIndexMain()
- #11 {main} Paul.lenhart (talk) 17:52, 12 December 2024 (UTC)
No actor for target_author_id row
I get these errors when upgrading from 1.35.x to 1.39.x. I'd say something went wrong with a previous update to 1.35.x.
Beginning migration of log_search No actor for target_author_id row with ls_value=101 ls_log_id=14499 No actor for target_author_id row with ls_value=107 ls_log_id=14499 No actor for target_author_id row with ls_value=14 ls_log_id=422 No actor for target_author_id row with ls_value=14 ls_log_id=423 No actor for target_author_id row with ls_value=14 ls_log_id=444 No actor for target_author_id row with ls_value=14 ls_log_id=445 No actor for target_author_id row with ls_value=17 ls_log_id=621 No actor for target_author_id row with ls_value=24 ls_log_id=835 No actor for target_author_id row with ls_value=28 ls_log_id=2545 No actor for target_author_id row with ls_value=33 ls_log_id=2390 No actor for target_author_id row with ls_value=33 ls_log_id=2400 No actor for target_author_id row with ls_value=34 ls_log_id=2394 No actor for target_author_id row with ls_value=36 ls_log_id=2734 No actor for target_author_id row with ls_value=39 ls_log_id=3466 No actor for target_author_id row with ls_value=44 ls_log_id=6887 No actor for target_author_id row with ls_value=44 ls_log_id=7426 No actor for target_author_id row with ls_value=46 ls_log_id=8373 No actor for target_author_id row with ls_value=46 ls_log_id=8458 No actor for target_author_id row with ls_value=46 ls_log_id=8461 No actor for target_author_id row with ls_value=46 ls_log_id=8462 ... target_author_id, ls_value=47 ls_log_id=8458 No actor for target_author_id row with ls_value=9 ls_log_id=2838 No actor for target_author_id row with ls_value=9 ls_log_id=2839 ... target_author_id, ls_value=93 ls_log_id=14499 ... target_author_ip, ls_value=94.217.178.6 ls_log_id=2475 Completed migration, inserted 0 row(s) with 0 new actor(s), 22 error(s) errors were encountered.
What effect will this have? So far the wiki looks fine. Anyhow, do I need to worry? If yes, is there a suggestion on what to do about it? Thanks and cheers [[kgh]] (talk) 13:05, 22 July 2024 (UTC)
- This sounds like possibly a user was removed from the database (this was something that people sometimes did after spam attacks), causing it to not be possible to find the user/actor that goes with a name in the log tables. You can look in your log_search table and find the records in question to see if you can find some sort of commonality for this user. I'm assuming this was possibly the second time this migration was run ? Cause if would expect at least some successful insertions for that many rows. —TheDJ (Not WMF) (talk • contribs) 09:30, 23 July 2024 (UTC)
Visual Editor not working
I recently upgraded my Media Wiki to the latest stable version. I followed all the procedures I do in any other upgrade except this time there were a few issues. The first and most major issue is the fact that the Visual Editor is not working. When you click the "edit" tab the web page URL changes to show you are editing but the actual page does not change. I already tried re-installing the extension, but I still get the same issue. My search bar is also not working as it did before. It no longer gives me page suggestions while I am typing but that might just be a new thing in the update?
Any help would be appreciated.
Thanks, JulianMalcolm08 (talk) 13:16, 22 July 2024 (UTC)
- That sounds like your Javascript resources are not served up correctly ? A browser inspector should be able to tell you these things. —TheDJ (Not WMF) (talk • contribs) 09:25, 23 July 2024 (UTC)
- Thank you. 2600:1005:B051:9F7F:5468:37D7:D221:CC0 (talk) 19:51, 28 July 2024 (UTC)
- I'm having similar trouble after upgrading Mediawiki to v1.42.1. The progress bar starts but then gets stuck, and inspecting the browser Developer tools I see that the following request is erroring in a 502 Bad Gateway:
- https://en.seminaverbi.bibleget.io/w/load.php?lang=en&skin=vector-2022&version=18at9&modules=diffMatchPatch%2Cdompurify%2Cmoment%2Coojs-ui%2Coojs-ui-toolbars%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.CodeMirror%7Cext.CodeMirror.visualEditor%7Cext.TemplateSandbox.visualeditor%7Cext.abuseFilter.visualEditor%7Cext.cite.parsoid.styles%7Cext.cite.styles%2CvisualEditor%7Cext.cite.visualEditor.core%7Cext.confirmEdit.CaptchaInputWidget%2CvisualEditor%7Cext.disambiguator.visualEditor%7Cext.geshi.visualEditor%7Cext.math.styles%2CvisualEditor%7Cext.score.visualEditor%7Cext.score.visualEditor.icons%7Cext.spamBlacklist.visualEditor%7Cext.templateDataGenerator.editPage%7Cext.titleblacklist.visualEditor%7Cext.translate.ve%7Cext.visualEditor.data%2Cicons-licenses%2CmoduleIcons%2CmoduleIndicators%7Cext.wikihiero.visualEditor%7Cjquery.lengthLimit%2Ctablesorter%7Cjquery.tablesorter.styles%7Cmediawiki.ForeignStructuredUpload.BookletLayout%7Cmediawiki.ForeignUpload%2CUpload%2Cdiff%2Cnotification%2Cpulsatingdot%2CtempUserCreated%2CvisibleTimeout%2Cwidgets%7Cmediawiki.Upload.BookletLayout%7Cmediawiki.action.view.postEdit%2CredirectPage%7Cmediawiki.diff.styles%7Cmediawiki.interface.helpers.styles%7Cmediawiki.language.months%2Cnames%7Cmediawiki.libs.jpegmeta%7Cmediawiki.page.gallery.styles%7Cmediawiki.skinning.content.parsoid%7Cmediawiki.widgets.AbandonEditDialog%2CCategoryMultiselectWidget%2CDateInputWidget%2CMediaSearch%2CUserInputWidget%2Cstyles%7Cmediawiki.widgets.DateInputWidget.styles%7Coojs-ui-toolbars.icons%7Coojs-ui.styles.icons-accessibility%2Cicons-content%2Cicons-editing-advanced%2Cicons-editing-citation%2Cicons-editing-core%2Cicons-editing-list%2Cicons-editing-styling%2Cicons-interactions%2Cicons-layout%2Cicons-media%2Cicons-moderation%2Cicons-movement%2Cicons-user
- I tried testing the request against the single resources being requested, and found that all resources are accounted for except for the last four. A request for only the last four (https://en.seminaverbi.bibleget.io/w/load.php?lang=en&skin=vector-2022&version=18at9&modules=icons-media%2Cicons-moderation%2Cicons-movement%2Cicons-user) will result in:
- mw.loader.state({"icons-media":"missing","icons-moderation":"missing","icons-movement":"missing","icons-user":"missing"});
- How and where should these resources be generated? Can I use npm or yarn somewhere within my mediawiki installation? Perhaps within the /extensions/VisualEditor folder? However I'm not seeing a package.json in that folder anywhere. Perhaps if I copy and paste them from a source to their wanted destination, I just need an indication of the source and the destination... Lwangaman (talk) 15:10, 31 July 2024 (UTC)
Setting up MediaWiki through dreamhost
We are having trouble with completing the basic setup by running the configuration script. We keep getting 404 error when we go to the URL of our MediaWiki installation in our web browser to complete the rest of the installation. We uploaded the file as mentioned here. We were also following this tutorial.
We are not sure what else to do. Has anyone set up a Media Wiki specifically through dreamhost? Thank you for your help in advance. Mnsolar (talk) 01:34, 23 July 2024 (UTC)
- I have no experience with dreamhost, but In general: "simplify all the things". First try a very simply hello world .html file, see if you can get a response serving it up. Then try an index.php with just phpinfo() in it and see if you can get that to respond. etc.. etc etc.
- This will tell you which layer of the several layers that are involved is giving you a problem. —TheDJ (Not WMF) (talk • contribs) 09:24, 23 July 2024 (UTC)
Does Mediawiki 1.39 LTS support MySQL 8?
The Compatibility guide says that Mediawiki 1.39 supports MySQL 5.7.0+.
To be sure before we upgrade our MySQL database, does that include MySQL 8.x or does the `+` just refer to the 5.x family?
Thanks. Mans0954 (talk) 08:51, 23 July 2024 (UTC)
- That includes MySQL 8. —TheDJ (Not WMF) (talk • contribs) 09:17, 23 July 2024 (UTC)
It is said to not use thoses functions, but how do I replace the explode function ?
Hello, we work on the website archi-wiki.org that makes a lot of semantic query {{#ask}} and display them with templates. So we use #explode a lot because a smw {{#ask}} returns a string with delimiters. But it said to not use {{#explode}} and the others ParserFucntions/String functions. There is the wikipedia Module:String that replace a lot of them, but I haven't found replacement for the {{#explode}} so I tried making my own (Module:Explode):
local p = {} function p.findSep(frame) local text = frame.args[1] or "" local sepPattern = frame.args[2] or ";" local indice = frame.args[3] or 0 indice=indice+1 local i1=1 local i2=1 local i3=1 for i=0,indice-1 do if (i+1==indice) and (string.find(text,sepPattern,i3)==nil) then i1=i3 i2=0 break end i1=i3 i2,i3=string.find(text,sepPattern,i3) if (i2 == nil) or (i3==nil) then return "" end i3=i3+1 end return string.sub(text,i1,i2-1) end return p
It has the exact same outputs but I don't know how well it is optimised. Is there a better solution that I don't know of ? Right now, when we make a query that outputs 10k+ results, it takes a lot of time.
Here's some test examples :
{{#vardefine:test|test1;sep;test2;sep;test3;sep;test4;sep;}} T1: {{#invoke:Explode|findSep|{{#var:test}}|;sep;|0}} | {{#explode:{{#var:test}}|;sep;|0}} T2: {{#invoke:Explode|findSep|{{#var:test}}|;sep;|1}} | {{#explode:{{#var:test}}|;sep;|1}} T3: {{#invoke:Explode|findSep|{{#var:test}}|;sep;|7}} | {{#explode:{{#var:test}}|;sep;|7}}
res :
T1: test1 | test1
T2: test2 | test2
T3: |
(we use luastandalone for now, we're still on mw 1.39 and php 7.4 and we didn't manage to install luasandbox. We're waiting for mw 1.43 lts)
| Product | Version |
|---|---|
| MediaWiki | 1.39.7 |
| PHP | 7.4.33 (fpm-fcgi) |
| MariaDB | 10.11.6-MariaDB-0+deb12u1-log |
| ICU | 72.1 |
| elasticsearch | 6.8.23 |
| Semantic Mediawiki | 4.1.2 |
| Semantic Result Format | 4.0.2 |
| ParserFunctions | 1.6.0 |
| Scribunto | – (84400d8) |
Aphfug (talk) 11:55, 23 July 2024 (UTC)
- You can use mw.text.split - https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#mw.text.split
- See also w:template:string split.
- If using extension:SemanticScribunto then you dont have to bother splitting in the first place. Bawolff (talk) 20:28, 23 July 2024 (UTC)
Would a parser function be best for a currency/point-based extension?
Hello. For one of my wikis, I have been planning on creating a point-based extension for a feature that can be used to access certain parts of a wiki (i.e. full versions of games that have demos). However, I am not sure whether I should use a parser function or some other type of extension. Any advice? Thank you for reading. Newman2 (talk) 17:39, 23 July 2024 (UTC)
- Maybe you want custom Autopromote group using Manual:Hooks/AutopromoteCondition Bawolff (talk) 17:54, 23 July 2024 (UTC)
- Nice, but how can I implement that hook into a currency-like feature? Newman2 (talk) 18:12, 23 July 2024 (UTC)
Backup/Export all
Hi,
I am trying to find a way to export or back up my wikibase stored on wikibase.cloud. I have already found a number of extensions to export/back up self-hosted wikibases, as well as way to export specific pages (either one by one or a batch of pages). However, I have not yet found a way (if it exists) to instantly export/back up the entirety of a wikibase instance hosted by wikibase.cloud. Am I missing something or is this not an option at this stage? As I put more and more data in my wikibase, this is starting to feel like an important thing to do.
Thanks a lot in advance! 2A03:1B20:B:F011:0:0:0:A06D (talk) 18:45, 23 July 2024 (UTC)
- This is probably something better asked to the wikibase.cloud people Bawolff (talk) 20:14, 23 July 2024 (UTC)
- Well noted, will try. Thanks! 2A03:1B20:B:F011:0:0:0:A06D (talk) 08:39, 24 July 2024 (UTC)
Erro de autenticação
Ao acessar o VClipping do Media Wiki, aparece a seguinte Mensagem: Erro de autenticação.Foram detetados problemas com a sua sessão; Esta ação foi cancelada como medida de proteção contra a intercepção de sessões. Experimente usar o botão "Voltar" e atualizar a página de onde veio e tente novamente.
O que devo fazer? Jluislima (talk) 15:41, 24 July 2024 (UTC)
TemplateStyles
I am running mediawiki 1.36.2 and when following Extension:TemplateStyles#Configuration
My site breaks after adding loadextenion
The error log is just getting http 500, but when I comment out load extension (template styles), the page loads fine
anyone have luck with getting templatestyles to work? Rebu213 (talk) 15:56, 24 July 2024 (UTC)
- Please first upgrade your ancient, insecure MediaWiki installation - thanks. Malyacko (talk) 15:58, 24 July 2024 (UTC)
- Are you using the correct version for your version of mediawiki.
- Do you have php set to show error messages (see How to debug) Bawolff (talk) 23:43, 24 July 2024 (UTC)
MW can't connect to DB though the install script can
This is what I did:
1. Create a new MySQL database 'blah_mw' and a user 'blah_user' with all possible privileges on the former.
2. Install MediaWiki, providing the following information to the installation script:
$wgDBtype = 'mysql'; $wgDBserver = 'localhost'; $wgDBname = 'blah_mw'; $wgDBuser = 'blah_user'; $wgDBpassword = 'mynicepassword';
as summed up in LocalSettings.php.
3. Go to http://mywiki.org/, where I obtain the error:
MediaWiki internal error. Original exception: [ZqEs3UQYlJ7QKxMlbf02vgAAAIA] / Wikimedia\Rdbms\DBConnectionError: Cannot access the database: Access denied for user 'blah_user'@'localhost' (using password: YES) (localhost) Backtrace: from /home/blah/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1138) #0 /home/v/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(794): Wikimedia\Rdbms\LoadBalancer->reportConnectionError() #1 /home/blah/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(782): Wikimedia\Rdbms\LoadBalancer->getServerConnection() #2 /home/blah/public_html/includes/libs/rdbms/database/DBConnRef.php(99): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal() #3 /home/blah/public_html/includes/libs/rdbms/database/DBConnRef.php(117): Wikimedia\Rdbms\DBConnRef->ensureConnection() #4 /home/blah/public_html/includes/libs/rdbms/database/DBConnRef.php(338): Wikimedia\Rdbms\DBConnRef->__call() #5 /home/blah/public_html/includes/libs/rdbms/querybuilder/SelectQueryBuilder.php(747): Wikimedia\Rdbms\DBConnRef->selectField()
It seems that MediaWiki cannot connect to the database. However, when I open it with PHPmyadmin, I can see that the installation script has been able to edit it, so the problem is not related to the credentials I gave.
Does anybody have any clue what the problem can be related to? 2A01:CB19:8142:6C00:1CCF:B57E:64A0:D6E5 (talk) 16:55, 24 July 2024 (UTC)
- When you say install script do you mean install.php commandline script or do you mean web installer? Bawolff (talk) 23:41, 24 July 2024 (UTC)
- I mean the web installer. 2A01:CB19:8142:6C00:F65B:F11B:9B75:993D (talk) 14:26, 25 July 2024 (UTC)
- I should also mention that I use a shared hosting, so I don't have root privileges on the server. The creation of the database and MySQL user were done through the administration panel of the host, and then I downloaded MediaWiki by SSH. 2A01:CB19:8142:6C00:F65B:F11B:9B75:993D (talk) 14:58, 25 July 2024 (UTC)
- That's weird. If it works in one it should work in both.
- Try using wgDBServer of 127.0.0.1 instead of localhost, just in case (controls whether to use tcp or unix socket) Bawolff (talk) 21:04, 25 July 2024 (UTC)
- Finally it worked by creating a second user. Apparently my host blocked the first one, probably the web installer had it make too many inserts into the database... Sorry for bothering, thanks a lot for your answers. 2A01:CB19:8142:6C00:679:E05E:1051:3B2A (talk) 20:46, 26 July 2024 (UTC)
Help loggin in!!
Help loggin in!! 161.69.116.10 (talk) 18:06, 24 July 2024 (UTC)
Recent Changes Issue
| Software | Version |
|---|---|
| MediaWiki | 1.42.1 |
| PHP | 8.3.9 (fpm-fcgi) |
| ICU | 70.1 |
| MariaDB | 10.11.8-MariaDB-ubu2204 |
| Pygments | 2.17.2 |
I've been having a problem for a few days where not all edits are listed in the recent changes. For example, file uploads or page deletions are not appearing. When I run therebuildrecentchanges.php, everything shows up, but I can't run it every minute? Last week, I ran the rebuildall.php script... could that be the cause? Vincenʈ 06:46, 25 July 2024 (UTC)
- In the logs, everything is displayed correctly. Vincenʈ 06:51, 25 July 2024 (UTC)
- Can you check if the job queue is running properly (e.g. run showJobs.php --group Bawolff (talk) 07:49, 25 July 2024 (UTC)
- 0 queued; 4 claimed (0 active, 4 abandoned); 0 delayed Vincenʈ 08:35, 25 July 2024 (UTC)
- Unfortunately, I still have the problem. Only with running therebuildrecentchanges.php I get everything... Vincenʈ 11:55, 2 August 2024 (UTC)
- Huh, im not sure.
- Could you enable mediawiki debug logging, - $wgDebugLogFile, do one of the actions that arent being logged, and check for any exceptions, particularly those marked
[deferred]or anything marked recentchanges, logging, or jobqueue. (Note, it is expected that this is a very verbose log. Most entries will be totally normal noise and not errors). Bawolff (talk) 20:49, 2 August 2024 (UTC)
clientlogin-Request fails with "missingparam" with parameter provided
Hello everyone. I am trying to make a post request to the mediawiki api with the following url
https://test.domain.de/w/api.php?action=clientlogin&format=json
with my body looking like this
{"logintoken":"e55e353a054628b573a515a6580fa4ed66a235a4%2B%5C","username":"test","password":"test"}
I got the login-token via the get-request https://test.domain.de/w/api.php?action=query&meta=tokens&type=login&format=json
Content-Type is application/json in both instances
and I am getting the following error with the latter post request
{"error":{"code":"missingparam","info":"The \"logintoken\" parameter must be set.","*":"See https://testwiki.sevengamer.de/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."}}
This does not make sense to me given as i am providing the parameter that the response is telling me is missing. Please help :( 2A02:810D:4940:1C4:D9A:BF2B:364F:D8C8 (talk) 11:37, 25 July 2024 (UTC)
- Application/json is not a supported content type by the api. Use either multipart/form-data or application/x-www-form-urlencoded for post bodies (and make them in that format) Bawolff (talk) 21:10, 25 July 2024 (UTC)
Search inside a category?
Is there a way to limit a search to only pages inside a category?
Example: Search "scandal" inside Category:Presidents_of_the_United_States
I can't find an extension. Is there a hook that can be used without hardcoding into SpecialSearch.php? Subfader (talk) 15:13, 25 July 2024 (UTC)
- If using extension:CirrusSearch you can use the incategory: operator. See help:Extension:CirrusSearch Bawolff (talk) 21:07, 25 July 2024 (UTC)
How to Remove Footer Links?
How can I remove the footer links?: Disclaimer and Privacy
I want to remove them using PHP (not CSS), and I'd like to keep the About link. 49.237.200.144 (talk) 17:08, 25 July 2024 (UTC)
- Apologies! My Mediawiki v1.42.1 49.237.200.144 (talk) 17:11, 25 July 2024 (UTC)
- Manual:Footer —TheDJ (Not WMF) (talk • contribs) 08:09, 26 July 2024 (UTC)
Ping from bot
Hi, I noticed that if a user with "bot" permission pinging in the edit summary, the ping is not sent. what can be done? Thanks in advance! Neriah (talk) 20:40, 25 July 2024 (UTC)
- Bots are often excluded from pings yes. Which bot and which wiki are we talking about ? —TheDJ (Not WMF) (talk • contribs) 08:08, 26 July 2024 (UTC)
- @TheDJ This is a wiki site that does not belong to the Wikimedia Foundation. Manual edits are made through the bot account, so it is necessary for pings to be sent. Neriah (talk) 13:07, 26 July 2024 (UTC)
- @TheDJ?
- Thank you! Neriah (talk) 20:15, 1 August 2024 (UTC)
Extension:GlobalBlocking
I've already posted about this error but now I've this detailed error while installing the GlobalBlocking extension and I've followed everything mentioned in Extension:GlobalBlocking but facing this problem can anyone help
Database error
A database query error has occurred. This may indicate a bug in the software.
[ZqL81IaLlLGPQ01JYt0l7QAAAAk] /index.php?title=Special:UserLogin&returnto=Special%3AGlobalBlockList Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1044: Access denied for user '36900384_a'@'192.168.0.%' to database 'globalblocking'
Function: Wikimedia\Rdbms\DatabaseMySQL::doSelectDomain
Query: USE `globalblocking`
Backtrace:
from /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/rdbms/database/Database.php(1236)
#0 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/rdbms/database/Database.php(1220): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/rdbms/database/Database.php(1194): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/rdbms/database/DatabaseMySQL.php(202): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string)
#3 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/rdbms/database/Database.php(1543): Wikimedia\Rdbms\DatabaseMySQL->doSelectDomain(Wikimedia\Rdbms\DatabaseDomain)
#4 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/rdbms/loadbalancer/LoadBalancer.php(922): Wikimedia\Rdbms\Database->selectDomain(Wikimedia\Rdbms\DatabaseDomain)
#5 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/rdbms/loadbalancer/LoadBalancer.php(801): Wikimedia\Rdbms\LoadBalancer->reuseOrOpenConnectionForNewRef(integer, Wikimedia\Rdbms\DatabaseDomain, integer)
#6 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/rdbms/loadbalancer/LoadBalancer.php(793): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#7 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/rdbms/database/DBConnRef.php(99): Wikimedia\Rdbms\LoadBalancer->getConnectionInternal(integer, string, string, integer)
#8 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/rdbms/database/DBConnRef.php(117): Wikimedia\Rdbms\DBConnRef->ensureConnection()
#9 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/rdbms/database/DBConnRef.php(538): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#10 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/extensions/GlobalBlocking/includes/GlobalBlocking.php(313): Wikimedia\Rdbms\DBConnRef->anyString()
#11 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/extensions/GlobalBlocking/includes/GlobalBlocking.php(287): MediaWiki\Extension\GlobalBlocking\GlobalBlocking::getRangeCondition(string)
#12 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/extensions/GlobalBlocking/includes/GlobalBlocking.php(121): MediaWiki\Extension\GlobalBlocking\GlobalBlocking::getGlobalBlockingBlock(string, boolean)
#13 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/extensions/GlobalBlocking/includes/GlobalBlocking.php(38): MediaWiki\Extension\GlobalBlocking\GlobalBlocking::getUserBlockDetails(MediaWiki\User\User, string)
#14 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/extensions/GlobalBlocking/includes/GlobalBlockingHooks.php(102): MediaWiki\Extension\GlobalBlocking\GlobalBlocking::getUserBlock(MediaWiki\User\User, string)
#15 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/HookContainer/HookContainer.php(161): MediaWiki\Extension\GlobalBlocking\GlobalBlockingHooks->onGetUserBlock(MediaWiki\User\User, string, NULL)
#16 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/HookContainer/HookRunner.php(1962): MediaWiki\HookContainer\HookContainer->run(string, array)
#17 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/block/BlockManager.php(186): MediaWiki\HookContainer\HookRunner->onGetUserBlock(MediaWiki\User\User, string, NULL)
#18 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/user/User.php(1406): MediaWiki\Block\BlockManager->getUserBlock(MediaWiki\User\User, MediaWiki\Request\WebRequest, boolean, boolean)
#19 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/user/User.php(1507): MediaWiki\User\User->getBlockedStatus(boolean, boolean)
#20 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/user/PasswordReset.php(349): MediaWiki\User\User->getBlock()
#21 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/user/PasswordReset.php(154): MediaWiki\User\PasswordReset->isBlocked(MediaWiki\User\User)
#22 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/user/PasswordReset.php(124): MediaWiki\User\PasswordReset->computeIsAllowed(MediaWiki\User\User)
#23 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/libs/MapCacheLRU.php(271): MediaWiki\User\PasswordReset->MediaWiki\User\{closure}()
#24 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/user/PasswordReset.php(121): MapCacheLRU->getWithSetCallback(string, Closure)
#25 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/specialpage/LoginSignupSpecialPage.php(1082): MediaWiki\User\PasswordReset->isAllowed(MediaWiki\User\User)
#26 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/specialpage/LoginSignupSpecialPage.php(757): MediaWiki\SpecialPage\LoginSignupSpecialPage->getFieldDefinitions(array)
#27 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/specialpage/AuthManagerSpecialPage.php(695): MediaWiki\SpecialPage\LoginSignupSpecialPage->onAuthChangeFormFields(array, array, array, string)
#28 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/specialpage/LoginSignupSpecialPage.php(708): MediaWiki\SpecialPage\AuthManagerSpecialPage->fieldInfoToFormDescriptor(array, array, string)
#29 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/specialpage/AuthManagerSpecialPage.php(434): MediaWiki\SpecialPage\LoginSignupSpecialPage->getAuthForm(array, string)
#30 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/specialpage/LoginSignupSpecialPage.php(337): MediaWiki\SpecialPage\AuthManagerSpecialPage->trySubmit()
#31 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/specialpage/SpecialPage.php(727): MediaWiki\SpecialPage\LoginSignupSpecialPage->execute(NULL)
#32 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/specialpage/SpecialPageFactory.php(1621): MediaWiki\SpecialPage\SpecialPage->run(NULL)
#33 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/MediaWiki.php(357): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#34 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/MediaWiki.php(960): MediaWiki->performRequest()
#35 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/includes/MediaWiki.php(613): MediaWiki->main()
#36 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/index.php(50): MediaWiki->run()
#37 /home/vol15_5/infinityfree.com/if0_36900384/nepalpedia.great-site.net/htdocs/index.php(46): wfIndexMain()
#38 {main} Xaloria (talk) 01:37, 26 July 2024 (UTC)
- When you login/register, it is running a check by the user against the global blocking table.
- Access denied for user '36900384_a'@'192.168.0.%' to database 'globalblocking'
- User 36900384_an accessing via '192.168.0.%' cannot read or write to the globalblocking table. You'll have to fix that, it is a database configuration problem. —TheDJ (Not WMF) (talk • contribs) 08:05, 26 July 2024 (UTC)
- Ok it's a database configuration problem but how can I fix this can you give me little bit idea. Xaloria (talk) 08:09, 26 July 2024 (UTC)
- It's not really a MediaWiki issue and very much depends on how your server is setup. I'm assuming that access to other tables works ?
- https://www.google.com/search?q=mysql+granting+permissions+to+a+table
- Stack overflow should have lots of answers as well. —TheDJ (Not WMF) (talk • contribs) 08:19, 26 July 2024 (UTC)
- It should be noted, that access denied might literally mean access denied, but in many setups you will get the same error if you simply forgot to create the database. Bawolff (talk) 09:38, 26 July 2024 (UTC)
- This was solved by making some changes in database but now another problem has been shown to me. Xaloria (talk) 11:11, 26 July 2024 (UTC)
- This problem has gone but now I've another problem like this
- MediaWiki internal error.
- Original exception: [ZqODYk6fQHQg5OQmWuIAhQAAAAs] / Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
- Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
- Error 1146: Table 'if0_36900384_globalblocking.mwfm_l10n_cache' doesn't exist
- Function: LCStoreDB::get
- Query: SELECT lc_value FROM `mwfm_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1 Xaloria (talk) 11:11, 26 July 2024 (UTC)
- This sounds like you changed the mediawiki db name ($wgDBname) to your globalblocking db, which would be the wrong thing to do. Bawolff (talk) 20:14, 27 July 2024 (UTC)
- So what should I do. Xaloria (talk) 15:47, 31 July 2024 (UTC)
Lua error: module 'Module:Message box' not found
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I want to use MediaWiki's Stub template on my own installation. When I try to edit the template file I get the error message "Lua error in package.lua at line 80: module 'Module:Message box' not found." How can I fix this?
I'm using MediaWiki 1.42.1 with Lua 5.1.5 and TemplateStyles 1.0 (8a7dd4a).
Thanks. VonCorax (talk) 17:42, 26 July 2024 (UTC)
- You need to also copy all templates it depends on (in this case w:Module:Message box)
- If transferring using Special:Export and Special:import, be sure to check the "Include templates" checkbox. Bawolff (talk) 20:12, 27 July 2024 (UTC)
- I've done that, and now I'm getting "Module:Message box/configuration" not found. Do I just keep importing stuff until it works? Importing
Message box/configurationaccomplished nothing. VonCorax (talk) 14:34, 28 July 2024 (UTC)
help regarding custom titles
I tried to put the displaytitle on a page of a wiki I'm in, but all I got was this: "Display title "United Kingdomball" was ignored since it is not equivalent to the page's actual title."
This was the context of how I want to add it:
The title of the page is called "UKball", but I placed the code {{DISPLAYTITLE:United Kingdomball}}. The DISPLAYTITLE code ended up failing as a result, and I want to ask: How can I overcome this problem (which is changing the page's display title to something that isn't "related" to the actual title)? Icantthinkofanamexd (talk) 17:47, 26 July 2024 (UTC)
- Ypu need to set $wgRestrictDisplayTitle = false; in LocalSettings.php Bawolff (talk) 18:05, 26 July 2024 (UTC)
ever-growing wiki
My wiki is consuming memory at an alarming rate. It is 20 gigs past where it should be.
I have deleted the image temp, archive, and thumbs folders. I have reduced the default thumb images to a single size. These purges produce temporary and tiny reductions but soon enough the numbers are right back where they were.
When I have less visitors it happens slower, when I have more visitors it increases faster. I am the only one who can add images.
Do I have a virus or a hacker, or just a bloated folder somewhere? -𝘼𝙧𝙘𝙝𝙖𝙣𝙜𝙚𝙡💀 14:54, 27 July 2024 (UTC)
- You should try to identify which parts of your applications take up most space. Based on your operating system there are different ways to do that. On Linux you can use
du -hcs ./* | sort -hwithin your MediaWiki installation directory. You can then dive into the largest folders and execute this command again. That way you may be able to identify where the data is. Then you need to decide yourself if it looks suspicious. Osnard (talk) 12:22, 31 July 2024 (UTC)
Wikipedia Logo and for family, font size change
Hello and greetings,
I have a few questions. Firstly, I would like to change the logo of our Wikipedia (dv:wikipedia) . The current font is very old and outdated. Secondly, the font and size used throughout the Wikipedia need to be updated as well. Can anyone guide me in the right direction? Glacious (talk) 10:02, 28 July 2024 (UTC)
- Hi, this support desk is for MediaWiki installations. For Wikimedia wikis, see https://meta.wikimedia.org/wiki/Tech for questions and https://meta.wikimedia.org/wiki/Requesting_wiki_configuration_changes for instructions - thanks. Malyacko (talk) 12:30, 29 July 2024 (UTC)
Lua error in package.lua at line 80: module 'Dev:User error' not found.
I'm having this issue with infoboxes (that IIRC I imported from the Miraheze Developers Wiki). I didn't have this issue when I originally imported them, something has broken. I can't find anything online about this specific error. Eldomtom2 (talk) 17:21, 28 July 2024 (UTC)
- Please see "Post a new question" in the sidebar. Malyacko (talk) 12:28, 29 July 2024 (UTC)
- If that's a request for more information, my wiki is cyberpedia.miraheze.org and the MediaWiki version is 1.42.1 Eldomtom2 (talk) 13:13, 29 July 2024 (UTC)
- Does miraheze have a global lua module system? If so, this sounds like it would be related to that. You might have better luck at miraheze support. Bawolff (talk) 22:04, 29 July 2024 (UTC)
- Turns out I hadn't imported the relevant modules! I guess a previous version didn't need them... Eldomtom2 (talk) 19:15, 5 August 2024 (UTC)
Version page is throwing Composer errors after upgrading to 1.42.1
Post upgrade, the Version page of Special Pages is now throwing 4 errors. Upgrading Composer on Windows didn't help. What do we need to do to fix this? Thanks!
Warning: Undefined array key "packages" in C:\inetpub\wwwroot\includes\libs\composer\ComposerInstalled.php on line 30
Warning: foreach() argument must be of type array|object, null given in C:\inetpub\wwwroot\includes\libs\composer\ComposerInstalled.php on line 33
Warning: Undefined array key "packages" in C:\inetpub\wwwroot\includes\libs\composer\ComposerInstalled.php on line 30
Warning: foreach() argument must be of type array|object, null given in C:\inetpub\wwwroot\includes\libs\composer\ComposerInstalled.php on line 33 Bdaltman (talk) 00:29, 30 July 2024 (UTC)
- Which version of composer do you have installed ? Since 1.42, MediaWiki requires composer version 2, so that might be related. —TheDJ (Not WMF) (talk • contribs) 13:45, 31 July 2024 (UTC)
Problem with updating from 1.40 to 1.42.1
Hi. I want to update MediaWiki from version 1.40 to 1.42.1 and during the update I get this error:
Updating category collations... Selecting next 100 pages from cl_from = 0... processing... 0 done. Selecting next 100 pages from cl_from = 100... processing... 0 done. Selecting next 100 pages from cl_from = 200... processing... 0 done. Selecting next 100 pages from cl_from = 300... processing... 0 done. Selecting next 100 pages from cl_from = 400... processing... 0 done. Selecting next 100 pages from cl_from = 500... processing... 0 done. Selecting next 100 pages from cl_from = 600... processing... 0 done. Selecting next 100 pages from cl_from = 700... processing... 0 done. Selecting next 100 pages from cl_from = 800... processing... 0 done. Selecting next 100 pages from cl_from = 900... processing... 0 done. Selecting next 100 pages from cl_from = 1000... processing... 0 done. Selecting next 100 pages from cl_from = 1100... processing... 0 done. Selecting next 100 pages from cl_from = 1200... processing... 0 done. Selecting next 100 pages from cl_from = 1300... processing... 0 done. Selecting next 100 pages from cl_from = 1400... processing... 0 done. Selecting next 100 pages from cl_from = 1500... processing... 0 done. Selecting next 100 pages from cl_from = 1600... processing... 0 done. Selecting next 100 pages from cl_from = 1700... processing... 0 done. 0 rows processed ...done. ...have rev_actor field in revision table. ...watchlist_expiry table already exists. ...page_restrictions field does not exist in page table, skipping modify field patch. ...index ipb_address_unique already set on ipblocks table. ...archive table does not contain ar_text_id field. ...lc_lang is up-to-date. ...ll_lang is up-to-date. ...site_language is up-to-date. ...index ipb_address_unique on table ipblocks has no field ipb_anon_only; added. ...ipb_address_unique index up-to-date. ...actor_name in table actor already modified by patch patch-actor-actor_name-varbinary.sql. ...site_global_key in table sites already modified by patch patch-sites-site_global_key.sql. ...iwl_prefix in table iwlinks already modified by patch patch-extend-iwlinks-iwl_prefix.sql. ...rd_title in table redirect already modified by patch patch-redirect-rd_title-varbinary.sql. ...pl_title in table pagelinks already modified by patch patch-pagelinks-pl_title-varbinary.sql. ...tl_title field does not exist in templatelinks table, skipping modify field patch. ...il_to in table imagelinks already modified by patch patch-imagelinks-il_to-varbinary.sql. ...ll_title in table langlinks already modified by patch patch-langlinks-ll_title-varbinary.sql. ...iwl_title in table iwlinks already modified by patch patch-iwlinks-iwl_title-varbinary.sql. ...cat_title in table category already modified by patch patch-category-cat_title-varbinary.sql. ...qc_title in table querycache already modified by patch patch-querycache-qc_title-varbinary.sql. ...qcc_title in table querycachetwo already modified by patch patch-querycachetwo-qcc_title-varbinary.sql. ...wl_title in table watchlist already modified by patch patch-watchlist-wl_title-varbinary.sql. ...user_last_timestamp in table user_newtalk already modified by patch patch-user_newtalk-user_last_timestamp-binary.sql. ...pt_title in table protected_titles already modified by patch patch-protected_titles-pt_title-varbinary.sql. ...ir_type in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_type.sql. ...index wl_namespace_title already set on watchlist table. ...job_title in table job already modified by patch patch-job-job_title-varbinary.sql. ...job_timestamp in table job already modified by patch patch-job_job_timestamp.sql. ...job_token_timestamp in table job already modified by patch patch-job_job_token_timestamp.sql. ...wl_notificationtimestamp in table watchlist already modified by patch patch-watchlist-wl_notificationtimestamp.sql. ...role_id in table slot_roles already modified by patch patch-slot_roles-role_id.sql. ...model_id in table content_models already modified by patch patch-content_models-model_id.sql. ...cl_to in table categorylinks already modified by patch patch-categorylinks-cl_to-varbinary.sql. ...log_title in table logging already modified by patch patch-logging-log_title-varbinary.sql. ...us_timestamp in table uploadstash already modified by patch patch-uploadstash-us_timestamp.sql. ...index up_property already set on user_properties table. ...index site_global_key already set on sites table. ...index log_type_time already set on logging table. ...fa_name in table filearchive already modified by patch patch-filearchive-fa_name.sql. ...oi_name in table oldimage already modified by patch patch-oldimage-oi_name-varbinary.sql. ...exptime in table objectcache already modified by patch patch-objectcache-exptime-notnull.sql. ...index ar_name_title_timestamp already set on archive table. ...img_name in table image already modified by patch patch-image-img_name-varbinary.sql. ...img_timestamp in table image already modified by patch patch-image-img_timestamp.sql. ...index si_key already set on site_identifiers table. ...rc_title in table recentchanges already modified by patch patch-recentchanges-rc_title-varbinary.sql. ...rc_timestamp in table recentchanges already modified by patch patch-recentchanges-rc_timestamp.sql. ...rc_id in table recentchanges already modified by patch patch-recentchanges-rc_id.sql. ...index rc_new_name_timestamp already set on recentchanges table. ...ar_title in table archive already modified by patch patch-archive-ar_title-varbinary.sql. ...page_title in table page already modified by patch patch-page-page_title-varbinary.sql. ...user_name in table user already modified by patch patch-user_table-updates.sql. ...index rev_page_timestamp already set on revision table. ...have modtoken field in objectcache table. ...index oi_timestamp already set on oldimage table. ...index page_name_title already set on page table. ...index ct_rc_tag_id already set on change_tag table. ...page_restrictions table does not contain pr_user field. ...fa_id in table filearchive already modified by patch patch-filearchive-fa_id.sql. ...img_major_mime in table image already modified by patch patch-image-img_major_mime-default.sql. ...linktarget table already exists. ...rev_page_id key doesn't exist. ...pr_page in table page_restrictions already modified by patch patch-page_restrictions-pr_page.sql. ...pp_page in table page_props already modified by patch patch-page_props-pp_page.sql. ...ir_value in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_value.sql. ...have tl_target_id field in templatelinks table. ...user_autocreate_serial table already exists. ...ir_ipb_id in table ipblocks_restrictions already modified by patch patch-ipblocks_restrictions-ir_ipb_id.sql. ...ipb_id in table ipblocks already modified by patch patch-ipblocks-ipb_id.sql. ...user_editcount in table user already modified by patch patch-user-user_editcount.sql. Running maintenance/migrateRevisionActorTemp.php... ...Update 'MigrateRevisionActorTemp' already logged as completed. Use --force to run it again. done. ...revision_actor_temp doesn't exist. Running maintenance/updateRestrictions.php... Migration is not needed. done. ...page table does not contain page_restrictions field. ...templatelinks table has already been migrated. ...tl_namespace field does not exist in templatelinks table, skipping modify field patch. ...templatelinks table does not contain tl_title field. ...have el_to_path field in externallinks table. ...have user_is_temp field in user table. Running maintenance/migrateRevisionCommentTemp.php... ...Update 'MigrateRevisionCommentTemp' already logged as completed. Use --force to run it again. done. ...revision_comment_temp doesn't exist. Running maintenance/migrateExternallinks.php... ...Update 'MigrateExternallinks' already logged as completed. Use --force to run it again. done. ...el_to field does not exist in externallinks table, skipping modify field patch. ...have pl_target_id field in pagelinks table. ...externallinks table does not contain el_to field. Running maintenance/fixInconsistentRedirects.php... ...Update 'FixInconsistentRedirects' already logged as completed. Use --force to run it again. done. ...img_size in table image already modified by patch patch-image-img_size_to_bigint.sql. ...fa_size in table filearchive already modified by patch patch-filearchive-fa_size_to_bigint.sql. ...oi_size in table oldimage already modified by patch patch-oldimage-oi_size_to_bigint.sql. ...us_size in table uploadstash already modified by patch patch-uploadstash-us_size_to_bigint.sql. Adding uas_year field to table user_autocreate_serial...done. Creating block_target table...done. Dropping cl_collation_ext index from table categorylinks...done. Running maintenance/populateUserIsTemp.php... done. Dropping site_type index from table sites...done. Dropping iwl_prefix_from_title index from table iwlinks...done. Running /home/xx/xx/x/wiki/extensions/OATHAuth/maintenance/updateTOTPScratchTokensToArray.php...
An error occurred: Error 1044: Access denied for user '12345_wiki'@'%' to database 'virtual' Function: Wikimedia\Rdbms\DatabaseMySQL::doSelectDomain Query: USE `virtual`
Please help. Monocero (talk) 10:14, 31 July 2024 (UTC)
- Do you run a separate wgOATHAuthDatabase (and/or what is the current setting) or do you use wgSharedTables ? —TheDJ (Not WMF) (talk • contribs) 11:21, 31 July 2024 (UTC)
- I downloaded the 1.42.1 package from the MediaWiki website, sent the contents of the files from this package to the FTP server, overwriting the current ones. I started the update process.
- Example:
- mysite.pl/wiki/mw-config
- I entered the $wgUpgradeKey from LocalSettings.php on the update page and then I get these errors.
- And I don't understand why I have a connection error:
- An error occurred: Error 1044: Access denied for user '12345_wiki'@'%' to database 'virtual' Function: Wikimedia\Rdbms\DatabaseMySQL::doSelectDomain Query: USE `virtual`
- And I don't understand why I have this error:
- /home/xx/xx/x/wiki/extensions/OATHAuth/maintenance/updateTOTPScratchTokensToArray.php...
- I don't have anything like $wgOATHAuthDatabase or wgSharedTables in the LocalSettings.php file Monocero (talk) 11:56, 31 July 2024 (UTC)
- Ah.
- > overwriting the current ones
- But that doesn't delete the files that have been removed, which can cause issues when loading the site. Please read again Manual:Upgrading.
- Additionally, you didn't update your extensions yet and therefor your OathAuth extension is not compatible with this newer MediaWiki version. You can either choose to update all your extensions, or a bit easier / less confusing, can be to
- first disable all your extension in LocalSettings.php
- upgrade the core with the updater
- install the newer versions of extensions
- re-enable the extensions in your LocalSettings.php
- run the updater again to ensure the extensions can run all their updates —TheDJ (Not WMF) (talk • contribs) 12:14, 31 July 2024 (UTC)
- Hi. I left only the images directory and the LocalSettings.php file on the server, then I uploaded new content from the mediawiki-1.42.1 package and the latest versions of the extensions I use. I started the MediaWiki update process and I get the same error:
- ...site_type key doesn't exist.
- ...iwl_prefix_from_title key doesn't exist.
- Running /home/xx/xx/mysite.pl/wiki/extensions/OATHAuth/maintenance/updateTOTPScratchTokensToArray.php...
- An error occurred:
- Error 1044: Access denied for user '12345_wiki'@'%' to database 'virtual'
- Function: Wikimedia\Rdbms\DatabaseMySQL::doSelectDomain
- Query: USE `virtual` Monocero (talk) 09:57, 1 August 2024 (UTC)
- You are like the fourth person to report this. Would you be able to post your LocalSettings.php (redacting passwords) Bawolff (talk) 15:05, 1 August 2024 (UTC)
- Can u provide working OATHAuth config please
- wfLoadExtension( 'OATHAuth' );
- but using according to Extension:OATHAuth#Configuration
- $wgVirtualDomainsMapping['virtual-oathauth'] = [ 'db' => 'centraloath' ];
- throws
- An error occurred:
- Error 1044: Access denied for user 'user'@'localhost' to database 'virtual'
- Function: Wikimedia\Rdbms\DatabaseMySQL::doSelectDomain
- Query: USE `virtual` 80.108.171.42 (talk) 12:33, 10 August 2024 (UTC)
- Which data do you want to see? Do you mean the entire contents of this file? How did those people solve this problem? These are the extensions I have installed:
- CreatePageUw
- DarkMode
- PageForms
- TinyMCE
- This is the skin I have installed:
- Citizen Monocero (talk) 19:33, 1 August 2024 (UTC)
- None of them did (afaik). I was just hoping that the LocalSettings.php file would reveal some difference in configuration that might hint at what the issue is. Bawolff (talk) 22:37, 1 August 2024 (UTC)
- I uploaded MediaWiki 1.41.0 files and when updating I have the following error:
- ...oathauth_types table already exists.
- ...have module field in oathauth_users table.
- ...oathauth_users table does not contain secret field.
- Running /home/xx/xx/mysite.pl/wiki/extensions/OATHAuth/maintenance/UpdateForMultipleDevicesSupport.php...
- An error occurred:
- No such service: OATHAuthDatabase Monocero (talk) 19:33, 4 August 2024 (UTC)
- I had the same problem. The problem lies solely in the extension OATHAuth and it was solved after removing it from the extensions folder and copying it back from a backup.
- In short, having the newest mediawiki with an old version of the extension. Buran Biggest Fan (talk) 09:08, 5 August 2024 (UTC)
- @Bawolff
- This bug with the 1.42.1 update comes from MediaWiki, probably from the OATHAuth extension. I did as @Buran Biggest Fan mentioned, I removed the OATHAuth extension from the 'extensions' directory on the server, in the LocalSettings.php file I removed the code wfLoadExtension( 'OATHAuth' ); that loads this extension and I was able to successfully update MediaWiki from 1.40 to 1.41.0. Then I uploaded this extension from the 1.41 package. I am not going to upgrade to 1.42.1 because there is bug:
- /home/xx/xx/x/wiki/extensions/OATHAuth/maintenance/updateTOTPScratchTokensToArray.php...
- An error occurred: Error 1044: Access denied for user '12345_wiki'@'%' to database 'virtual' Function: Wikimedia\Rdbms\DatabaseMySQL::doSelectDomain Query: USE `virtual`
- When version 1.43 comes out, I will update MediaWiki.
- @Buran Biggest Fan
- Thank you for your post. You helped me. Monocero (talk) 09:32, 5 August 2024 (UTC)
- Yes, but we still have no idea why, as most people do not seem to experience this bug, so devs haven't been able to figure out what is going on. If there is anything different about your setup compared to the average mediawiki setup, please let us know. Bawolff (talk) 19:19, 5 August 2024 (UTC)
- I understand, I will paste you the content I added in LocalSettings.php, but I did a test before updating, I removed this content from LocalSettings.php and during the update I also got this error.
- Monocero (talk) 20:05, 5 August 2024 (UTC)
# PERSONAL CONFIGURATION: # * - Group of guests # user - Users group # autoconfirmed - Confirmed users # Restriction on creating all pages: # Only users with accounts older than four days can create pages # Requires MW 1.6 or later version $wgGroupPermissions['*' ]['createpage'] = false; // Guests cannot create pages $wgGroupPermissions['user' ]['createpage'] = false; // Users cannot create pages $wgGroupPermissions['autoconfirmed']['createpage'] = true; // Verified users can create pages # Editing restriction $wgGroupPermissions['*']['edit'] = false; // Guests cannot edit pages $wgGroupPermissions['user']['edit'] = false; // Users cannot edit pages $wgGroupPermissions['autoconfirmed']['edit'] = true; // Confirmed users can edit pages # Allowed file types that can be uploaded $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' ); # Disallowed file types that cannot be uploaded /** * Files with these extensions will not be able to be uploaded * An array of file extensions to blacklist * If you want to blacklist additional files, you should add them to this array */ $wgProhibitedFileExtensions = [ # HTML may contain JavaScript that steals cookies and web errors 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht', # PHP scripts can execute arbitrary code on the server 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 'phar', # Other file types that may be interpreted by some servers 'shtml', 'jhtml', 'pl', 'py', 'cgi', # It may contain malicious executable files for Windows victims 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl', # T341565 'xml', ]; # Allowed file upload size from computer and link $wgMaxUploadSize = [ '*' => 500 * 1024, // 500 KB - File size from your computer 'url' => 500 * 1024, // 500 KB - File size from link ]; # Warning when uploading a file over 500 KB $wgUploadSizeWarning = 500 * 1024; # Regular users cannot upload the file $wgGroupPermissions['user']['upload'] = false; # Confirmed users can upload a file and resend the file to the server $wgGroupPermissions['autoconfirmed']['upload'] = true; $wgGroupPermissions['autoconfirmed']['reupload'] = true; # Verified users can upload the file via the link $wgGroupPermissions['autoconfirmed']['upload_by_url'] = true; $wgAllowCopyUploads = true; $wgCopyUploadsFromSpecialUpload = true; # Enabling the CreatePageUw extension - Create a page wfLoadExtension( 'CreatePageUw' ); # Enable the ConfirmEdit extension - CAPTCHA against spambots wfLoadExtension( 'ConfirmEdit' ); # QuestyCaptcha wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/QuestyCaptcha' ]); # Add your questions in LocalSettings.php using this format: $wgCaptchaQuestions = [ 'xx' => 'xx', // In response, the letter size does not matter 'xx' => 'xx', // In response, the letter size does not matter 'xx' => 'xx', // In response, the letter size does not matter 'xx' => [ 16, 'xx' ], // The question may have many answers ]; $wgMainCacheType = CACHE_ANYTHING; $wgCaptchaTriggers['edit'] = true; $wgCaptchaTriggers['create'] = true; $wgCaptchaTriggers['createtalk'] = true; $wgCaptchaTriggers['addurl'] = true; $wgCaptchaTriggers['createaccount'] = true; $wgCaptchaTriggers['badlogin'] = true; # User must confirm email address before they can edit $wgEmailConfirmToEdit = true; # Enabling the TinyMCE extension - WYSIWYG editor wfLoadExtension( 'TinyMCE' ); $wgTinyMCEEnabled = true; # Displaying the TinyMCE editor when creating a new page in the CreatePageUw extension. $wgCreatePageUwUseTMCE = true; # Enabling the Page Forms extension wfLoadExtension( 'PageForms' ); # Access the Edit tab using the form $wgGroupPermissions['*']['viewedittab'] = false; // Guests do not have access to edit using the form $wgGroupPermissions['user']['viewedittab'] = false; // Users do not have access to edit using the form $wgGroupPermissions['sysop']['viewedittab'] = true; // Administrators have access to editing via the form # Enabling the DarkMode extension wfLoadExtension( 'DarkMode' ); # Enabling the Citizen skin wfLoadSkin( 'Citizen' ); - We believe this is a problem with the web upgrader that can be worked around by using the command line update.php script Bawolff (talk) 16:51, 31 August 2024 (UTC)
Upgrading to 1.39.7
Attempting to Update
- PHP 7.4 to 8.1
- MW 1.39.1 to 1.39.7
Environment
- Docker
- Kubernetes
- Canasta Hardened Image (from Ironbank)
Errors Presenting:
rsync: [generator] failed to set times on "/mediawiki/images": Operation not permitted (1) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7] rm -rf /mw_origin_files rm: cannot remove /mw_origin_files: Permission denied
PHP Fatal error: Declaration of GetMediawikiSettings::finalSetup() must be compatible with Maintenance::finalSetup(?MediaWiki\Settings\SettingsBuilder $settingsBuilder = null) in /getMediawikiSettings.php on line 142
stat: cannot statx '/mediawiki/sitemap': No such file or directory
chown: cannot access '/mediawiki/sitemap': No such file or directory
chmod: cannot access '/mediawiki/sitemap': No such file or directory
I can post the full logs if needed.
Our staging environment is down "no healthy upstream" and our final pipeline tests are not passing because there is 'no matching files'
I have reached out to our hosting company, ironbank, and canasta to see if they had any insight. I am out of my scope here so any thoughts anybody has would be greatly appreciated. Thank you for your time and expertise. Kimmywingz (talk) 17:47, 31 July 2024 (UTC)
- Hi!
- This all sounds like a regular file system permission error. Please make sure the the user context you are using to perform the copy operation has sufficient permissions on the target file system. Osnard (talk) 13:35, 1 August 2024 (UTC)
- The second error sounds like you might have a mix of different versions. Bawolff (talk) 15:03, 1 August 2024 (UTC)
- Thank you for that information. Our base container is set up to run as root and the permissions haven't changed from prior to the update. Is there some way I can test the permissions? One thing that has changed is that previously we had one FROM command in our dockerfile that called the MW Canasta image from Ironbank on our main branch. Now the FROM command in our dockerfile on our main branch calls another repo which has a Dockerfile that calls the IB image (and additional package dependencies to make it "work") Kimmywingz (talk) 17:59, 1 August 2024 (UTC)

