[00:16:05] The help pages said to just state the problem. I don't know much about wikis and am not the server admin, but am trying to fix up an old wiki. Here is an example of the problem: http://www.webos-internals.org/wiki/Webos_Doctor_Versions [00:16:16] Here is the page as found via the special pages / all pages: http://webos-internals.org/index.php?title=WebOS_Doctor_Versions [00:16:31] The wiki was recently updated to 1.29.0, PHP: 7.1.7-1+ubuntu16.04.1+deb.sury.org+1 (fpm-fcgi), MySQL: 5.6.35-log. All version data is here: http://webos-internals.org/index.php?title=Special:Version [00:16:48] The fault predates the upgrade and is not fixed by it. It's possible that it has something to do with a server problem in 2014. If the server went down, could it have broken some links? [00:17:06] It appears that /wiki/ style links don't work, but "index.php?title=" types do, so it seems to be hard links vs searches. Can this be solved by making all links into the latter type? Or is that a kludge? Is there some routine that could be run by the admin to re-index the pages? Thanks for any help. [00:17:58] I can contact the admin if it is server type stuff that needs to be done [00:19:53] Preemptive, you're looking at interaction of webserver rewrites and MW configuration here. do you have access to either of them? [00:20:55] so right now the wiki is configured for ugly links (/index.php?title=...) [00:21:19] where do the pretty links (/wiki/Title) come from? [00:21:45] No, I think I just have editing priviledges, but I thought if there is a known fix, I can pass it on to the admin. I haven't found anything obvious in the help pages. [00:22:25] MaxSem: I don't know - very ignorant here! ;-) [00:23:26] the manual is here: https://www.mediawiki.org/wiki/Manual:Short_URL [00:23:49] it sonds like your wiki used to be configured for pretty URLs but not anymore [00:25:17] MaxSem: OK, that's a great start! I'll pass that on and see if we can set up for 'pretty' URLs! Thank you very much for your help. [14:40:27] Hello! Has anyone tuned LDAP? [14:46:42] Hi starostindc. [14:46:44] What's your question? [14:51:54] I use LDAP Authentication extantion. And not working local auth, but ldap auth working. Where bug or options? use local auth = true. [14:57:47] Writing [14:57:49] Login error [14:57:50] Incorrect password entered. Please try again. [18:18:08] I have 2 queries regarding how can I reduce the number of API requests: [18:18:30] 1. I am trying to fetch last X edits of a list of users. I am able to fetch last X edits of a single user, but providing a list of users using "ucuserids" still gives only the number of results as specified in "uclimit". [18:19:52] 2. I am able to fetch the details of the last X edits of a user, to fetch the actual content I have to make another query requesting the revision details. Is it possible to get the "content" as well in a single query? [18:21:07] I would appreciate any help! [18:55:07] any way to fetch sections of a page using api in nested format? [19:02:50] Hey, random q, was doing software wiki does mediawiki have code highlighting or similar support? [19:02:56] Or should I look elsewhere? [19:03:32] Yeah, you just need an extension to do it though [19:03:45] Do you know what it's called? [19:03:53] https://en.wikipedia.org/wiki/PHP#Functions [19:03:55] trying to figure if it's an optimal solution [19:03:56] You mean like that? [19:03:59] On the rendered pages? [19:04:03] no [19:04:17] highlighting and code blocks [19:04:44] like on blogs in jekyll and hugo etc [19:04:45] Whilst editing? [19:04:46] BigRonnieRon, https://www.mediawiki.org/wiki/Extension:CodeMirror for highlighting the wikitext as you're writing it. Or https://www.mediawiki.org/wiki/Extension:SyntaxHighlight for code blocks within the displayed pages. [19:04:59] yes on rendered pages [19:05:04] sorry for confusion [19:05:37] Ah Pygments [19:06:44] oh wait [19:08:18] I'll read through this thx [20:11:14] Hello [20:12:18] hi [20:14:41] I run a private wiki at my company accessed by my team. [20:15:19] anyone knows how to embed phab links in mediawiki? [20:16:04] Is it possible to run a script on a page creation? I have looked at https://www.mediawiki.org/wiki/Manual:Hooks but I am looking for a way to trigger a python script. [20:17:53] codezee: [[phab:T1234]] [20:17:53] T1234: Restrict Bugzilla access to read-only - https://phabricator.wikimedia.org/T1234 [20:18:34] xxdaveyxx: yes. The traditional way would be to have a bot poll special:newpages [20:18:36] !bot [20:18:36] A bot is an automatic process which interacts with MediaWiki as though it were a human editor and is designed to simplify repetitive actions too cumbersome to do manually. An overview of how to create a bot and a list of known frameworks can be found at http://en.wikipedia.org/wiki/Wikipedia:Creating_a_bot [20:19:37] xxdaveyxx: however, you can use a hook, by using wfShellExec() to execute a python script (be warned, executing things from hooks may delay saves until your process is done) [20:19:51] Yeah, I have been using mwclient for a couple of years. I was thinking of scheduling it hourly or something, but I was hoping it would be possible with a callback. [20:21:35] Thank you. wfShellExec() I will try that. I would not have thought there would be a delay when using 'PageContentSaveComplete' for example. [20:22:16] xxdaveyxx: keep in mind PageContentSaveComplete happens after saving, but before the result is returned to the user [20:23:07] You could run a script that simply starts your script in the background and immediately exits [20:23:25] ideally you could trigger a new deferred job for this, and do the script execution inside the job. However that can be difficult if you don't know how to do that in a job [20:23:51] bawolff: thanks! [20:24:17] Thank you bawolff and Vulpix. I will try to figure out something like that. [20:25:24] xxdaveyxx: When shelling out, don't forget to escape all your arguments ( via wfEscapeShellArg ) [20:27:21] Thank you for the help on php. I know how to maintain a few things on my wiki but I do my main coding in python. [20:29:14] I will also look into seeing if having a bot poll. My current scripts are scheduled tasks. [20:29:56] by poll, I basically meant scheduled, but scheduled very often [20:33:05] Ah okay. I might see if a polling script that keeps checking would work. I probably have the resources. [20:48:27] Oh no. wfShellExec is Linux only. I am locked into IIS on my server. I did push to get a debian server. [20:49:09] wfShellExec() should work on windows, too [20:49:30] we have some conditionals there to make it work [20:52:23] xxdaveyxx: If you do encounter any issues using wfShellExec() on windows, let us know. MediaWiki doesn't get tested as often on windows, so we need bug reports from our windows users :) [20:54:02] Alright I will test it out tomorrow if I get a chance. Is there some documentation on wfShellExec. I am not finding it at the moment. [20:56:37] look at includes/GlobalFunctions.php [20:56:56] it's simply a function that executes a program passed as an argument [20:57:53] Oh right, I get it. Thanks. [20:58:26] we need a wrapper function precisely by things like windows command line crazyness :P [20:59:52] Okay, I will hack away at it tomorrow. I have another colleague on my team that is far more savvy than I at php so I will get him to help me out. I'll get back if I have any trouble. [21:00:57] don't doubt to ask :)