[01:15:05] Is there a way to get the content of a wiki page back without formatting, just the text? For example [[this|would]] be just "would" [01:17:09] I use w3m for that [01:17:18] w3m? [01:17:45] the text browser [01:17:56] -dump dump formatted page into stdout [01:18:01] w3m -dump ... > file.txt [01:18:28] https://www.mediawiki.org/wiki/API:Parsing_wikitext I cannot see it doing this [03:50:50] What's up [03:50:56] hi Loyal8413 [05:31:49] Greetings, I want to confirm that it is acceptable to use MediaWiki software to build an ecommerce income producing website. [05:40:38] well if they come back, MediaWiki is free software, so you can do whatever you want with it :-) [09:11:20] it's gplv2+, so they can run a commercial website but they can't distribute copies of mediawiki under a non-copyleft licence [10:17:29] I have set $wgFileExtensions as an array of files (not adding to the existing ones). Is the file upload form supposed to update its "Permitted file types:" based on these? [10:20:25] ehh, looks like mediawiki doesn't really care about the setting at all. can upload files not in $wgFileExtensions, and also it doesn't seem to care about $wgMaxUploadSize either, saying a 2MB file is too large when limit is 50MB [10:20:44] interesting stuff. [10:23:27] well maybe the filesize is up to some PHP setting [10:34:09] Seems like I have to add the files I do __not__ want to $wgFileBlacklist [10:34:17] quite unintuitive imo [10:36:35] Ha, an extension seems to change that setting [10:37:26] So an extension maker can abuse this by making a silent upgrade to ones extension allowing whatever file [10:37:47] and then you can upload anything to any wiki using that extension [10:40:18] hmm, well if the strict setting is in use, at least the blacklist will get rid of some. [13:35:45] Has any of you played with the Quiz extension? I am wondering how could I use a templates variables within a quiz, doesn't seem to be possible [15:40:22] Hi Everyone, sorry for the basic questions, but am trying mediawiki for the first time with my class. I installed vanilla 1.30 (no extensions) and am running PHP 5.6 and MySQL . Everything went smoothly during install. I can see the main page, I can log in and can get into edit mode on the main and talk pages, and I can even successfully upload files. [15:40:35] But whenever I try to save a page, the response times out (ERR_TIMED_OUT) after about 10 seconds. I have tried searching for the issue, but without success. I enabled all the debugging from the manual, including the log file. Tail of the log file looks fine. Any suggestions would be appreciated. [15:40:56] website is at: http://raspberry.rochester.k12.mn.us/w [15:47:22] should also mention - have tried multiple browsers on multiple computers, so not a browser or extension issue. [16:27:51] rpsjab: i'd check that my database settings are correct in LocalSettings.php and that the database User has the correct write permissions [16:28:31] checking. [16:30:31] has all privileges on that database except for grant. I can manually log in with the stored credentials and update tables. [16:31:49] also interesting - in the profile page for my user, I can update my “real name” and it works perfectly. [16:32:26] anything in the system or webserver error logs? [16:32:50] checking [16:37:30] nothing in sys, apache or mysql logs [16:38:31] could it be a PHP setup issue? Not very experienced in debugging PHP. [16:38:56] phpinfo is available here: http://raspberry.rochester.k12.mn.us/phpinfo.php [16:53:29] and you have these error reporting lines at the top of LocalSettings.php? [16:53:32] error_reporting(E_ALL); [16:53:33] ini_set("display_errors", 1); [17:03:32] at the bottom of the file, but yes. This is what I have: [17:03:37] error_reporting( -1 ); [17:03:38] ini_set( 'display_errors', 1 ); [17:03:39] $wgShowSQLErrors = true; [17:03:41] $wgDebugDumpSql = true; [17:03:44] $wgShowDBErrorBacktrace = true; [17:03:44] $wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log"; [20:50:42] https://www.irccloud.com/pastebin/KO9pxRVX/ [20:50:58] This is RemoteWiki(25): https://github.com/miraheze/MirahezeMagic/blob/master/RemoteWiki.php#L25 [20:52:00] whenever I run wfGetDB( DB_MASTER, [], 'metawiki' ); in eval.php it works fine but in RemoteWiki.php it just fails horribly. MW 1.30.0 w/ PHP 5.6 [20:52:45] are you using the same php version on the web server and cli? [20:52:52] yes [20:53:36] (I'm using it for a maintenance script, though. so using cli version anyway [21:01:45] harmaahylje, still around? give me an example of how you are trying to use templates in a quiz [21:08:56] harmaahylje, Sveta : maybe not possible depending on how it is rendered [21:14:23] Hi all. [21:14:40] I'm using a phpbb wiki plugin to link my phpbb users to be able to login into wiki. [21:15:12] Well, now in a recent shift, the phpbb & wiki directories are on two different cpanel accounts of the same server [21:15:51] So, in the LocalSettings.php $wgAuth_Config['PathToPHPBB'] = 'phpbbfolder/'; // Path from this file to your phpBB install. Must end with '/'. [21:15:56] won't work. [21:16:03] How do I go about it? [21:16:04] maybe a full path? [21:16:15] It says Path from this file to your phpBB install [21:16:19] "this file" [21:16:39] I don't think I can ../../../../home/user/... [21:16:42] lawl. [21:16:46] *can't [21:17:07] Any clue please? [21:17:23] you can give absolute path [21:17:32] if it is readable by your webserver [21:17:52] Sure, let me try! [21:19:31] Exception encountered, of type "Exception" [21:19:33] Same error. [21:21:51] Is there no addon/extension which allows remote connections? [21:22:09] Although in my case, only the accounts are seperate, not the server,. [21:23:29] check your php log if you can [21:23:40] it is probably an extension using the old AuthPlugin interface [21:23:55] which extension are you using? [21:23:56] we don't know which mediawiki it is yet :) [21:24:12] https://www.mediawiki.org/wiki/Extension:PHPBB/Users_Integration [21:24:24] That one. [21:25:14] which version of mediawiki ? [21:26:16] what are the details of the exception? [21:26:25] maybe it's the throw new Exception('Unable to find phpBB installed at (' . $this->_PathToPHPBB . ').'); [21:26:30] of https://github.com/Digitalroot/MediaWiki_PHPBB_Auth/blob/master/Auth_phpbb.php#L673 [21:27:32] 1.26.2 [21:28:28] Platonides: Well, I have been using it very well till date. But now I shifted wiki to a different cpanel account ofthe same server. [21:28:38] you set $wgAuth_Config['UseExtDatabase'] = true; ? [21:28:56] I don't think they are using the same db if they are at a different cpanel account [21:29:04] So, you see, technically the relative path from wiki localsettings.php file to phpbb3 doesn't exist anymore. [21:29:22] Well, even earlier they never used same db. [21:29:42] phpbb3 was on a separate db, and wiki was on a separate one. [21:30:00] And the auth plugin had the phpb33 db details. [21:30:48] The only thing remains is how do I give a relative link when the whole setup is now on a different cpanwl acount? I tried full path bit it failed as expected. [21:33:19] an absolute path would work [21:33:22] assuming you have the latest phpbb extension [21:33:36] and the phpbb folder is readable by mediaiwki [21:39:09] Platonides: It would work even on a relative path if the phpbb folder is readable by mediawiki. [21:39:21] The point is they both are on two separate cpanel accounts. [21:39:26] and? [21:39:45] So I don't think there's any 'relative' path as such. Or is there? [21:39:46] you need to set the permissions right [21:40:03] I don't know how cpanel separates the accounts [21:40:11] are they sharing the filesystem? [21:40:23] well, both the wiki & the phpbb are readable directly by pubic [21:40:30] Yes, they are on same server. [21:40:39] Just two separate cpanel accounts [21:41:37] so you need to make /home/phpbb readable by the wiki user [21:41:45] Yea [21:42:01] So may be I can use ../../../? [21:42:02] idk [21:45:59] nope [21:46:01] doesnt work. [21:46:04] tried it already [21:52:52] .I'll ask my host for the exact locations. [21:53:00] Ideally it must work with ..../../../ [22:03:09] just pwd the PhpBB directory [22:03:26] (I hope you have shell access...) [22:22:59] Sveta: are you still here? [22:23:05] Yes. [22:23:12] Hi again harmaahylje. [22:23:57] I am trying to create a form for creating Quizzes [22:24:08] And hello to you too :) [22:24:37] Was wondering how to reproduce your problem. Think I have this extension on one of the wikis I use. [22:25:20] I am not really familiar with how to use the mediawiki templating system, forms etc to create something of use [22:25:33] Sveta: The Quiz extension? [22:25:38] Yes. [22:26:09] Is it possible to create a form to create Quizzes dynamically? [22:26:56] So that the user could add as many questions as he/she wants, and as many answer options etc, either use text, image or video for the question, or even for option [22:28:20] So I was trying to create a form (with Page Forms) using a template and the templates "variables", but inside I can't use any of those {{{variables}}} [22:28:58] or so it seems. I currently can't look at the wiki because my server is off, as I am going to sleep very soon [22:29:33] Sveta: have any ideas? [22:30:08] Um, that's quite a change of question there. [22:30:13] First you asked about templates, and now... [22:30:39] What is 'Page Forms'? [22:31:25] I'm sorry because I am trying to figure out how to build something 'internally' with mediawiki, with its "templating language" (what is it even called? the stuff users input on the site) [22:32:12] Sveta: https://www.mediawiki.org/wiki/Extension:Page_Forms - an extension that was previously named as Semantic Forms (for Semantic Mediawiki afaik) [22:32:30] OK [22:32:48] So that is what I was _trying_ to do. If you can help me with finding any way that would work - fine and appreciated [22:33:28] Page Forms are not for the light hearted [22:34:03] Well they _seem_ to offer functionality that could potentially solve my "problem" [22:35:15] But I came across this (relating to the Quiz extension) https://en.wikiversity.org/wiki/Help:Quiz#Hyperlinks_and_other_markup [22:35:41] which made me doubt that I could get it working [22:38:43] Sveta & saper : Do you think you can give me suggestions? Or if what I am trying to do is even possible? [22:40:41] harmaahylje: it says templates {{...}} work [22:40:44] they can do a lot [22:41:59] saper: yeah, I just don't understand *what* that actually means. As I was trying to use a template, and template "variables" (what are they called in MW? parameters?) [22:42:07] Specify how to reproduce the problem without using Page Forms. Narrow it down to something that I can try to do. [22:43:34] This is how a Quiz with one question is made (simple example): https://dpaste.de/Ez0t [22:43:47] You create a page and put that in there [22:44:23] I want to create a form that would create these quiz pages. [22:44:34] Ah okay. [22:45:13] In the form the user would specify question text and the answers (including which one is right and which isn't). [22:45:25] Yes [22:45:42] (the question, and the answers could also be images or videos) [22:45:49] That is not possible. [22:46:15] I don't see why not [22:46:26] or what did you refer to saper? [22:47:05] I refere to having a user-editable quiz creator [22:47:22] Oh damn, why is it not possible? [22:49:01] as far as I understand, the extension uses wiki markup between ... tags [22:49:37] and wiki markup doesn't allow using something that would be needed (what is that?) [22:49:58] like styling? [22:50:07] so not possible to use templates etc? [22:50:23] you can use template that will generate a tag [22:50:35] but a template is again a piece of wiki markup [22:51:09] so adding things like {{One question quiz|What is a name of a Red Planet?|Mars}} could possibly work [22:52:16] But nothing more complicated? [22:52:23] One could, possibly, write an extension for visual editor [22:52:40] Don't have visual editor in the wikis [22:53:04] and I don't fancy writing an extension, because then I would have to maintain it [22:53:13] for which I will not have funds for [22:54:17] I guess I will just abandon the idea, and try to find a guide for users on how to create Quizzes. But they will have images or videos, which might make it a lot harder for them to create quizzes [22:56:13] saper and Sveta, thanks for your time and your help [23:09:15] :) [23:16:23] not that I could do much