[08:52:12] hi [08:52:32] Good *checks clock* morning [08:52:49] i have a problem with login to wikipedia - am i in the right channel for that? :-) [08:53:48] better: can someone help me with that? :-D [08:54:27] apparently #wikipedia might be what you need [08:55:08] okay - the problem exists with mediawiki too [08:55:32] but maybe i should first try #wikipedia, thanks :-) [11:35:49] Is it possible to have a {{subst:Articletemplate}} happen whenever the user creates a new page in the main namespace? The idea is, that the users in my wiki should have a skeleton provided whenever they start a fresh article. [11:47:59] I guess https://www.mediawiki.org/wiki/Manual:Creating_pages_with_preloaded_text has what I need [11:54:38] Hi guys, I noticed that the vendor of https://www.mediawiki.org/wiki/Skin:BootStrapSkin seems to be MIA. Should that theme be removed from the list? [12:58:52] Hi. Probably more of a faq thingy, but: how do I extend the timeout for sessions? [12:59:16] I came across https://stackoverflow.com/questions/520237/how-do-i-expire-a-php-session-after-30-minutes/1270960#1270960 [12:59:58] but prefer not to edit/adapt the sourcecode [13:00:41] hello [15:48:18] Warning: md5_file(c:/inetpub/wwwroot/../resources/src/jquery/jquery.accessKeyLabel.js): failed to open stream: No such file or directory in C:\inetpub\wwwroot\includes\OutputPage.php [15:49:10] Hi I have used google the last couple of days without result. I trying to figure out why the browser console gives a path error? [15:49:40] I do not know if this is the right place to ask? If not - maybe you can redirect. Thanks. [15:50:21] I have installed mediawiki on an IIS10 and setup php7.1 after the guides you can find. [15:51:35] I have tried to specify the temp path in both php.ini and localsettings.php and provided the iusr rights to almost all folders. Nothing seems to work. [15:52:55] evilstewie: this is not a tmp file problem. MediaWiki can't find the file c:/inetpub/wwwroot/../resources/src/jquery/jquery.accessKeyLabel.js on your server [15:53:12] the path looks wrong btw [15:53:24] Thanks for replying. [15:53:33] did you upgraded from a previous version? [15:53:59] I would also assume that it is a path error, but I cannot figure out how to fix it. No it is a clean installation. [15:54:45] what MediaWiki version? [15:55:22] 1.28.2 [15:55:40] your LocalSettings.php is likely misconfigured [15:56:53] you haven't copied anything from DefaultSettings.php into LocalSettings.php, righ? [15:58:16] evilstewie: can you share what values you have for any path-related variables in LocalSettings.php, as well as $IP (if you have that set)? [15:58:29] path-related variables is anything ending in Path, e.g. $wgScriptPath, $wgStylePath, etc. [16:00:16] No but I have configured localsettings. [16:00:24] I was kicked off. [16:01:26] evilstewie: can you share what values you have for any path-related variables in LocalSettings.php, as well as $IP (if you have that set)? [16:01:26] evilstewie_: did you read last 2 messages from Skizzerz before leaving? [16:01:27] path-related variables is anything ending in Path, e.g. $wgScriptPath, $wgStylePath, etc. [16:01:35] well, that ^ ;P [16:02:18] Yes - give me a moment [16:02:20] it may be useful to copy/paste them into a pastebin such as dpaste.com [16:02:23] -and thanks. [16:06:52] I'm guessing that my firewall prevents me from staying longer than 260s.. [16:06:55] 1 2 3 4 $wgScriptPath = ""; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true; $wgResourceBasePath = $wgScriptPath; [16:07:01] Sorry about that. [16:07:20] These are all path-variables in localsettings.php. [16:08:20] evilstewie: you forgot to paste the dpaste URL here :) [16:08:46] http://dpaste.com/0PP41FX [16:08:51] sry. [16:09:06] !wg ResourceBasePath [16:09:06] https://www.mediawiki.org/wiki/Manual:%24wgResourceBasePath [16:13:13] I have just tried to set resourcebasepath but the error persists. [16:13:15] evilstewie: do you have $IP defined in there at all? [16:13:28] you can remove the ResourceBasePath line, that's the default value if left unset [16:13:48] $IP would be way at the top [16:13:49] if you have it [16:14:26] although, if that was wrong the entire wiki would be broken [16:14:31] so that's likely not the issue [16:15:18] No $IP is not set in localsettings.php [16:15:39] The complete console error log can be seen here: http://dpaste.com/39QNVGN [16:17:25] I'm wondering if this can be the issue: md5_file(C:\inetpub\wwwroot/../reso... as it contains both backslash and slash. [16:17:36] no, that is irrelevant [16:17:38] the .. is the issue [16:18:32] I have however no idea of how to fix it. I can try to set the $IP in localsettings [16:19:51] evilstewie: I'm going to ask you to make a modification to help in debugging this; you'll want to revert the modification afterwards [16:20:18] Ok. [16:20:35] in includes/OutputPage.php, on line 3667 there should be a line like wfLogWarning( __METHOD__ . ": Failed to hash $localPath/$file" ); [16:21:08] By setting $IP = "c:/inetpub/wwwroot"; I can flip the backslahes to slashes, but the /.. still exist. [16:21:14] I'll look. [16:21:56] immediately above that line, add the following line: throw new MWException("$localPath -- $file"); [16:22:00] Yes [16:22:18] in your LocalSettings.php add $wgShowExceptionDetails = true; [16:22:44] then reload the page; your console/error log should have more details in it [16:24:09] It does: http://dpaste.com/2GPW625 [16:24:38] check your php error log, that isn't what I was looking for [16:27:16] Skizzerz: are you sure? check the end of the first line [16:27:44] Vulpix: oh I see [16:27:48] but no stack trace [16:28:06] I need the stack trace too [16:29:05] there might be another way of grabbing it [16:29:08] Try this: http://dpaste.com/0WCS1WF [16:29:35] There is a lot of errors.. [16:29:47] yep, that's what I was looking for [16:29:55] you can remove that line I asked you to add in OutputPage.php now [16:30:11] Okay. [16:35:01] hmm [16:35:59] I assume it is as you say the ".." [16:36:10] that causes the error? [16:37:03] yes, but I'm trying to figure out where it's coming from [16:39:12] evilstewie: let's try one more edit, in OutputPage.php on line 3649 you should see the line $path = RelPath\getRelativePath( $path, $remotePath ); [16:39:45] yes [16:39:51] immediately above that, add the line: throw new MWException("$remotePathPrefix -- $remotePath -- $path"); [16:39:54] then check the logs again [16:40:01] (after refreshing) [16:40:27] although it looks like you have debug logging so we could go with that instead of an exception, but this is temporary so let's just do this for now [16:44:48] Got it: http://dpaste.com/3DNQSCK [16:48:44] evilstewie: ok, you can remove that line as well [16:49:19] Ok. [16:49:55] Do you think it would help to start a clean installation with php5 instead of 7.1? [16:50:56] idk [16:51:00] just please hold on [16:51:08] Okay.Thanks :) [16:51:15] Greetings. [16:51:34] I have a question regarding PNG preview sizes for SVGs. [16:51:50] evilstewie: the good news is that your config is fine. The bad news is that it's either a bug with mediawiki or a bug with PHP; not sure yet (probably with mediawiki) [16:51:52] Where is the setting for adding additional PNG preview sizes? [16:52:21] nihonjoe: $wgThumbSizes or something like that iirc [16:52:49] evilstewie: if you have rewrite rules in place, try to remove them [16:53:32] oh [16:53:37] nihonjoe: $wgThumbLimits [16:54:01] you can add sizes by appending to the array in your LocalSettings.php, for example $wgThumbLimits[] = 500; [16:54:25] Vulpix: has nothing to do with that [16:54:40] this is serverside filesystem stuff, not uri paths [16:55:20] (although moving the wiki outside of the url root would work around the issue) [16:55:29] I already have tried to disable the shortURL. [16:56:04] Skizzerz - Is that for thumbnail sizes allowed in articles, or on the SVG file page? WHen on the file page, right under the display of the SVG image, it lists multiple prerendered PNG sizes: "Size of this PNG preview of this SVG file: 310 × 294 pixels. Other resolutions: 253 × 240 pixels | 506 × 480 pixels | 633 × 600 pixels | 810 × 768 pixels | 1,080 × 1,024 pixels." [16:56:05] I know but maybe rewrites are confusing PHP on windows+IIS if used to map a different URL, just trying to find an explanation to this [16:56:11] I can try that if you think you think it would fix it. Moving it to c:\wiki ex? [16:56:22] nihonjoe: that should be on all image pages [16:56:32] hmm [16:56:51] oh [16:56:54] there's multiple settings [16:56:55] I'm trying to add additional prerendered PNG sizes for SVG files [16:58:08] the one I gave earlier is for the dropdown on Special:Preferences apparently [16:58:14] the one you're referring to is $wgImageLimits [16:58:16] Yup. [16:58:39] I think [16:59:13] try adding $wgImageLimits[] = [ 1920, 1080 ]; in your LocalSettings.php and see if that works [17:00:41] if that does what I think it does, it should add a new 1620 x 1080 option in that file you mention [17:01:02] (the first number varies based on the aspect ratio of the image or something like that) [17:01:54] Hmm... [17:04:34] if that doesn't work, then I have no idea, sorry :( [17:04:46] evilstewie: sorry, wasn't precise [17:04:58] moving it outside of the *web* root would work [17:05:17] (maybe) [17:05:26] I'll try. [17:06:35] try something else for me first [17:06:47] or well [17:06:50] you can do both I guess [17:06:52] Do you know if it's possible to only set a height and let the width adjust accordingly? [17:07:01] basically you'd move the files to, say, C:\inetpub\wwwroot\w [17:07:12] then set $wgScriptPath = '/w'; in your LocalSettings.php [17:07:28] nihonjoe: I do not, sorry [17:07:36] my hunch says "no" [17:07:36] Okay, thanks for your help. [17:07:43] but maybe it takes the smaller of the two [17:07:52] so if you set a smaller height than width, it may scale the width instead [17:08:09] I found this: https://www.mediawiki.org/wiki/Manual:$wgImageLimits [17:08:40] like, try [ 1000, 2000 ] [17:08:46] and see if it gives you a 1000 x ??? option [17:09:22] er wait [17:09:25] nvm [17:09:27] I'll fiddle with things and see what happens. [17:09:28] I got mixed up [17:09:43] it does what you asked by default -- the height is the 2nd number [17:09:57] and in all of the defaults, that height stays fixed but the width varies [17:10:24] So, is it possible to set [ , 1000] or something like that? [17:10:39] no, you need an int in both fields [17:10:47] just make the first one bigger [17:10:57] Okay, thanks. [17:12:06] ev: sigh [17:13:52] evilstewie: welcome back :) [17:13:55] did moving it work? [17:14:08] Didn't work unfortunately - Moved it to c:\wiki, but the error is still there. [17:14:12] Thanks. [17:14:28] well, that isn't quite what I meant [17:14:31] I don't know why I loose the connection from time to time. [17:14:35] although you can do that, it's the IIS path that matters [17:14:39] (the URL) [17:15:13] so the files directly in domain.com/ would be broken, but domain.com/w/ should work [17:15:15] anyway [17:15:29] ahh. ill try that then. [17:15:31] :) [17:15:49] then you need to set $wgScriptPath = '/w'; in LocalSettings.php [17:15:52] or whatever directory you used [17:15:59] it *cannot* be the same as $wgArticlePath [17:16:17] (if you are using url rewrites, that is) [17:17:12] evilstewie: can you also make a file test.php in the wiki root (same folder as index.php), with the following contents: http://dpaste.com/0MH7TS9.txt [17:17:17] then lemme know what it reports [17:19:02] (viewing test.php in your browser should output some stuff, copy/paste that stuff into a paste) [17:31:35] Trying to make to rewrite work in IIS after moving it into a subfolder. [17:31:42] just a status. [17:44:54] It seems to have worked "just" moving the files from the root to a /w. Thanks a lot Skizzerz. [17:45:24] evilstewie: ok, can you still do the test.php thing? I'd like to see if I can isolate the bug and get it fixed for a future version [17:46:22] Yes of course. It is not much: http://dpaste.com/1B7WG4E [17:46:38] er [17:46:43] you did that in the browser? [17:46:49] or did I mess up the file [17:46:56] Yes. [17:47:07] you put it in the same folder as the mediawiki files? [17:47:10] -to the browser:) [17:47:12] and the (at the top of the actual file) [17:47:55] Nope - I/copy/paste made a mistake.. [17:48:05] yeah, make sure you copy/paste all of it :) [17:48:13] Ctrl+A Ctrl+C [17:49:39] Not sure this is what you want either: http://dpaste.com/0BQAMS6? [17:49:43] http://dpaste.com/0BQAMS6 [17:49:55] yep that is exactly what I want [17:51:38] awesome [17:51:53] evilstewie: you can remove that file, I got everything I needed [17:53:36] Okay. Thank you for all the help and patience. [17:54:22] it was a mediawiki bug, so hopefully should be fixed in 1.29 [17:54:38] in the meantime, keep the wiki in a subfolder instead of the web root [17:55:05] I can work with both, so its fine. [19:20:13] I changed my theme to Monobook and I'm still having trouble with my watermarking... :( [19:20:32] Esther: any chance you're still available to help? [19:22:30] Hi guys [19:23:10] i'm running a mediawiki from a Digital Ocean druplet, anyone has a tutorial on how I can send emails out? I did the $wgSMTP config to 127.0.0.1:25 but it wont work :p [19:23:16] What am I missing? [19:24:19] Do I need to setup a postfix? [19:24:40] Minnebo: chances are, yes. [19:26:10] Minnebo: have you looked at the variable page? It seems to have some useful info. [19:26:12] https://www.mediawiki.org/wiki/Manual:$wgSMTP [19:26:28] Yea, but they all seem to push towards google as SMTP [19:26:46] I don't follow, what do you mean? [19:27:05] Ah wait, I was reading another [19:27:41] I want to use my localhost to send out emails if that is possible [19:27:45] Yeah, give that a read. I've found MW's docs to be pretty helpful, if a little opaque at times. [19:27:53] i'm running this wiki on wiki.domain.com [19:28:11] thought following this guide; https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-16-04 but i'm not sure if that is what i'm looking [19:28:16] thought following this guide; https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-16-04 but i'm not sure if that is what i'm looking for [19:28:42] (oops sorry for spam, am using alot of Slack lately ;p [19:29:01] Minnebo: what do you mean? This tutorial is exactly what you'd want(if it's a good tutorial.) [19:29:19] So long as this tutorial does what the title says, it should be good. [19:29:41] I don't do mail, really, though. So I'd encourage others to step in and correct me if need be. [19:30:11] i'll read it through first completly and then judge ^^ [19:30:38] Sounds good [19:35:02] just a bit confused with this [19:35:36] The System mail name should be the same as the name you assigned to the server when you were creating it. [19:36:17] On the example picture it says; example.com --> My System mail name as suggested is my hostname mediawiki-jibber-jabberxx [19:36:35] should I change it to my domain name of where the site is running? like domain.com? ^^ [19:38:50] Minnebo: It depends, do you have an smtp server running on port 25 at localhost [19:39:55] Minnebo: Normally, if you install postfix on your server, you would configure mediawiki to use the system mail (i.e. Have $wgSMTP disabled), and not use smtp [19:41:02] bawolff, I'm about to complete the postfix installation [19:41:09] then i'll have one running ^^ [19:43:11] k so my mail went out [19:43:28] I did a small test with eco, but its coming from root@mediawiki... so i'm getting closer ;p [19:44:36] Pretty sure that can be configured systemwide like what bawolff said. [19:44:53] yea [19:45:07] from mediawiki i'm getting the correct adres ; ) [19:45:08] If it makes an smtp server, then it probably does both [19:45:26] thats wasn't hard at all [19:45:48] New things are always a bit tricky if you're not comfortable doing : ) [19:45:58] bawolff: were you also helping me with the watermarks? [19:46:10] Minnebo: that's why I haven't set up mail on my VPS [19:46:12] :( [19:46:20] The tricky part is not so much setting up an email server, is convincing the rest of the world that your stuff is not spam [19:46:30] bawolff: very true. [19:46:34] that is true, my mail is in the spam ^ [19:46:43] I got a mail server working.... Once. [19:46:43] cwre: A little bit, not sure how helpful I was [19:47:00] Microsoft Exchange is so much easier ;p [19:47:00] haha [19:47:02] sry :< [19:47:28] Well so I have what Esther put in the test wiki in my Print.css now. I changed my theme and the watermark still isn't appearing. [19:47:28] Lots of organizations do use google mail for work for precisely that reason [19:47:49] bawolff: I prefer messaging applications. [19:48:29] bawolff: do you think I need something specific in the page I want to print? [19:48:59] spf=neutral (google.com: 165.227.2.79 is neither permitted nor denied by best guess record for domain of test@domain.io) [19:49:18] spam issue found ^ [19:49:18] Minnebo: Yeah, you have to do a bunch of stuff like add SPF records to your dns, DKIM keys, DMARC. I've also heard ensuring that your reverse ip address matches up with the mail HELO helps a lot [19:49:34] jep indeed that will be the same for like Exchange [19:50:01] It probably doesn't help using a cloud provider, because lots of people use them, so they maybe get marked as spam hosts more likely then dedicated IPs [19:50:10] DKIM/DMARC SPF reverse IP, I know those from Microsoft environments [19:50:19] its digital ocean, pretty legit I think [19:50:31] but atleast I can confirm accounts, and make myself admin on the wiki lol! [19:50:37] thanks a lot guys [19:50:57] Digitial ocean is legit, but their bussiness is renting out servers to anyone who asks, occasionally bad people rent out servers (which they shut down quickly, but still) [19:50:58] Minnebo: any legit provider can be used for nefarious purposes. [19:51:13] Beat me to it bawolff [19:52:09] cwre: link to your site? [19:52:13] if its public [19:52:25] that is true [19:52:33] gonna get some sleep, watch some tv [19:52:36] or the other way around [19:52:41] bawolff: I don't think it's public.... Let me ask my team lead. [19:52:46] laterz, i'll be around [19:53:35] It doesn't matter that much, just if its public I could quickly look at what you did and see if you did anything obviously wrong [20:08:50] bawolff: yeah, it's on our LAN. [20:08:56] but if its not working, the DOM inspector tab of the developer console in firefox or chrome can look up what css rules apply to what elements, which can help debug [20:20:22] How can one break Special:Contributions like this? http://elinux.org/Special:Contributions/Nemo_bis [20:20:49] I have two edits on this wiki, but Special:Preferences and Special:Contributions falsely state 0 [20:30:57] user_id is wrong in the db? [20:31:25] bawolff: it doesn't look like the mw-body-content tag is available on my main page with ?printable=yes [20:34:24] I'm on version 1.23 if this helps troubleshoot [20:34:55] Of course. [20:34:59] Now I have to upgrade. [20:35:01] AGAIN. [20:35:08] I hate managing this for people.e [20:36:27] Seems like our dev instance was behind the live instance... [20:36:29] xD [20:39:18] cwre: 1.23 is a bit old, isn't it? :o [20:52:27] Sagan: it is, but it was LTS when I was here last. [20:53:15] Or... [20:53:17] IDK [20:53:53] Yeah I don't know why this version is so old. [20:54:03] More importantly because it's a DEV instance. [20:54:24] Because I was the one in charge of upgrading from this version. [21:23:54] Okay, so the upgrade didn't change anything, sadly [21:23:56] :( [21:24:07] And now I can't change my skin on a user basis? [21:24:11] Was that changed? [21:32:34] I understand now [21:40:24] Hi [21:40:27] Odd question [21:40:45] Is there a 'boot and go' live CD that can be used to set up a wiki-farm? [21:41:08] using mediawiki, that can be configured to get updates from the internet automatically? [21:41:32] these sound like mutually exclusive requirements [21:42:16] also, I don't quite remember when was the last time I even touched a CD:P [21:43:00] MaxSem: The inital CD/DVD is used to setup a server [21:43:16] The server than does the config/updates directly [21:43:46] You can't do a direct install from the Internet for an entire OS yet ... As far as I know [21:44:11] well, there are minimal netinstall images... [21:44:18] netboot [21:44:19] You need a basic kernel to bootstrap an internet downloader IIRC [21:44:20] So yes you can [21:44:31] reedy: From the internet directly? [21:44:34] Yup [21:44:37] Wow [21:44:52] * ShakespeareFan00 has to go re-read up on this [21:45:04] Usually, it's done from a local server though [21:45:29] https://www.ubuntu.com/download/alternative-downloads [21:53:03] I wonder if there's a way to have a net-install of Media-wiki that can be delivered to a server farm in a 3 cllick process and some config questions [21:53:25] :)