[02:12:27] Is it possible to have an image with a thumb [[File:some image.jpg|thumb]] but have clicking on it open the actual image and not the information page about the image? [02:14:59] Grobo: you might want Extension:MultimediaViewer -- https://www.mediawiki.org/wiki/Extension:MultimediaViewer [02:20:37] Hmm [02:20:53] I installed that and I got an error that I'm using 1.32 instead of 1.35. I disabled the extension and it still didn't work [02:21:07] I removed the extension and now the wiki doesn't work at all [02:21:29] what's the error you're receiving? [02:21:57] the extension comes bundled with MediaWiki, so you should've used the version you already had downloaded instead of downloading it fresh. If you do download it fresh, you must select the download that corresponds with your MW version [02:22:13] (side note: 1.32 is end of life and is not receiving any security patches, you should look into upgrading) [02:23:14] It was an error about compatibility [02:23:30] I meant the error after disabling it, since you mentioned your wiki doesn't work even after disabling [02:23:41] which is highly unexpected [02:24:00] It was the same error [02:24:44] I didn't know it was built-in. If it already existed in extensions, it must have been overwritten. [02:29:38] bundled = it's present in extensions/ by default, but not enabled (you still need to enable it in LocalSettings.php). It is possible it got overwritten if it's complaining about a version mismatch [02:36:55] Right. Yes, it undoubtedly was overwritten. [02:52:06] Grobo: https://extdist.wmflabs.org/dist/extensions/MultimediaViewer-REL1_32-a92bbba.tar.gz is the (unsupported) 1.32 version of that exension [02:52:33] Thanks. [02:52:48] I went ahead and upgraded to 1.35. [02:52:54] even better! :D [02:53:01] ;) [02:56:00] I'm checking that it's installed. The docs say to look at the "Beta features" tab but I don't think that applies, anymore. [02:56:50] no, it should be enabled by default I think? Click on an image and see what happens [02:57:04] otherwise it's in the Appearance section of your Preferences: "Enable Media Viewer" [02:57:06] It says enabled in my preferences. [02:57:37] But I still get the info page when I click on the image [02:57:50] clear your browser cache [02:58:53] It's the same [02:58:58] I tried a different browser. [02:59:09] hmm [02:59:13] It's got all the about, license, etc. [02:59:17] try a null edit (edit the page and hit save without modifying anything) [02:59:18] I just want to open the image, instead. [02:59:56] No difference. [03:00:40] for an example of how it *should* work, go to https://en.wikipedia.org/wiki/Main_Page (if you're logged into Wikipedia, visit using a private window or a different browser to ensure your preferences aren't interfering), then click on one of the images on that page like the beach picture or the rover [03:01:22] Yes. That's what I'm seeing. [03:01:37] ok, so... what's the issue then? [03:01:39] It's the same behaviour [03:02:08] without the extension, you get sent to the file description page; this saves a pageload (faster response time) and zooms the image in more than viewing the description page would [03:02:23] as well as hides most of the description stuff out of the way by default [03:02:30] There are two problems. 1. For some reason, the preview isn't animating. 2. I want to click on the thumbnail and get the full image, without anything else, as you get when clicking on it the second time [03:04:16] Yeah, it's pretty unobstrusive, the way it's handled. The problem is that this is an animated GIF that only shows the animation when you get the full file. I wanted users to be able to see it without having to open the large preview file and then having to click again to download the actual file. [03:04:55] I tried another GIF and the preview was animated. So, I don't know if it's because of the resolution, filesize, frames or why the preview is different, in this case. [03:05:02] aha [03:05:34] https://www.mediawiki.org/wiki/Manual:$wgMaxAnimatedGifArea is probably the setting you want to tweak [03:07:35] that setting is responsible for controlling whether an animated gif is animated when resized via thumbnail or not. The default is a modest limit designed to not overwhelm server resources [03:08:03] if you know you have the resources to throw at it, you can increase the limit [03:08:32] (note that the default value 1.25e7 is scientific notation; PHP interprets that as 1.25 * 10^7) [03:09:18] you can try doubling it and seeing if that helps. You'll need to also delete the old thumbnail first since the static one is cached [03:10:46] if your animated gif is extremely large, I'd suggest converting it over to a more efficient format such as webp [03:11:21] What does this mean: "It is kept equal to $wgMaxImageArea"? Does that mean the dimensions are checked against that but NOT the frames? [03:12:04] Grobo: that sentence is referring to why the default value is what it is. Doesn't have any bearing on how the variable operates [03:12:24] (MaxImageArea applies to the size of a single frame, MaxAnimatedGifArea applies to the total size of *every* frame) [03:14:04] Okay. And how do I delete the old thumnail? [03:14:50] as an example, say you have a 500x500 gif with 100 frames. The area of one frame is 250000 (2.5e5), which is less than MaxImageArea. So the upload is allowed. However the total size is 25000000 (2.5e7) which is twice MaxAnimatedGifArea, so it will be rendered as a static image and not an animated gif when resized to a thumbnail [03:16:40] Grobo: right click the thumbnail and select to view the image in a new tab. Make a note of the URL: it will be something like example.com/yourwiki/images/thumbs/a/a2/Image.gif/250px-Image.gif [03:16:53] find that file in your filesystem and delete it [03:17:57] verify that it says "thumbs" in the path and that the filename has the thumbnail size inside of it. That helps you ensure you're looking at the thumbnail (which can be regenerated on demand) and not the base image (which cannot) [03:19:04] after you delete the image, edit the page containing the thumbnail and change something in it, such as adding an extra blank line somewhere [03:19:14] (then save) [03:19:18] It's in images/thumb... there are a lot of versions [03:19:38] 600px* 300px* 1024px* etc. [03:19:52] you can safely delete all of them [03:20:30] do the thing I mentioned about editing the page in the event that viewing the page shows you a broken image instead of the gif [03:21:17] Yes, that re-created the thumbs but they are still static. [03:21:26] I don't know how many frames this has. [03:21:49] ah, wait. I see now [03:22:38] It might still be better if I could just have it open the file directly [03:23:48] what's the current wikitext of that picture? [03:24:09] it's possible to do this on an image-by-image basis, but nothing exists to do it in general as far as I'm aware [03:24:41] That would be fine. [03:25:15] [[File:example.gif|thumb|Large images should have a preview. You can click on it to enlarge and see the animation.]] [03:25:19] the wikitext you need would look something like [[File:Image.gif|thumb|link=Media:Image.gif|...]] (where ... is the other params you want to pass to the image renderer) [03:30:58] that seems to just go to the classic MW file view [03:31:42] you did link=Media: not link=File: right? [03:31:53] Right [03:32:07] It goes to the classic MW image view. [03:32:23] I can link it with the full URL, though that is kind of annoying. [03:33:28] hmm yeah that didn't work as I wanted it too. [[Media:Image.gif]] in regular wikitext goes right to the file [03:33:47] Yeah. That's weird. [03:34:01] It doesn't seem like that should be the behaviour. [03:34:49] ok [03:36:03] try [[File:Image.gif|thumb|link={{filepath:Image.gif|nowiki}}|...]] [03:36:29] (the |nowiki bit doesn't seem to be required but I'm adding it for futureproofing just in case) [03:37:59] mm that went to Multimedia Viewer [03:38:31] try without the |nowiki then? [03:38:42] [[File:Image.gif|thumb|link={{filepath:Image.gif}}|...]] [03:38:58] Same [03:39:00] (in case it's not already obvious, I haven't tested any of these myself) [03:39:10] :( [03:40:19] ok... I just tested and the filepath thing works for me (bypasses the media viewer) [03:40:38] Yeah, sorry. I made a typo [03:40:42] I just checked again and it worked! [03:41:19] Now if it would use png for the preview instead of GIF... ;) [03:41:25] Thanks for the help. [04:24:31] I'm reading through the docs and I'm still confused...I extracted the source to /var/www/html .... and I simply go there on my web browser, and it's a 404 error. What exactly makes the software pop up? I have php installed... [06:13:55] seanicus: Did you check to see that the files are there? Often when you extract an archive, it starts in a new directory [06:14:28] seanicus: What web server? Can you access an index that you create? Is there an .htaccess file? [06:26:07] Grobo: thanks fopr answering. the files are there. Apache2. Yes, I created a test.html file with a

element that I can see. I don't see a .htaccess file (I'm checking for hidden files) anywhere in /var/www, which is where I'd imagine it would be [06:26:35] Grobo: does mediawiki *require* that a database be working to show *anything*, even an error page? [06:27:03] Because I'm having trouble also with mysql, and I'm thinking the fact that I can't seem to install mysql correctly may be causing this [06:28:13] getting a 404 indicates your php files aren't being called, so presence or lack of a db is not relevant [06:28:22] it's 100% an apache config and/or file location issue [06:32:39] Skizzerz: hmm, doing some debugging, it's actually a Forbidden error [06:33:10] Because when I put the wiki directory in /var/www/html, and I access 127.0.0.1:81/wiki, it says forbidden [06:33:18] but when I access 127.0.0.1:81/testdir, it shows me the directory [06:33:29] could this be maybe a permissions issue? [06:33:53] yes [06:33:56] that could very well be it [06:39:09] changed the owner, group, and chmod flags, still no change [06:45:29] tried setting it to 777 just to see if that would work and...it did! kinda [06:45:50] but instead of showing me a forbidden error...it's not sending anything at all. Even the source is empty. [07:04:21] Opened the zip as root, then extracted that way. Still don't really know what permissions I messed up exactly but I got this part working at least [07:04:24] thanks for the help [07:04:37] I'll let you know if there's anything else I need [09:02:49] Warning: I am going to bed immediately because it's 4AM, so I will not answer soon. [09:03:07] I am stuck on this issue while trying to import an xml file. [09:03:17] https://dpaste.org/6Rn9 [09:03:53] There is indeed no PlatformSettings.php in includes. Not finding much information on this from google. Feel free to respond, I'd appreciate it, and I will check back in tomorrow morning [09:20:41] seanicus: in your LocalSettings.php, there's a line like "require_once ... PlatformSettings.php", delete it [16:38:56] is there a ready-made docker image that tracks WMF production version?