[00:47:27] Hello, How can I add Other languages extension on mediawiki? what is the extwensions name? [00:47:59] what do you mean? [00:49:01] for example in this address: https://www.mediawiki.org/wiki/Download you can see a box for read in ither language [00:49:06] other* [00:49:19] oh [00:49:22] that's actually a template [00:49:39] How can i install that on my own mediawiki? [00:49:42] you can see at https://www.mediawiki.org/wiki/Download/fr the content in French [00:49:49] it's a different page [00:50:08] see https://www.mediawiki.org/wiki/Help:Templates [00:50:19] so i should another mediawiki on my website for other language?! [00:50:26] no [00:50:29] install another* [00:50:34] you could, but there's no need to [00:50:50] there are basically two ways to translate contents [00:50:53] so how can i have that box? [00:51:03] option A is to have different mediawiki installs [00:51:11] the contents will be quite different [00:51:25] option B is to have the same contents in the same install, but on different pages [00:51:46] this is often twhat you want when it should be the "same content" [00:51:52] just in different languages [00:52:02] but i have problem with LTR language [00:52:19] for instance you have Download in English [00:52:38] and add a link [[Download/fr|Voyez ici la version en français]] [00:52:55] and on the page Download/fr, link to the version in English [00:53:00] what's your problem with LTR? [00:53:39] sorry i have problem with RTL language :D [00:54:14] actially my mediawiki installed for RTL language and when i tried to make LTR language, its problem [00:54:52] what do you mean? [00:55:02] what happens when you try to enter a LTR page? [00:55:24] see this one please: https://wiki.autovm.net/index.php/Test [00:55:57] the fact that it is right-aligned? [00:56:21] yes becuase my other page is right-aligned [00:56:47] and when i tried to have translate my page to english, that is problem with LTR and RTL [00:57:06] the interface is in English [00:57:22] how did you right-align the page? [00:58:31] ah, you are using LanguageSelector [00:58:49] i don't know how i do that, i think i just downloaded the persian language mediawiki and installed and basicly it was RTL [00:59:09] well, I think you selected Farsi as the wiki Language? [00:59:17] yes [00:59:59] I don't think we support setting a page language [01:00:26] try setting at the top of the page:
[01:00:34] and obviously, close it at the end:
[01:01:38] its work, very thank you sir :) :x [01:02:05] sorry how Can I have other language box? [01:05:17] you can simply create a box, e.g.:
[[English page|Read me in English]] - [[Farsi page|or perhaps not]]
[01:05:37] for more advanced uses, you may be interested on Translate extension: https://www.mediawiki.org/wiki/Extension:Translate [01:05:45] but it's not actually required [01:07:27] thank yoou :haapy: [04:21:16] is there an easy way to mass delete old image revisions, it seems like the maintenance scripts are for image revisions that have already been deleted [04:26:54] No why would we encourage that. [04:30:28] Ivy: because third party wikis can do whatever we want?! [04:31:17] Nobody's suggesting otherwise. [04:31:47] But as a product, MediaWiki doesn't really want to encourage people to delete revisions of pages or files. [04:31:53] It's a philosophical question more than a technical question. [04:32:34] it's merely an automated way of deleting old versions of reuploaded images. it's a housekeeping thing [04:33:00] Then I guess you can merely write yourself a maintenance script. :-) [04:33:17] i wanted something that already existed [04:33:33] But losing the file history and the ability to revert to old versions seems like a shortsighted/bad idea. [04:33:52] OTOH, people apparently delete old versions manually, so. [04:34:22] In addition to the maintenance/ directory in MediaWiki core, there's a WikimediaMaintenance extension. [04:34:36] Though I doubt either has what you want. There might be another extension or script on GitHub or something. [04:34:38] right, but manually deleting 20 thousand outdated icon versions is a bit of a tedious task [04:35:12] Sure, doing nothing is pretty easy. [04:35:21] Maybe try that instead! [04:35:36] Is the concern disk space usage or something? [04:35:51] no, storage is not an issue, merely a cosmetic OCD thing [04:36:11] <3 [06:12:17] hello [06:12:30] anybody here? [06:13:11] I need help.. [06:13:21] my site has become blank... [06:13:44] I attempted to install an extension...Scribunto.. [06:14:41] i just did as Manual installation says.. [06:14:48] !blank [06:14:48] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [06:15:01] Hi andypku. [06:15:32] wget the file Scribunto [06:15:32] hi ivy [06:15:33] could you help me out? [06:15:38] http://140.143.85.41/ this is my site.. [06:16:19] it annoys me much, I find no way to resolve it. [06:16:37] So I just wonder who might help me.. [06:16:52] Can you undo the changes you made to LocalSettings.php to fix your wiki? [06:17:03] yes i did [06:17:10] And now you have that error? [06:17:18] i deleted the line in the locaseetings.php [06:17:29] but that didn't work... [06:18:09] https://phabricator.wikimedia.org/T177768 [06:18:10] hmmmm. [06:18:27] not only Scribunto extension but also the other extensions... [06:20:13] let me try [06:22:33] dropping database...mmmm [06:22:42] how could I drop that? [06:22:49] Do you understand what that means? [06:22:53] You'll lose all your data. [06:23:00] ah? [06:23:20] I think that guy was a tester or something. [06:23:22] I will lost all my data? that's a nightmare. [06:23:39] Yeah, don't follow those instructions. It was just an example of someone having a similar issue. [06:23:43] couldn't i backup my data? [06:23:53] You should do that regardless, if it's important to you. [06:23:55] oh dear [06:24:04] !backup [06:24:04] See http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki for information about backing up your wiki. For restoring your wiki, see http://www.mediawiki.org/wiki/Manual:Moving_a_wiki#Import_the_database_backup for more. If you don't have database access, try !grabber. [06:24:36] thanks [06:25:14] andypku: You're using MySQL? [06:25:22] Are you sure the database username and password you're using are correct? [06:25:26] And the user has appropriate access? [06:25:40] yes mysql [06:25:52] that's for sure [06:26:10] I made a record on my evernote... [06:26:20] when installing the mediawiki [10:41:59] Hey guys, I am a bit unsatisfied with the default mediawiki search bar, is there a way too googlify it and make it a bit more efficient and use more complex patterns to search the apges [10:42:02] ? [11:16:06] !e CircusSearch | flying_sausages [11:16:06] flying_sausages: https://www.mediawiki.org/wiki/Extension:CircusSearch_ [11:16:54] !e CirrusSearch flying_sausages [11:16:54] https://www.mediawiki.org/wiki/Extension:CirrusSearch_flying_sausages [11:17:02] !e CirrusSearch | flying_sausages [11:17:02] flying_sausages: https://www.mediawiki.org/wiki/Extension:CirrusSearch_ [11:23:21] flying_sausages: what do you mean by complex patterns? something like advanced search syntax and/or more tolerant to typos and such? as suggested by p858.snake Cirrussearch can help I think, certainly not easy to setup but probably worthwhile if you're frustrated with the default search [11:49:33] I'll give that a shot, hopefully the requirements aren't that much of a pain [13:52:22] bump ^ [18:49:44] How do I enable the "What links here?" in the sidebar? [18:50:19] David_Hedlund: it's enabled by default on normal pages [18:51:08] Vulpix: Thanks. I don't find it on https://directory.fsf.org/wiki/IceCat [18:51:33] Volker_E: And it's not in https://directory.fsf.org/wiki?title=MediaWiki:Sidebar&action=edit [18:53:46] Vulpix: Do you know how to enable it? [18:56:43] I'd say there may be an extension installed on that wiki that's hiding it [18:57:57] Vulpix: Thank you once again. [18:58:35] https://directory.fsf.org/wiki/IceCat?useskin=monobook but monobook has it. It's strange because it's not present in the original source code, and I'd expect it to be hidden for all skins otherwise [18:59:01] it's not hidden with CSS or JavaScript [19:28:46] Vulpix: Thanks, I added your info to https://directory.fsf.org/wiki/Free_Software_Directory:Backlog#What_links_here.3F so the Free Software Foundation admins can have a look at this. [20:49:58] up ? [21:28:04] Is anyone here familiar with the general way in which Wikipedia manages their uploaded images? I am trying to improve my upgrade procedure (working on going from 1.27 to 1.30) and I don't have an easy way to snapshot/duplicate all of my wikis' images. [21:49:52] justinl: Wikipedia uses OpenStack Swift [21:50:43] justinl: just make a tar of everything? [21:52:00] Platonides: Unfortunately I'm using NFS (AWS EFS) since I load balance across multiple servers. My EFS filesystem is currently about 90 GB with close to 3 million files. [21:52:26] hmm [21:52:37] ok, I thought you had a more "family size" :P [21:52:55] Yeah it seems that's what most people have. It's either single-server or Wikipedia. :P [21:53:11] I manage all of the Guild Wars game wikis so they're pretty heavy and busy. [21:53:24] There are some people in the middle [21:53:36] its just a relatively small group [21:53:56] This is something I've struggled with for years now and most of my searches turn up the two extremes, you're right, very little in the middle. [21:54:21] I just finished migration to AWS from on-prem datacenters in December and now I'm looking to do my first big upgrade there. [21:54:36] Trying to improve and streamline the process and take AWS features into account where available. [21:54:56] I've looked at the S3Repo extension but that's such a major architectural change that kinda frightens me. [21:55:55] Although S3 would seem to be an ideal solution in general, not sure how well it would work with wikis of this size. [21:55:58] Well wikipedia did use nfs for a surprisingly long time before switching to open stack swift [21:56:45] I've heard of that but never used it. Is there any good writeups on how Wikipedia uses it? [21:56:49] Are* [21:56:52] which from what i understand is basically an open source clone of s3 but not as good [21:57:00] Hello and big thanks for the awesome wiki software. [21:57:10] umm, not really [21:57:22] there are some notes at wikitech.org [21:57:39] I tried to install Wikibase Client Extension with these instructions https://www.mediawiki.org/wiki/Wikibase/Installation and now I have a broken wiki [21:57:59] What are your thoughts on the S3Repo extension? I feel it's one thing if it were a core feature where future support wasn't a concern, but being an extension that modifies such a fundamental element is a bit more worrisome. [21:59:50] Plus getting so many images imported to S3 would take a while and could incur a significant downtime. [21:59:59] https://wikitech.wikimedia.org/wiki/Swift [22:00:17] Is basically our internal docs on how we use swift [22:00:22] it is very sparse [22:00:42] One of my biggest concerns regarding the images is database backups (using Aurora MySQL now) and keeping them synchronized with images so if a db restore were ever needed, the proper set of images could be "restored" with it. [22:01:01] I'll take a look at the page, see if I can get any inspiration from it. :) [22:02:15] Ive never used s3repo so i cant comment on its quality [22:02:29] Hello, are mediawiki articles supposed to start with == (h2) headings instead of = (h1)? [22:02:55] but the media storage repos are meant to be pluggable, so its not like its a total hack [22:03:12] its presumably using the pluggable filebackend stuff [22:03:17] actually it's called LocalS3Repo. [22:03:57] Getting the images migrated into it would be a pretty heavy and time-consuming task. Maybe it's the best way, though. [22:03:58] it should also be possible (in theory) to migrate without downtime as mediawiki supports mirroring to multiple file backenda [22:04:36] but its the sort of thing probably requires a lot of familarity with how mw handles files [22:04:47] Hmm, interesting. Migrating independently of the version upgrade, of course. My understanding is that going from 1.27 to 1.30 has substantial database schema changes. [22:05:21] Might be time to really dig into mw file handling, then. [22:06:32] yeah 1.30 has long edit summaries which is big schema change [22:06:36] Ok, well at least it sounds like I'm not missing anything obvious architecturally. [22:08:02] https://noc.wikimedia.org/conf/highlight.php?file=filebackend.php may also be of interest to see what wikimedia does [22:09:03] Fortunately I set up two separate AWS VPCs with basically identical Dev and Live wiki environments, and AWS makes it pretty easy to spin up new servers, etc. Copying the images is still the biggest pain, though. [22:09:32] Still working towards more programmatic builds though through CloudFormation. [22:11:09] Actually the LocalS3Repo extension's page only says up through MW 1.28 currently. :/ [22:12:35] I kept notes of what I did to try to install the Wikibase Client Extension (now the wiki is unable to contact database. I can log into MariaDB from cli just fine with the wiki's credentials) https://pastebin.com/cht2F2Vi [22:12:56] if anyone can help it would be appreciated [22:13:43] Ok, thanks for the discussion @Platonides and @bawolff. Gives me more to think about. [22:14:16] Good luck [22:14:21] Actually, I have one more question. [22:14:22] good luck, indeed [22:14:25] tell us [22:15:18] Maybe I'm missing the bigger picture. As I mentioned, my big concern is about synchronization of the databases and images, especially should a restore ever be needed. How would Wikipedia handle that kind of issue? Even S3 really wouldn't help thinking about it that way. [22:16:00] We hope it doesnt happen ;) [22:16:01] you mean, if you have a database dump from a different point in time than the file dump? [22:16:11] Right. [22:16:20] the image table contains the file hashes [22:16:29] so they could be matched to the right files [22:16:32] If I want to restore an Aurora snapshot, the images are newer than the snapshot. [22:16:41] but if the storage is name-based, it could be hard [22:16:50] Aurora? [22:17:03] AWS database service [22:17:16] It's a multiply redundant managed MySQL service. [22:17:21] oh [22:17:23] ok [22:17:38] I think many images would be ok if the time difference was low [22:17:39] I used to manage my own master-replica MySQL pair in our datacenter. [22:17:59] and the rest would be a giant mess [22:18:01] you would need to fetch the old-image that was uploaded at that time [22:18:21] afaik wikimedia does not have time delayed backups of images at all [22:18:22] it _could_ be done, but not easy [22:18:43] is swift store based on file hash? [22:18:43] So basically keep what I'm doing: cross my fingers and hope for the best. :P [22:18:55] that would allow fetching the "right" image [22:18:58] Database backups are obviously the most crucial and that's the easy part at least. [22:19:58] Platonides: i think deleted files are but current/old versions are not [22:20:15] unless swift has some fetch by hash thing built in [22:20:25] bawolff: it's that way on normal store in files [22:20:33] but I don't know if swift works by hash or not [22:21:35] I not to mention if it uses the same hash func [22:23:17] Jubo2: very odd if it worked before. Usually cant connect to db is typo in server address or using localhost instead of 127.0.0.1 or vice versa [22:26:26] bawolff: could it be to do with that the Mediawiki was installed without composer and then composer was installed to install the depenedencies of Wikibase? [22:27:18] Composer really should not affect reachability of db [22:27:54] whats the exact error message? [22:30:10] Ok, thanks again @bawolff and @Platonides. I'll keep thinking on this but won't sweat it for this next upgrade. I appreciate your time and thoughtful responses. :) [22:31:20] jubo2: did you see what WikidataFacts mentioned on #wikimedia-es [22:31:39] that it may be an error connecting to *another* database, set in wikibase config? [22:32:56] Platonides: I'm not on #wikimedia-es. Where is the wikibase config? I thought extensions are controlled from LocalSettings.php [22:33:06] oops [22:33:09] on #wikidata [22:33:19] bad channel completion [22:33:29] jubo2: yes [22:33:44] but perhaps there's another database to set up there (?) [22:33:56] I'm not familiar with wikibase options [22:34:18] but it would make sense that it was an error connecting to a different db [22:34:39] as it would produce the same general db connection error page [22:43:50] Platonides: is this not enough to turn Mediawiki debug logging on (at some verbosity): [22:43:52] $wgDebugLogFile = "/var/log/sites/consumerium.org/develop/mediawiki-debug-develop.log"; [22:44:08] nothing gets written to that file [22:45:20] you also need to enable logging [22:45:25] now there is stuff written there [22:45:55] … or maybe not [22:47:29] I am seeing things that tell what the problem [22:48:33] [DBConnection] Connected to database 0 at 'localhost'. [22:48:33] [DBConnection] Closing connection to database 'localhost'. [22:48:57] I don't know what database '0' it expects to find at localhost [22:49:22] it may be an index [22:49:36] yeah. probably is [22:49:37] in case you had several databases in a load balancer [22:50:02] The line preceeding those two lines is [22:50:04] [DBConnection] Wikimedia\Rdbms\LoadBalancer::openConnection: calling initLB() before first connection. [22:51:41] Here is the debugging log: https://pastebin.com/Ybyh5Zbf [22:52:19] So there is something missing in the Wikibase installation instructions because I did follow them to the point [22:56:41] This file is missing extensions/Wikibase/lib/maintenance/dispatchChanges.php [22:57:30] Maybe I should revert to the working wiki and start over and this time adding the variables from https://www.mediawiki.org/wiki/Wikibase/Installation/Advanced_configuration#Required_settings [23:08:18] Ok. Wiki is restored back to working state from backup [23:11:19] Now doing the installation again but this time setting values for the variables mentioned in https://www.mediawiki.org/wiki/Wikibase/Installation/Advanced_configuration#Required_settings [23:18:13] it broke in the same way again [23:19:32] Which HTML tags are allowed in a page? I see that

foo

works, but
sdf
found it: https://meta.wikimedia.org/wiki/Help:HTML_in_wikitext#Permitted_HTML [23:26:56] if you find that there is a need for tags like
,