[03:10:04] is it ok to have spaces in parameters in templates? [03:28:45] slushpuppy, you mean spaces in the parameter values provided from the calling page? Those are fine. (There is some variation in how trailing spaces are handled depending on how the parameters are passed from the page.) [03:45:51] thanks burfo [03:45:58] also are templates cached as well? [03:46:19] sometimes when i update my template, the new parameters are not carried over instantly [06:20:02] how do i add sections in visualeditor? [09:37:51] when using "wiki-file-name" of https://www.mediawiki.org/wiki/Help:TemplateData#Example VisualEditor still shows a string input field, and doesn't let me select a file. How do I fix this? [09:42:59] slushpuppy: it's still not supported by Visual Editor https://phabricator.wikimedia.org/T55613#2193437 [09:43:19] Oh :( [09:43:32] Vulpix, how do I specify files somehow then? [09:43:41] I got a template that I need to insert an image [09:44:00] Example.png [09:45:22] so I jsut change the templedata type to String and just specify that accordingly? [09:46:05] from what I understand, Visual Editor would fall back to string in such field data type, so you don't need to change it to string [09:47:07] if you leave it as wiki-file-name, when VE starts supporting it, it would present a better input field for them [10:41:07] thanks Vulpix [14:30:21] hello MW. [14:32:59] Domo arigato mr roboto [14:40:00] Hey, mind I repeat my question from yesterday? My internet connection lost and couldn't see if I got any reply [14:40:35] pigiman: you can check the logs of the channel [14:40:44] (see topic for link) [14:46:32] Vulpix: checking, one second [14:47:07] Ah ok, no one replied :) [14:54:40] pigiman: of course, feel free to repost your question again, or in the https://www.mediawiki.org/wiki/Project:Support_desk [14:57:05] Vulpix: basically I am trying to use this API call: https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&uselang=user&prop=imageinfo&list=&meta=&indexpageids=1&iwurl=1&titles=Vulpes+vulpes%7CAcer_negundo%7CIsrael&generator=images&redirects=1&utf8=1&formatversion=2&iiprop=timestamp%7Cuser%7Curl%7Cextmetadata%7Cmetadata [14:57:05] but unfortunately I can't seem to get the images' pageids while I do see that they are used in the English version. I thought maybe there's a way to always get these pageids without doing another request [15:03:17] pigiman: only the last image has pageid because is local to enwiki, the other's are not in enwiki database (they're in commons) so they don't have pageid [15:03:40] http://www.reverb-marketing.com/wiki2/ i followed the directions and got fatal exceptions. [15:03:42] Vulpix: is there a way to get the globalusage within this call? [15:04:28] commons has a global usage, but I don't know how it's done [15:04:55] yea, I saw, but couldn't use it in the same call.. Like it's another generator I think [15:05:04] Anyways, I will just use another call [15:05:05] Thanks! [15:05:33] 'Unable to move the new CDB file into place.' [15:26:35] anyone know why i get that CDB error? my cache is 777. [16:04:18] Anyone know why I'm getting "Unable to move the new CDB file into place." when I run maintenance/rebuildLocalizationCache.php on the latest MW in Ubuntu 14.04? [16:08:42] i-make-robots: check permissions [16:09:03] oh, if you have several instances of MediaWiki under several users, they could compete for the same path [16:18:28] Dereckson - cache path is 777, user and group is apache for the whole wiki folder. [16:23:01] 777 :( [16:23:25] If you've the control on the server, and so can set correctly permissions, avoid the 777 as a magic solution [16:23:45] you'll reduce the surface attack by only giving your apache user the right [16:27:36] none of which is currently fixing my problem. [16:28:06] PHP Warning: rename(/tmp/l10n_cache-en.cdb.tmp.1771747180,/tmp/l10n_cache-en.cdb): Operation not permitted in /var/www/www.reverb-marketing.com/public/wiki2/vendor/wikimedia/cdb/src/Writer/DBA.php on line 59 [16:28:07] [c1a64a51d03f53642effca8c] [no req] MWException from line 118 of /var/www/www.reverb-marketing.com/public/wiki2/includes/cache/localisation/LCStoreCDB.php: Unable to move the new CDB file into place. [16:41:47] ls -lh /tmp/l10n_cache-en.cdb who owmns it currently? [16:52:04] hmm, i checked the phabricator, can't see anything about the approvedrevs thing [16:53:52] doesn't seem to work for 1.27, any alternatives besides flaggedrevs? [17:05:20] Dereckson - root [17:06:42] deleted it and tried to rebuild. [17:08:57] i-make-robots: you're normally at the end of the upgrade process (excepted if you've extension/custom code issues) [17:09:30] cdb issue is what you encounter last [17:33:49] Dereckson - PHP Warning: fopen(/var/www/www.reverb-marketing.com/public/wiki2/images/lockdir/9n86815pljmkaqzkobi7x78uyzmswk5.lock): failed to open stream: Permission denied in /var/www/www.reverb-marketing.com/public/wiki2/includes/filebackend/lockmanager/FSLockManager.php on line 125 [17:33:50] any ideas? [17:33:59] was trying to importImages.php [17:39:22] i-make-robots, are you executing command-line scripts with a different user than apache uses and that's causing permission conflicts? [17:49:22] If you do a lot of maintenance scripts, could be interesting to crete a reverbmarketing user for your maintenance scripts and for the webserver PHP code for this wiki. [17:49:39] then you'll be able to sudo -u reverbmarketing php maintenance/importImages.php etc. [19:21:42] Dereckson - thanks. I ran importImages and it says it got them all. When I load my wiki I can see pictures are missing. What's up with that? [19:22:49] Would you have an URL to a missing image? [19:23:40] http://www.reverb-marketing.com/wiki2/index.php?title=Special:Upload&wpDestFile=Delta_Robot_8.jpg ? [19:24:31] oh, i see. I was running with a different user. [19:24:36] sorry, i missed your message. [19:24:45] how would i run as apache (www-data)? [19:25:16] nm [19:27:35] su -s /bin/sh www-data ? [19:30:55] www-data has no login. [19:30:57] refuses. [19:31:10] everything i'm reading says "don't make it unsecure by giving it a login!" [19:34:04] i-make-robots: that's why I am using -s [19:34:12] explicitely setting the shell to use [19:53:25] Platonides - ran "su -s /bin/sh www-data" to make a shell, then "php5 maintenance/importImages.php /home/droyer/images/ --search-recursively". same php error as before. [20:08:06] i tried using nullLockManager, still produces errors. [20:53:10] Hi [20:53:13] Before I get angry [20:53:18] What am I doing wrong? [20:53:32] https://en.wikisource.org/wiki/Page:Cowie%27s_Printer%27s_pocket-book_and_manual.djvu/65 [20:53:58] I am trying to set up column widths using CSS, but the parser seems to be completely ignoring them [20:54:38] I do NOT want to have resort to directly coding a table in HTML because Mediawiki can't cope [21:00:16] You have a glitch [21:00:51] when put into a mediwiki page generates output of -
[21:01:17] In other words the parser is encoding part of the style definition, which is breaking it [21:02:07] Can someone please explain how you are supposed to so styling like this? [21:03:15] put the css in a separate sheet and include it? :T [21:03:36] idk, i've been here three days looking for help. [21:04:08] If someone would tell me how to include an external stylesheet into a mediawiki markup it would be appreciated [21:07:00] i-make-robots: To get help you have to know cabal members ;) [21:11:08] wut. [21:11:21] lol [21:11:24] 21:03:36 < i-make-robots> idk, i've been here three days looking for help. [21:11:24] 21:04:08 < ShakespeareFan00> If someone would tell me how to include an external stylesheet into a mediawiki markup it would be appreciated [21:11:27] 21:07:00 < ShakespeareFan00> i-make-robots: To get help you have to know cabal members ;) [21:11:30] 21:10:41 -!- i-make-robots [~dan@184.70.142.222] has quit [Ping timeout: 265 seconds] [21:11:33] you only miss two lines [21:11:52] ShakespeareFan00 - http://stackoverflow.com/questions/16775095/adding-css-or-js-file-to-mediawiki ? [21:12:02] ShakespeareFan00: for assistance on CSS editing for Wikimedia projects, the help cabal is at #wikimedia-tech by the way [21:12:23] (well for anything technical) [21:12:33] ShakespeareFan00: edit MediaWiki:Common.css ? [21:12:41] #wikimedia-tech <3 [21:12:53] so have i been asking in the wrong channel? [21:13:15] i-make-robots: no, this is the right channel for MediaWiki support [21:13:20] phew [21:14:23] i-make-robots: perhaps you need to find someone versed in MediaWiki for your project, so they can prepare a rocking solid wiki infrastructure, be sure all the requiring maintenance scripts work, etc.? [21:14:43] ok, so i followed your advice, switched to www-data (apache) and ran the importImages again. still getting lock errors. tried to use "$wgLockManagers = array(array('name'=> "nullLockManager", 'class'=>"NullLockManager"));" in LocalSettings.php but it still runs FSlockmanager. what do i do, please? [21:15:03] (Friday evening, you seemed to be a little tired of MediaWiki issues) [21:15:18] :) i'm still tired. [21:15:35] Dereckson: Asked my question in the other channel [21:15:35] i need a linux guru in my workplace, but we don't have budget so here i am! [21:17:00] i want to reiterate how grateful I am for all the help. I'm sure I brought this on myself. [21:20:46] i-make-robots: hmmmm [21:21:07] when you switch to another account, but ran command with another user before, some files will be owned by this user [21:21:14] you need to chown www-data these files [21:21:25] so they'll belong to the right www-data user [21:24:05] i chown'd the whole wiki folder, uid and gid. [21:25:23] wtf... did it again and this time it appears to be working. [21:25:26] so confusing. [21:59:25] i finished the import but the images are still missing! :( [22:22:06] bah! I imported, some of the files were missing. So I imported again and now all the files are missing.