[01:16:59] is it possible to insert a link to a category page using the visual editor? [01:17:03] i couldn't seem to do it [02:07:09] is there a way to list all non blocked users? [02:22:17] k-man: Maybe the api has a method to filter blocked users. Not sure. Check docs of list=allusers [02:50:08] bawolff, interesting, thanks. can i use the api on a page on the wiki or do i need to write my own code to parse the api output? [02:51:02] Generally you cant embed on wiki. There may be extensions to do that, im not sure [02:51:13] ok, thanks bawolff [02:51:38] k-man: but if you just want to query and not embed, check out special:apisandbox [02:51:44] its beyond the scope of what I need. for now we can just manually scan down the Special:ListUsers page [06:18:39] https://foundation.wikimedia.org/wiki/MediaWiki_Action_API_Survey_Privacy_Statement hm. [13:50:06] If I have normal-text paragraphs, I need one empty line between text to make multiple paragraphs. However, if the next paragraph starts with bold text, I need two empty lines to space it one line as before. Why is that? [14:09:01] forestbits: sounds like HTML formatting. You can also use
for new line. [14:12:20] voolik: I just don't understand why being bold makes a difference with line breaks. Can you elaborate on what you mean by html formatting? [14:16:46] forestbits: tested it out, seems to be the same for normal text and bold text, just tested. one line break in editor does not add line break when reading, two line breaks adds line break to text. [14:57:24] TimStarling: o/ thank you for all your insights and patch review on that ancient random bug (T208909). If that bug was any older, it'd have a car and being going to university ;D We've tried to apply all your recommendations. Do you know how long a script like this would take to run? https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/472596/14/maintenance/resetPageRandom.php [14:57:25] T208909: [Bug] Update old nonuniformly distributed page_random values - https://phabricator.wikimedia.org/T208909 [14:58:40] @HaeB has been digging around for some similar examples. We haven't done this before and are in a bit of a pinch trying to figure out how to get these values fixed. [15:36:23] Hi channel. Not strictly a mediawiki problem, but possibly one that is encountered often when installing it. Mediawiki's index.php is throwing the error "Error starting session: session_start(): open(/var/lib/php/fpm/session-nginx/sess_cpjfqbrn5iuha1rmft2go96d61, O_RDWR) failed: Permission denied (13)". however, nginx and php-fpm are both running as the nginx user, and the session directory is writeable by the nginx user. Any suggestions what else [15:37:41] jem^: is this RHEL? [15:37:55] I'm aware of a common cause of the php package changing perms on the session dir when it gets upgraded, but that's not what's happening here. [15:37:58] legoktm: CentOS 7 [15:38:12] close enough then [15:38:17] https://stackoverflow.com/questions/9203320/php-fpm-and-nginx-session-problems has some suggestions [15:38:21] hmm [15:38:29] have you tried pointing it at a different directory entirely like /tmp? [15:39:10] yes, I actually created an alternative session dir alongside the original one, but which a package upgrade wouldn't mess with [15:39:40] I'll pastebin some details.... [15:43:16] https://pastebin.com/Y7zC2Aej [16:08:33] jem^: do an ls -al on the session dir please [16:09:08] ls -al /var/lib/php/fpm [16:16:39] it's empty. [16:16:45] what do you mean [16:17:08] I meant the fpm dir, not the session dir, sorry [16:17:12] see the exact command I gave above [16:17:13] er, sorry, the ls output is in my earlier pastebin [16:17:18] you did ls -l [16:17:20] not ls -al [16:17:25] ah yes, one sec [16:17:27] the -a is important here as I want to see perms on . and .. [16:18:01] my guess is that a parent dir isn't granting +x to everyone, so the nginx user can't traverse into its session dir [16:19:38] yep, the fpm directory itself is lacking everyone +x [16:20:00] I'll fix that and test [16:21:41] yep, that was the problem. Thanks very much for the pointer [16:22:02] the pastebin is updated also [16:22:10] glad it got fixed :) [16:24:03] and it looks like reinstalling the php-fpm package reverts the o+x. I'll have to put the sessions somewhere else entirely [16:25:25] sounds like it [17:49:58] "// DatabaseUpdater does not support other databases, so skip" RIP. [17:50:36] Echo was refusing to do schema updates. Somehow $wgEchoCluster is being initialized to null instead of false. [19:08:26] Ahhhh. So in the context of the Installer/Updater global EchoHooks::onLoadExtensionSchemaUpdates() globals in $wgEchoCluster BEFORE ExtensionRegistry has the chance to export the setting into the global scope. However, global'ing a non-existent variable in PHP initializes it to null which causes ExtensionRegistry to not override it with the default of false. Then Echo checks for !== false. RIP. [19:09:03] *Installer/Update EchoHooks (errant global there) [20:24:42] Hello and thanks for the greatest wiki engine in these parts of the Laniakea Supercluster [20:27:35] Got an issue.. I exported http://en.wikipedia.org/wiki/Special:Search?go=Go&search=Template:References and tried to import it to my wiki. The importer said that the import failed because a content handler for .css did not exist. So I installed https://www.mediawiki.org/wiki/Extension:TemplateStyles because that suggested it, but now I get an error when I try the importing again. Also where I have a {{References}} I get error "Script error: No such [20:27:36] module "Check for unknown parameters"." [20:28:07] I'm guessing I need to add something from https://www.mediawiki.org/wiki/Extension:TemplateStyles#Configuration into the LocalSettings.php. I've so far just loaded the extension in LocalSettings.php [20:28:37] The "Script error" issue means you need Scribunto [20:29:09] I have Scribunto. At least I think I have.. got two wikis so not remember exactly. I'll check now [20:29:24] did you import https://en.wikipedia.org/wiki/Module:Check_for_unknown_parameters ? [20:30:01] legoktm: I have Scribunto installed [20:30:35] legoktm: I just imported the Template:References [20:30:59] legoktm: Should I import https://en.wikipedia.org/wiki/Module:Check_for_unknown_parameters and see if it fixes the problem? [20:32:09] yeah... [20:32:13] and then purge the page [20:32:32] Ok. I'll do that now. How do I purge a page? [20:34:34] legoktm: How do I purge (the page showing the error?) ? [20:34:41] ?action=purge [20:34:52] https://www.mediawiki.org/wiki/Manual:Purge [20:35:17] legoktm: cheers! now there is no more error on the page [20:35:24] awesome [20:35:43] Today I've been working on this article https://develop.consumerium.org/wiki/Human_rights_due_diligence [20:36:09] it is a hot topic in the activism scene on CSR and human rights issues at the momemnt [20:36:42] lot of things going on in HRDD around the planet [21:15:47] hi [21:16:48] is it possible to somehow inside a form to check against a boolean field on Cargo?