[01:59:07] Can anyone piece together why this isn't work as it should? https://wpx.wmflabs.org/w/api.php?format=json&action=query&titles=File:Samoyed_in_Tallinn_3.JPG&prop=imageinfo&iiprop=url&iiurlwidth=200 [01:59:35] Should be returning a URL for a thumbnail with a width of 200px but instead returns the URL for the full size image [02:03:25] Works fine on commons [02:03:25] https://commons.wikimedia.org/w/api.php?format=jsonfm&action=query&titles=File:Samoyed_in_Tallinn_3.JPG&prop=imageinfo&iiprop=url&iiurlwidth=200 [02:03:35] And it works fine on my localhost wiki too [02:03:40] It does? [02:03:49] I was gonna say it's an instantcommons bug probably then [02:05:50] and it works here too https://wikimediadc.org/api.php?format=json&action=query&titles=File:Samoyed_in_Tallinn_3.JPG&prop=imageinfo&iiprop=url&iiurlwidth=200 [02:08:19] https://wpx.wmflabs.org/w/index.php/Special:Version anything here that would be particularly illuminating? [02:08:34] Unless it's been broken recently... [02:08:43] cause that MW is newer than commons [02:09:29] Nope, works on my dev wiki [02:09:33] my localhost also runs master; no problem [02:09:56] Not sure why running it in labs would obviously have that behaviour [02:10:26] yeah I do think it's a labs thing [02:10:34] I get the same error when doing it from my other labs wiki [02:10:41] well not "error" but undesired behavior [02:10:44] https://librarybase.wmflabs.org/w/api.php?format=json&action=query&titles=File:Samoyed_in_Tallinn_3.JPG&prop=imageinfo&iiprop=url&iiurlwidth=200 [02:10:51] When a minified svg works in the browser, but breaks in Inkscape, and it is strictly speaking an error in the minified svg, what to do? [02:11:02] jeblad: flip a table [02:11:16] I'm tempted to just use it as it is… [02:11:32] Reedy: so is this a bug with labs, with mediawiki api, with something else? :s [02:11:54] I'd presume it's labs... but I dunno why it'd break like that [02:11:54] Oki,… I have tried flipping a coin…' [02:12:13] It'd be more understandable if instantcommons didn't work at all on labs [02:12:59] jedblad: Any minified SVG I believe is unminifiable. Does it work when its not minified? [02:13:16] Reedy: incidentally, how should file ownership / permissions be assigned on a given MediaWiki instance? [02:13:37] Many different ways [02:13:48] Hmm... Is it breaking at trying to make a local thumbnail?? [02:13:56] Does thumbnailing work on local upload images? [02:14:39] I run it through svgo and it break on loading into Inkscape, still it works when uploading to commons [02:14:54] https://commons.wikimedia.org/wiki/File:Spec_indicator_good.svg [02:15:02] last version is minified [02:15:38] Reedy: I'd test but I don't have enabled file uploads on my wiki [02:15:47] My dev wiki is currently playing up [02:15:48] ( ! ) Warning: preg_match() expects parameter 2 to be string, array given in /var/www/wiki/mediawiki/core/includes/libs/time/ConvertibleTimestamp.php on line 85 [02:15:56] Harej: File upload permissions might make sense [02:15:58] IIRC [02:16:01] It caches the file locally [02:16:18] Yeah I am thinking that might be the issue. What would the images/ dir need to have permissions set to? And who needs to be the owner? [02:16:28] Ah, problem is that SVG optimization techniques are destructive. Minimization in itself is not I don't believe, but you have to be careful on what optimizations you're applying to the SVG [02:16:35] Some are destructive to editing capabilities [02:16:51] Harej: your webserver user needs to be able to write to it [02:17:23] drwxr-xr-x 3 www-data www-data 4096 Oct 1 06:12 images [02:17:25] looks fine to me [02:17:56] jedblad: https://jakearchibald.github.io/svgomg/ [02:19:37] Reedy: and the thumbnail seems to exist https://wpx.wmflabs.org/w/images/thumb/d/d2/Samoyed_in_Tallinn_3.JPG/200px-Samoyed_in_Tallinn_3.JPG [02:24:38] yes, I'm using svgo, but the command line version [02:25:46] Specifically what does it do in Inkscape? It won't load it, or your layers are gone? [02:28:22] Parts are missing. [02:29:54] Ah, I'm not sure what options specifically do that. Perhaps work you way from very minimal optimization and figure out what options do so [02:30:38] Then maybe update the svgo projects page about what options do that. https://github.com/svg/svgo [02:31:05] Wonder if I just say it isn't my problem, … It seems to render as it should in Mediawiki… [02:32:21] * jeblad stamps a "case closed" on the issue [02:32:46] If it was me, I would make it editable in both Inkscape and Illustrator, because whenever you put a file onto Commons, others may want to use it. [02:32:56] Spirit of open source information and all that. [02:34:18] Ok, reverted to previous version [02:34:53] Oh, that works too. Looking at it, the difference of 500 bytes means pretty much nothing compared to the ability to edit. Its a pretty good effort, though. [02:35:09] Good optimization of SVG's works wonders for bigger ones, like backgrounds. [06:09:01] besides creating MediaWiki:Common.js, are there anything else I need to do to enable js? [06:09:08] js scripts for all users* [08:46:50] I installed a custom JS script inside MediaWiki:Common.js & MediaWiki:Vector.js, the script doesn't appear anywhere inside my sources even after force refresh, how do I debug this issue? [10:07:57] y0 and Thanks, Thanks, Thanks for the awesome software [10:10:25] I got https://www.mediawiki.org/wiki/Extension:TitleBlacklist to block all articles title marching '.*порно.*' [10:10:48] how do I expand this to block all content text occurences of that ? [10:11:12] I got better things to do than use tens of minutes of delling Russkiij porno links [10:19:30] jubo2: if they already exist titleblacklist can't do much till soemone goes to save the page again [10:19:59] You can use extensions such as Nuke to delete all pages by certain users [13:07:26] Hi, I am trying to debug javascript(Mediawiki:Common.js) on MW, 1.27. alert(1) shows up, but I can't find the JS anywhere in the sources.. [13:11:19] slushpuppy: that sounds confused... can you explain a bit more what you did, and what you expect to find where, and why? [13:15:33] sure, I have put the following line into Mediawiki:Common.js - "console.log ( 'common.js loaded' );". I refresh the page and I see the debug line, but for somereason I can't find "console.log ( 'common.js loaded' );" inside the page source anywhere [16:21:01] I configured SVG convertion on my wiki (using rsvg) but it just doesn't do anything :( [16:21:10] http://autowiki.xyz/wiki/File:Autowiki_Logo.svg [16:21:23] How can I debug this? [16:24:31] how did you configure "SVG conversion"? [16:24:46] you mean creation of thumbnails? [16:29:47] Nirvanchik: it looks like it's *trying* to do something, but failing [16:30:14] $wgSVGConverter = 'rsvg'; [16:30:25] $wgSVGConverters = array( [16:30:30] 'rsvg' => '/usr/bin/rsvg -w $width -h $height $input $output', [16:30:31] can you somehow get a log of how rsvg is called, and what its ourput is? [16:30:34] ); [16:30:50] * DanielK_WMDE_ is blurry on how loggin is done for this [16:31:08] I tried this command via ssh, and it worked : check http://autowiki.xyz/tmp/logo.png [16:31:52] DanielK_WMDE_: Hm, ok, but I don't know how to do that. [16:39:04] Nirvanchik: it might be that the web server cannot execute rsvg for some reason. [16:39:29] You could call a shell script instead of the actual binary, an in the script capture the output to a log file, to see what's going on [16:39:41] there is probably a better way, but this seams the easiest :) [16:39:51] DanielK_WMDE_: Yeah. Most likely you're right. I think so too. [16:40:28] Hm. shell script - good Idea. [16:44:54] anyone here experienced with VE debugging? I got a custom script and the following error: VisualEditor failed to load: [object Object] [16:45:04] i can't seem to get a dump on "Object" [16:45:09] is there a setting somewhere [17:26:25] Looks like it's impossible to use SVG thumbnailing on my hosting. [17:26:36] bash-4.1$ cat /opt/php.conf.d/u111591743.ini | grep proc [17:26:37] disable_functions = "system, exec, shell_exec, proc_open, passthru, ini_restore, mysql_list_dbs, ini_alter, dl, openlog, syslog, symlink, link, chgrp, leak, popen, escapeshellcmd, apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, virtual, mb_send_mail" [17:26:37] [17:26:53] they disabled executing scripts [17:26:54] [17:32:15] then you simply cannot do svg thumbnailing server-side [17:32:25] alternatively, find a better host [18:42:55] SvgHandler::doTransform(): dstPath:mwstore://local-backend/local-thumb/b/ba/Autowiki_Logo.svg/480px-Autowiki_Logo.svg.png dstUrl:/w/images/thumb/b/ba/Autowiki_Logo.svg/480px-Autowiki_Logo.svg.png [18:42:55] File::transform transformation deferred. [18:42:55] What does that "transformation deferred" mean? [18:43:33] probably means it hasn't been done