[00:22:46] MatmaRex: I will look into setting that [00:23:58] bd808: that's great, thank you. The page tells me I should limit to 200 requests/sec which is a usable rate. [01:19:26] Hey all, I'm trying to set up mediawiki with the visual editor, but when I try to either edit an existing page or save a new one, php starts taking up 100% of the server's CPU and eventually it times out (at which point php keeps going on the server until I kill it). I'm unsure how to go about troubleshooting this, any ideas on where to look? [01:19:26] (This is in the context of attempting to update the mediawiki sandstorm package, so setup scripts/config are here: https://github.com/zenhack/mediawiki-sandstorm/) [01:21:29] (...the README is wildly out of date and the build doesn't actually use docker, to head off anyone who actually looks at that and is confused...) [16:46:06] What is the best way to add a wiki to a wiki farm without renaming LocalSettings.php and causing all of the wikis to go offline? [16:48:21] Are you trying to use the web installer? [16:48:42] that is how I've previously done it, yeah. [16:49:30] Ah there's a maintenance script [16:50:49] yeah, I was going to suggest install.php [17:17:45] install.php complains if there's a LocalSettings.php, IIRC [17:35:37] create a blank wiki locally, dump the database, reimport into your production setup and update LocalSettings for the new db [19:44:58] hello there! i have a question regarding the development of an extension. Can i ask it here? [19:47:22] yes, https://dontasktoask.com/ [19:49:07] I'm making a SpecialPage. I want to add some HTML code, but it always gets shown as mere text. I'm using $out = $this->getOutput->addWikiTextAsInterface(); [19:52:55] you should use addHtml instead of addWikiTextAsInterface if you want to add raw html (and are sure it's safe to do so) [19:54:24] Why thank you! is there any overview at hand for all these kind of functions? [19:55:56] maybe https://doc.wikimedia.org/mediawiki-core/master/php/classOutputPage.html? [19:58:12] thanks! a bit much but certainly handy [20:41:25] Another question: say i want to show a simple text input, with submit button, and an action in my extenstion, how would I go about that? Any good starting points? I'm trying to learn from other extensions but it's complicated [20:41:45] All of this on my special page [20:43:34] can you create a hyperlink that redirects to a specific word/phrase on the same page? [20:48:34] Guest64: You can point to a heading using [[#Heading text|link]] [20:49:37] Guest64: in addition, you can define an anchor outside of headings by putting an HTML element with a specific ID. Like
and link as [[#someanchor|text]] [20:51:40] Try to use alphanumeric characters only for your ids, to maximize compatibility [20:58:15] thanks, it works! [21:17:05] We are looking for a mediawiki developer to upgrade and improve a custom mediawiki installation [21:17:23] Any interested parties please email smatei@purdue.edu [22:11:34] Hello everyone! I'm writing an extension and want a simple check in PHP to check wether a page exists, given a string of the title. How could I do that? [22:15:10] Have you tried looking at the code? [22:15:34] Title::newFromText( 'TitleName' )->exists() [22:17:56] Thank you! it works. I had used more complicated code that i found elsewhere but now it's working [22:43:15] > <@zenhack:matrix.org> Hey all, I'm trying to set up mediawiki with the visual editor, but when I try to either edit an existing page or save a new one, php starts taking up 100% of the server's CPU and eventually it times out (at which point php keeps going on the server until I kill it). I'm unsure how to go about troubleshooting this, any ideas on where to look? [22:43:15] > [22:43:15] > (This is in the context of attempting to update the mediawiki sandstorm package, so setup scripts/config are here: https://github.com/zenhack/mediawiki-sandstorm/) [22:43:15] Bump