[00:53:34] https://commons.wikimedia.org/wiki/File:Securing_MediaWiki_Installation_-_EMWCon_2018.webm [01:15:12] Hmm, looks like nobody has actually used the --memory-limit option in 8 years [06:42:09] Nikerabbit: Ah. That explains how this has been broken for 8 years with nobody complaining [07:04:32] is Nikerabbit talking here? I can't see anything! [07:08:36] harmaahylje: magic! [07:14:17] wow [07:14:41] was just wondering why bawolff was responding to you [07:15:10] harmaahylje: he was responding to my comment in a gerrit peatch [07:15:20] harmaahylje: I'm replying to something Nikerabbit at https://gerrit.wikimedia.org/r/#/c/422359/ [07:15:24] jinx [07:16:29] right [07:17:00] aint that confusing [11:12:15] Hello, I made multiple lines of changes in some file using PHPstorom I also installed Mediawiki plugin in PHPstorom, I am not getting proper intendations to my code, How Can I make my look intend properly? [11:36:59] When I submit code in gerrit diff is showing much variation in intends [11:37:23] how can I fix them? [11:55:51] Gopa: do you use spaces or tabs? [11:56:21] if you installed the code style config XML, make sure it's enabled under Preferences > Editor > Code Style [11:57:03] tab [11:57:08] you can then reformat your code by selecting the section, and using Code > Reformat Code dropdown option or the keyboard shortcut (which is Cmd+Alt+L on a Mac) [11:58:19] Gopa: by MediaWiki plugin, do you mean the code style XML on mediawiki.org, or something else? [12:02:59] TK-999: I followed this for mediawiki plugin https://plugins.jetbrains.com/plugin/7439-mediawiki-support [12:03:39] did you configure your IDE to use the plugin presets? Settings -> Code Style -> PHP (or JS etc) -> Set from... -> Predefined Style -> MediaWiki [12:03:52] TK-999: yes [12:04:33] under Code Style > PHP, is it set to use tab character with tab size 4? [12:04:34] TK-999: I am facing problem here https://gerrit.wikimedia.org/r/#/c/312265/7..8 [12:07:18] looks like you're using tabs, it just got a bit chaotic [12:07:23] did you try Reformat Code? [12:08:34] yeah If I do reformate my code In git diff I am getting huge change whole the page Can I make patch but that change? [12:10:05] you can just highlight the code which you want to reformat, and then hit the button [12:10:22] it will then only affect the highlighted section, without formatting other, unhighlighted sections [12:10:27] TK-999: Oh then I will try it once [12:11:23] 👍 [12:12:54] TK-999: Hey Thanks is it fine https://gerrit.wikimedia.org/r/#/c/312265/9/includes/specials/SpecialPrefixindex.php [12:13:32] TK-999: I hope this is good. [12:13:34] unfortunately it seems it's using spaces instead of tabs, the curly braces are off, and the parentheses aren't spaced [12:13:55] looks like you didn't configure your IDE to use the MW code style [12:14:05] under Code Style > PHP in prefs, is it set to use tab character with tab size 4? [12:14:49] TK-999: Ohk I will check [12:14:52] again [12:17:34] TK-999: Sorry I do not find Code Style in my PHPstorm can you please help me [12:17:52] It should be under Preferences > Editor > Code Style [12:21:02] TK-999: sorry I didn't find Preferences [12:21:28] on Win/Linux it's under File | Settings [12:21:48] yeah I am using Linux Ubuntu 16.04 [12:22:49] cool, so it's Settings > Editor > Code Style > PHP [12:23:15] TK-999: Yeah I found code style [12:23:50] great 😉 what does it show for PHP tab settings? is it configured to use tab and is tab size = 4? [12:26:16] Sorry I dont find any tab size =4 here [12:27:08] it should be in Settings > Editor > Code Style > PHP - you need to expand the panels [12:27:45] like this: https://www.jetbrains.com/help/img/idea/2018.1/copyCodeStyle.png [12:27:55] there's an option for PHP too [12:28:03] https://ibb.co/hiuPc7 here I dont find [12:28:54] Yeah it is there tab size =4 [12:29:00] TK-999: I got it [12:29:12] and is Use tab character checked? [12:29:42] you need to unfold the Code Style list by clicking the small arrow next to Code Style [12:29:46] it will open up the list of languages [12:29:49] No it is not checked [12:30:47] TK-999: 'Usetab charecter' is not checked [12:31:05] TK-999: should I turn it on? [12:32:10] there should be an option in the top right part of this menu, a small link "Set from..." [12:32:29] click that, then in the dropdown select Predefined Style > MediaWiki [12:32:47] yeah [12:35:05] TK-999: Done Thanks [12:35:08] now that you did that, it should have updated the settings [12:35:13] try to reformat the code now [12:35:22] TK-999: okh [12:41:56] TK-999: Can yoy please check up me setting are they right? https://ibb.co/mBZMqS [12:42:12] looks better [12:43:10] TK-999: still the intends are not coming good after doing reformate code [12:44:21] how are they looking? [12:44:28] TK-999: After doing reformate code I got my whole code like this https://ibb.co/dwaY4n [12:45:32] TK-999: I surely config mediawiki there [12:45:56] it's quite possible the plugin might not cover everything, check Settings > Editor > Code Style > PHP > Wrapping and Braces > Array initializer and whether it's "Chop down if long" [12:45:58] TK-999: in set from mediawiki [12:47:05] yeah, looks like the plugin doesn't configure that [12:47:35] there is a MediaWiki XML code style file on the wiki but that one doesn't work with latest IntelliJ, so you could try to use https://github.com/Wikia/guidelines/blob/master/PHP/bin/MediaWiki.xml instead [12:48:04] TK-999: I got like this https://ibb.co/bFEnVS [12:48:24] yeah that's the problem [12:48:32] so download this XML file, then import it like this: [12:49:22] click the gear ⚙️ icon next to Scheme in Settings > Code Style, select Import Scheme > .. code style XML and use the dialog to open the file you downloaded [12:49:31] it should import a new scheme [12:49:44] then you can pick it from the dropdown [12:59:54] ok thank you. will be doing it asap. [15:01:51] Technical Advice IRC meeting starting now in channel #wikimedia-tech, hosts: @amir1 & @Lucas_WMDE - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [16:52:20] Does anyone know who the channel operator for #mediawiki is? [16:57:08] hexmode: /msg chanserv access #mediawiki list [16:57:17] (it's long) [16:58:24] if you're looking to obtain op access yourself, look for the people who have +f, or go through the WMF group contacts to assign it [16:58:36] not too long... tyvm [17:00:11] if it's just something you need an op to take care of, feel free to let me know the details :) [17:01:11] Skizzerz: trying to set up a riot.im bridge... can I use you as chanop? [17:01:46] what does that involve? [17:02:08] I really don't know. This is the first time I've done it. [17:02:12] We can undo [17:02:30] we can give it a go, sure [17:02:33] and there is no one in room on riot.im right now except me [17:02:35] what do I need to do? [17:03:05] I just told it you were the chanop [17:03:09] oh lol [17:03:18] but it was asking if there is a key [17:03:22] may want to list wmfgc tbh [17:03:27] and I really don't know what that is [17:03:31] there is no key [17:03:55] you can "password protect" channels with a key by setting the +k channel mode, however that is not set here [17:04:16] k, got a JSON error from the client. Let me try something else. [17:10:58] ok, ping me if you need help with something else :) [17:45:38] Im having an issue with many extensions when i try to add a require_once statement to my localsettings.php file. Some extensions work fine but others just seem to break site [17:45:50] I have error reporting on but nothing shows up [17:46:44] kevindank: follow the instructions on the extension documentation page. The require_once method is deprecated and many extensions no longer use it [17:47:02] the modern way to load an extension is by putting wfLoadExtension( 'ExtensionName' ); in your LocalSettings [17:47:41] Skizzerz: Yes, most of the extensions that load that way are working...an example is this: https://www.mediawiki.org/wiki/Extension:NewUserActions [17:47:53] I follow the instructions verbatim and still nothing [17:48:08] that extension is likely just broken on current mediawiki [17:48:52] bummer [17:49:01] know of anyway to generate a user profile page? [17:49:16] i have certain fields i want folks to fill out that would go on there profile pages [17:50:42] https://www.mediawiki.org/wiki/Extension:SocialProfile is very heavyweight but does what you want I think [17:51:29] (also likely does 200 things you don't want, alas) [17:53:04] Yeah, i actually have SocialProfile installed. This is what i had originally thought to do, but i also need to be able to gather data and display elsewhere on the site...the goal is to show contributors to a page along with avatar, then clicking on the contributor shows information about them...ideally on a user page [17:53:27] I had thought to use SemanticSocialProfile for this, but it doesnt load either...which is another example of something that doesnt load from localsettings [17:53:29] hmm [17:53:36] * Skizzerz pokes ashley [17:54:25] Outside of Yaron, im not sure if anyone would know how to get ssf diagnosed or atleast operational. Im also having issues uploading avatar in general to regular socialprofile [17:54:38] ashley is one of the maintainers for regular SocialProfile [17:54:47] (hence the poke) [17:55:48] Oh yeah, i remember speaking with him years ago on another project [17:55:50] thanks [18:09:15] Hey everyone. I'm trying to do a fresh install of mediawiki using the guide here: https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_or_Ubuntu - after following all the steps (no errors or weirdness) I was given a require error saying it couldn't find /ServiceWiring.php, I edited the LocalSettings.php file instructing it that the file is located in includes/ and I'm given the following error: http://onyxia.sympliving. [18:09:15] com/mediawiki/ [18:09:36] Any ideas where to proceed from here? Google hasn't been much help. This is my first time using mediawiki [18:09:52] Hmm. http://onyxia.sympliving.com/mediawiki/ btw, that other link is broken. [18:18:34] Oh god... Why didn't I just click the 'set up mediawiki' link. =| [18:21:43] This request always times out internally [18:21:45] https://nl.wikipedia.org/w/api.php?action=query&list=logevents&leaction=patrol/autopatrol&leuser=Smile4ever&ledir=newer [18:22:05] https://usercontent.irccloud-cdn.com/file/aJdO5iyo/Timeout [19:18:49] How do I get the page to update while creating a skin? It appears to be cached using old stylesheets and getting it to stop has been difficult. [19:21:43] one of the errors im getting related to socialprofile and semanticsocialprofile: Notice: Inaccessible property via __get(): user_id in /includes/page/Article.php on line 2020 [19:22:10] kneeki: it's your browser caching it. hit ctrl-shift-r. i suppose there are also plugins that would allow you to suppress caching [19:22:51] kneeki: if your wiki is behind a varnish layer, this becomes more difficult. but i'm guessing you are using a local install on your laptopt. [19:23:19] Yup [19:24:07] Another is Warning: Declaration of SpecialUploadAvatar::loadRequest($request) should be compatible with SpecialUpload::loadRequest() in /var/www/vhosts/bikeracing411.com/ipdocketingrules.com/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php on line 0 Warning: Declaration of UploadAvatar::performUpload($comment, $pageText, $watch, $user) should be compatible with UploadBase::performUpload($comment, $pageText, $watch, [19:24:48] DanielK_WMDE_, I don't have to do anything to get the app to use the latest version of the files, right? Just editing the .less in my favorite editor and refreshing the page is enough correct? [19:28:28] ah, actually, i'm not quite sure when and where the conversion from less to css happens. there may be some caching invovled there. can't help with that, sorry. [19:29:12] but other than that - well, you may ave to suppress caching in the browser. i'm not sure the IMS header works properly for all assets. [19:29:28] anyway - what app? [19:30:41] I was referring to MediaWiki. [19:31:11] oh, ok :) [19:31:12] I'm basically creating an extension to the Chamelion skin theme, refreshing the page worked once, but not since. [19:31:31] not even with ctrl-shift-r? [19:31:36] nope [19:31:55] then it may indeed be related to less processing. don't know about that, sorry [19:31:59] But... if I create a typo in the LocalSettings.php file, refresh the page (to an error) then fix the typo, I can see my changes. =] [19:32:05] It's cool. Thanks anyway [19:32:25] kneeki: See https://github.com/cmln/chameleon/blob/master/docs/customization.md#triggering-a-cache-update [19:32:29] uh. that indicates browser caching [19:33:10] oh, or that! i fogot about the fact that the timestamp of LocalSettings.php itself is used :) [19:33:43] Hah, perfect! [19:34:55] Be aware though that checking the filetime will incur a small penalty on load time. So if you have a busy site, better remove it when you are finished with modifications. [19:35:37] Oh, for sure. [19:35:43] This is just for testing [19:52:42] testing... [19:55:52] hexmode: I don't think it likes you... [19:55:56] :P [19:56:22] Skizzerz: it says you aren't a chanop :P [19:56:26] >_> [19:56:34] sup legoktm [19:56:39] hi [19:56:49] hexmode: maybe try now? since I op'd myself [19:57:18] at least the err was different. [19:57:20] one more time [19:57:47] "Bridge returned HTTP 500 Internal Server Error: Bridging request already sent to Skizzerz on chat.freenode.net from @hexmode:matrix.org" [19:57:55] huh [19:58:03] trying lego [19:58:05] yeah [19:58:18] oh it isn't registered [19:58:21] and I'm umode +R [19:58:35] I set -R [19:58:37] "No chanops found in channel!" [19:58:38] ohh I'm +R too [19:58:44] trying now [19:59:37] It saw you this time, legoktm, but still said pbbttth [20:00:34] saw Skizzerz and legoktm that time, tried Skizzerz [20:00:46] I set -R, but didn't get any pms or anything [20:00:48] but says you aren't in channel [20:00:52] trying legoktm [20:00:53] wat [20:01:06] do we have to be in the matrix channel too? [20:01:13] or whatever the other side of the bridge is? [20:01:19] do you have a doc page you're following? [20:01:30] no doc page [20:01:35] ofc [20:01:36] (I'm going afk for lunch) [20:01:43] bon appetit [20:01:56] ty legoktm [20:02:27] Skizzerz: now? [20:02:34] still getting nothing [20:02:45] https://github.com/vector-im/riot-web/issues/6263 says someone had to try multiple times [20:03:09] so I'm going to try again a few and then give up for the day [20:03:56] Skizzerz: maybe? Could you log into Riot.im and try? [20:04:42] send me a link to the room there? [20:05:02] https://riot.im/app/#/room/#mediawiki-general:matrix.org [20:06:07] it knows about freenode nicks, just sent you an invitte [20:06:41] hmm [20:06:49] didn't get any messages from it [20:07:22] I think the bot may just be glitchy right now [20:07:27] maybe try again in a few hours [20:08:36] what is the error it's giving? [20:08:54] "Bridge returned HTTP 500 Internal Server Error: Provided user is not in channel #mediawiki." [20:09:01] .......... [20:09:09] which I assume is the riot.im channel. [20:09:30] but the room in riot.im was mediawiki-general? [20:09:41] oh, yeah [20:09:52] so I'm going to go with "bot is being dumb" [20:10:26] sounds like a good choice [20:10:49] maybe try again either in a few hours or tomorrow? [20:11:01] or raise an issue on their github or something [20:11:02] sure, too much time for now [20:11:11] will post on above issue [20:11:41] (to avoid user error, you did type in my nick correctly, right?) [20:11:56] a lot of people like putting an 's' at the end instead of a 'z' :P [20:12:09] All z's [20:12:14] except the first [20:12:16] ok yeah, dumb bot [20:12:19] wheee [20:13:20] maybe it doesn't like big channels? [20:13:30] although I can't see how that'd make a difference [20:13:43] no clue [20:13:57] riot.im is relatively buggy [20:14:05] compared with irc, thatis [20:14:11] Skizzerz: can I get a tl;dr of the bits of this that happened before I joined? [20:14:13] only 2412 open issues on their github :P [20:14:24] dax: trying to set up a bridge bot, and it kept erroring out [20:14:30] I imagine that maybe set off joinflood alerts [20:14:37] yeah, Sigyn mauled it for joinflooding [20:14:39] what error? [20:14:47] ask hexmode [20:15:26] dax: various, latest was "Bridge returned HTTP 500 Internal Server Error: Provided user is not in channel #mediawiki." [20:15:32] (I am not a matrix.org person and matrix.org is not an official freenode thing, but I have read all of their issues so.) [20:15:48] dax: IRC logs are at https://wm-bot.wmflabs.org/logs/%23mediawiki/20180328.txt [20:15:48] if you want me to try again with you watching [20:16:03] for the non-tl;dr version [20:16:09] dax: are you op? I could try you [20:16:16] dax is freenode staff [20:16:40] which I think have ops in here in the event nobody else is around, but usually staff do not intervene in channel matters [20:16:43] got that, but that may or may not be op [20:17:17] its querying ops in the channel [20:17:26] yeah, setting up matrix plumbing is outside of the things staff should +o for ;) [20:17:27] * hexmode watches it spin [20:17:28] well I'd imagine it just does a /WHO [20:17:46] and for some reason that isn't working [20:17:53] which would be a bot code issue, not an ircd issue [20:18:03] error: "Unexpected token < in JSON at position 0" and then "No chanops found in channel" [20:18:06] oh i guarantee it's a bot code issue, just trying to figure out which one [20:18:26] trying again [20:19:28] https://github.com/matrix-org/matrix-appservice-irc/issues/505 seems relevant [20:20:19] #matrix-irc would be the correct place to poke for help about it, Matthew[m] is the usual matrix-side person for bug discussion but is a few hours idle [20:20:37] (that's #irc:matrix.org on the Matrix side of things, if relevant) [20:20:49] ty, I'll let this go and try him later [21:41:59] Hi. I wanted to ask about something I've encountered while using Wikia. I believe it uses Mediawiki software as its base. On Wikia, users can select their own landing page for when they login to the site - for example, mine lands on Special:RecentChanges. [21:42:26] Is this something which is common to all Mediawiki versions, or something that only Wikia have enabled at their request? [21:42:43] I would hardly call what wikia runs on "mediawiki" anymore [21:42:49] That's a wikia thing [21:43:10] they have an ancient version that they've heavily hacked and customized to the point where it could probably be considered a fork of the project by this point [21:43:15] Right - so it's a customisation that MW in general doesn't have. [21:43:20] Fair enough. [21:43:22] On generic mediawiki, you will normally be brought back to the last page you viewed (via the &returnto url parameter) [21:43:52] that said, a "home page" sort of thing would be easy enough to add to vanilla mediawiki via extension [21:44:45] Ok. I was just thinking because when I login to Wikipedia, my normal first destination, like with Wikia, is RC. I was wondering if I could set that permanently, but as you just said, bawolff, I'd go back to the last page I visited. [21:45:04] you could also script it via js [21:45:27] I couldn't script myself a rope to stop myself falling off a cliff :) [21:47:21] or simply add Special:RecentChanges to your bookmarks :) [21:47:34] That would work. [21:48:27] And, done. [21:52:36] Has anyone used https://www.mediawiki.org/wiki/Extension:LandingCheck? Where am I supposed to be creating these pages? The extension is installed and working but I don't know how to use it. -.- [21:54:00] I just need a simple landing page for the wiki and oh boy is this not as easy as I thought =p [21:54:55] that extension is likely not what you're looking for [21:56:34] blegh [21:56:37] Any suggestions? [21:56:47] it's to do geoip lookups to turn a single link into one of multiple links depending on the user's language [21:57:35] https://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_change_which_page_is_the_main_page.3F [21:57:55] that lets you rename the "Main Page" [21:58:07] when you visit your wiki without specifying a page name, it takes you to the page named "Main Page" [21:59:06] which you can edit like any other page [21:59:16] the new thing you linked lets you rename that in case you don't like pages named "Main Page" [21:59:45] Oh I see. [22:00:16] So I wouldn't rename the old Main Page, then create a new Main Page with the custom content? [22:00:36] kneeki: you can also just edit the old main page, replacing the content [22:00:50] it's just a wiki page, like any other