[00:31:33] Krinkle: Hi, sorry I didn't see this before. It is a private wiki, on version 1.34. OS is Debian [00:34:27] link to our config file paste https://dpaste.org/6vhT [00:38:17] the docs I followed are https://www.mediawiki.org/wiki/Parsoid/Setup and https://www.mediawiki.org/wiki/Extension:VisualEditor [00:55:09] absorto: and LocalSettings.php? e.g. $wgVirtualRestConfig['modules']['parsoid'] [00:55:20] https://www.mediawiki.org/wiki/Extension:VisualEditor#Linking_with_Parsoid [00:55:31] Ah, yeah, just a sec [00:57:26] Here, https://dpaste.org/G1UW It is not in LocalSettings, but in another file that localsetting includes [07:47:20] I created support request on the support page. But I was wondering if there is anyone who can help me a bit further out? I basically have a running wiki environment, but due some constrains I cannot get the website running with a good proper skin. At this point I´m clueless. Is there anyone available who can help me out? [07:47:27] https://www.mediawiki.org/wiki/Topic:Vqbrno771v8n16ak [10:10:30] spliiit [13:54:21] Hi. Is it possible to have mediawiki handling heic files with thumbnails and so? [14:00:21] Imagemagick is able to handle them. I wonder if there's some file that needs to be edited to add heic files to be handled like a JPEG or PNG file [14:35:56] jkkkkk [16:24:33] Vulpix: yes. I tested to convert with imagemagick. Apache lists the file as image/heic I think. MW let's me upload the file but won't do any thumbnails etc [16:34:03] Forza: looks like you'll need to create a class to handle that file type, and then register it in https://www.mediawiki.org/wiki/Manual:$wgMediaHandlers [16:37:05] Hm.. So I'd have to make a HEIFHandler? [16:37:58] I suppose it should be easy enough to copy an existing handler as imagemagick has the same commands [16:40:14] You can probably subclass an existing handler and just override the necessaries [16:40:59] Should be included. Is it perhaps coming in next regular release? [16:41:24] No [16:42:59] That's a shame. Is there a reason? Maybe it isn't an open standard or so? [16:43:59] I'm not sure anyone has even filed a bug requesting it [16:46:36] T211745 [16:46:37] T211745: Automatically convert .heic image format files to .jpg or .webp - https://phabricator.wikimedia.org/T211745 [17:23:13] Is there an easy solution how I could disable all extensions and active them one by one? [17:24:10] comment all wfLoadExtension(); lines on LocalSettings and then uncomment them one-by-one [17:26:32] Thank :D [17:26:50] I was on the good path, but not success. But thanks :D [17:26:57] I did #wfLoadExtension [17:30:57] When I refresh a page I get a lot of 403 errors (Forbidden). Could this be due the Apache config settings or because of MediaWiki LocalSettings.php? [17:31:25] Request URL: https://wiki.decos.nl/load.php?lang=nl&modules=ext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector [17:36:32] sounds like a file permission issue [17:36:58] web server error logs may be useful [17:39:57] Yeah tried that, but not comings out of that which specifies any deny [17:47:06] In the Apache.conf, do I need to specify , or can I leave it as default [17:53:31] Vulpix: Is that bug request for the MW software or the wikimedia website? I'm asking because they were discussing Debian and what versions of ImageMagick they have [17:55:44] Forza: the original request is because they want to upload to Wikimedia Commons. However, MediaWiki has to support that in the first place. The task seems to be oriented to MediaWiki now [17:59:36] Hey all, I'm trying to help one of our editors delete an image that is throwing the message `Error deleting file: An unknown error occurred in storage backend "local-backend".` [18:00:07] MrMojit0: I'm not sure about Apache, but on nginx you should specify the correct path. Also, make sure the dir you are pointing can be read by the webserver [18:00:40] There are 7 old revisions of the image and one of them is missing, but looking at the revision table, the missing entry's timestamp value is identical to its parent. [18:01:02] absorto: I noticed I can also define it in the 000-default.conf. Thanks for the headsup! [18:01:16] reading seems to be all good. [18:01:34] So the delete is trying to delete an entry with no oldimage id value. [18:01:49] https://wiki.guildwars.com/wiki/Guild_Wars_Wiki:Reporting_wiki_bugs#Issue_deleting_a_file [18:02:25] Would deleting the parent revision also delete the duplicate/missing entry or is there a better way to try to fix this so the overall image can be deleted? [18:42:37] Well deleting the parent revision didn't help. Really stumped on how to fix this inability to delete the file. [19:32:10] I would like to ask if I can post a part of my 000-default.conf? I´m desperated for a solution. As I broke our hole wiki as it´s not working anymore at all. [19:33:30] MrMojit0: paste your configs on dpaste.org and share the link here please [19:35:09] Thank you [19:37:37] And while you are at it, maybe paste you localsettings file in anothe dpaste to share here also. Remeber to redact sensitive data like db passwd and whatnots [19:39:12] https://dpaste.org/1OgD > /etc/apache2/sites-enabled/000-default.conf [19:42:39] MrMojit0: what did you change? [19:43:58] https://dpaste.org/4DLS > /var/www/mediawiki/LocalSettings.php [19:45:50] I have changed a lot, and worst case scenario I didn´t even start with a backup. But I can already say that what I was doing was out of my league but there was an issue on the side which I tried to resolve. After that did an update on the machine and after that I started editing files. But I went from worse to extremely bad. [19:46:01] MrMojit0: this is my config for a virtualhost. I note that you have rewrite rule for load.php, I don't. [19:46:44] look in /var/log/apache/error.log [19:46:50] Our former colleague have set it up, and al do I good guy I quickly came to the conclusion that it was not configured correctl.y [19:47:16] :D [19:47:24] Forza nothing excited in there [19:47:30] Note that I am using php-fpm [19:48:08] https://dpaste.org/2hSq > /var/log/apache2/error.log [19:48:17] I can set it to debug if required [19:49:04] error_reporting( E_ALL ); and ini_set( 'display_errors', 1 ); in your Localsettings.php [19:49:29] Ye I tried that a couple of times but I didn´t got any information out of [19:49:33] Will do it again [19:49:55] But what is happening. what is the error? [19:50:16] This is indicative of a misconfiguration ==> [ssl:warn] [pid 28343] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [19:50:23] https://wiki.decos.nl/ [19:50:40] I saw that one as well but then still it would open the website [19:50:43] ok check the log now [19:50:51] it should say what it could not find [19:50:55] you are sure your root dir is /var/www/mediawiki/ ? Cuz you posted earlier with 'M' and 'W' capitalized, that could cause you wiki not working, obviously [19:51:59] How can I verify that? [19:52:18] where was your localsettings file [19:53:04] Forza: https://dpaste.org/4DLS > /var/www/mediawiki/LocalSettings.php [19:53:44] Seeing that configuration will probably hurt the eyes as there is lots of reference to Bitnami. [19:58:06] you can try something like "php /var/www/mediawiki/showSiteStats.php" to see if you get any output [19:59:56] Ye that gives some output back [20:00:08] In the terminal then of course [20:00:21] so probably your apache conf [20:00:51] Yeah, that is what I´m thinking as well but I do not have a good knowledge about it [20:01:24] In your "" section. comment out all rewrite rules (add a #). #RewriteEngine On [20:02:59] Done, both for virtualhost 80 as also for 443 [20:03:06] Look in your apache log files. it must log what it cant find. When you open https://wiki.decos.nl it says 404 and those should be logged in the apache log [20:03:31] reload apache config. apache2ctl reload [20:04:47] Uhm that hole command didn´t work. Is this also good: systemctl restart apache2 [20:05:57] yes that work [20:06:49] Forza https://dpaste.org/M5n9 [20:07:16] I have set LogLevel to Debug, and posted the out come into that file [20:08:56] You have forgotten to set "DocumentRoot /var/www/mediawiki" [20:09:09] see it is looking in /var/www/html [20:09:14] Where? [20:09:19] In which config file? [20:10:06] LocalSettings [20:10:56] apache config [20:11:37] 000-default.conf you mean? [20:11:57] https://dpaste.org/1OgD yes. look there is no documentroot in the section [20:13:27] Changed it [20:14:00] Also. You have double sections. That doesn't look right. Is that just a copy-pastebin error? [20:14:32] Only one entry for that [20:15:00] ok. Just the pastebin thing then. because there are lines between the virtualhosts sections too [20:15:13] Ill will update it now [20:15:21] "Copy Snippet" and such [20:16:32] Now it redirects to https://wiki.decos.nl/Hoofdpagina [20:16:36] https://dpaste.org/5k0R [20:17:00] Yeah looks amazing [20:17:13] Still it cannot find the Index.php or something [20:17:28] Should I remove # from the Rewrite section? [20:17:50] Can try [20:18:54] since youre using a http->https redirect in the *:80 virtualhost you do not need any of the rewrites or parts in there, only in the *:443 section [20:19:13] Yes it works [20:19:46] success! Works here too [20:19:56] How can I ever thank you both? [20:20:37] :D [20:20:38] I've done nothing, I'm glad Forza stood up to the task, I'm only used to nginx configs :D [20:20:42] pay it forward [20:21:22] Yea I do that on sysadmin on reddit. But man what a life saver here! [20:21:38] second rule. Make a backup :D [20:22:28] Yea,, that was a big mistake and its not my first day in IT so I should know better. [20:22:36] But it all started with a minor thing [20:23:25] Ha, I've done that so many times too. [20:24:21] Hi Reedy, do you have a few minutes to help me with a unit test issue? [20:24:28] But really thank you! This really made my day.. I spend like all Friday.. partial Saturday and Sunday and now also all Monday on this. [20:26:00] MrMojit0: I am happy to have helped =) [20:37:07] Forza thank you again. I´m going to sign out as I´m already blowing my mind out for the last couple of days. And I can sure use some good sleep. Thanks! [21:38:21] Hello. Is there a way to do "Drafts" in MW? [21:44:58] Forza: typical way is for people to work on drafts in their userspace (or on some wikis a dedicated drafts namespace), and then move it over to the main article when the draft is ready [21:45:28] You mean like my own talk page? [21:46:30] I am self hosting so I could create a Drafts: namespace. I guess technically it is the same thing as any other page? [21:46:45] for example if you wanted to make a draft of the page "Cars" you could create the page as Drafts:Cars or User:Forza/Cars to work on it [21:47:10] in terms of the wiki, there's nothing special about the page, it's just another page (albeit in a different namespace) [21:47:25] but it lets multiple people work on the draft independently of the main article [21:47:35] I see. Makes sense. I think I'm going to do the Drafts: option instead [21:48:20] Is namespace the same as Category? [21:49:36] Never mind. Category: is a namespace too? [21:49:52] Category is a namespace as well [21:50:02] however that one has some special behaviors attached to it [21:50:20] I'm writing on this https://wiki.tnonline.net/w/Category:Btrfs [21:50:37] a Category is a way to organize pages on the wiki [21:50:55] you generally do not add content to the Category namespace itself (beyond maybe a brief description of what the category is about) [21:51:13] a wiki page can belong to 0 or more categories [21:51:16] So I wanted really to have Drafts before publishing. I want a draft to be able to be reviewed etc by others before I move it to the correct place [21:52:30] Ie a page about old locomotives could be in categories trains and historical,, etc? [21:54:24] Will the Drafts namespace be automatically created when I make a new page there? [21:55:26] no you need to define all custom namespaces in LocalSettings.php [21:56:27] Forza: https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces [21:57:02] Thanks! [22:17:18] also there's [[mw:Extension:Drafts]] as well [22:32:09] Skizzerz: worked good