[04:06:45] Hi [04:07:57] I've installed a wiki that I imported Wikipedia's mediawiki: pages in it , Now my Main Page Title have been changed , where should I fix it ? [04:07:59] Helpme [04:08:41] this is the hazara university [04:09:17] it's Mediawiki IRC :| [07:10:46] hi all [07:17:08] i have a problem with unauthorized content posting on my wiki [07:18:39] even if i have not registered users, i still get false contrinutions [07:19:42] in the "last modifies" special page [08:08:11] Previously I made use of an old extension that embedded youtube videos on a page as follows: YouTubeVideoID [08:09:30] I've now switched to the extension which is primarily for embedding uploaded mp4, ogg or webm. [08:10:33] But the same extension also allows for YouTube videos, for example as follows: [08:10:45] YouTubeVideoID [08:11:57] My question is: Is there a good way to still allow for the VIDEOID markup, but make use of the extension? [08:13:49] Having removed the original extension, I would like to translate VideoID to a default VideoID [08:14:48] Obviously VideoID being a variable defined on various existing pages. [08:16:10] Can this type of regex replacement be done by some kind of template or would a small extension be required? [08:16:46] I'm just too lazy to manually replace existing markup :-) [08:17:29] Besides, ... happens to be easier to use, even though it's conflicting with an old extension, which I no longer use. [08:37:45] how can prevent to create users ? [08:39:36] i got a database error after many ip were registered as users, and create their content [08:39:56] Dr_Z, https://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_account_creation [08:40:05] even BlockandNuke blocked the db [08:48:51] i mean i still got a query database error [08:49:58] Or, is there a wiki markup replacement procedure, or recommended method, to safely search and replace all individual instances of '' with '' and all instances of '' with '' across all content pages of a wiki? [08:50:26] i'll try the solutions of that link and report back [08:52:01] Tuxedo https://www.mediawiki.org/wiki/Extension:Replace_Text [08:53:11] Alphos: Excellent, thank you! [08:54:24] Tuxedo yw [09:10:03] Is that intentional? [09:10:47] u can bet a whole whale [09:19:40] autojoin :( [09:19:54] Platonides: ping ^ [10:08:54] hi [10:12:55] i have the same error like in that topic: [10:12:56] https://www.mediawiki.org/wiki/Topic:Sv312710qaeadlhu [10:13:54] my problem is that i dunno how to solve it.. so i think its because my webspace [10:14:34] i use the same configuration on my local machine (xampp) too and it works only not on my webspace [10:14:54] DMI-1407: does the error message mention problems writting to the temp directory? [10:16:40] yes, you can see the debug output here (in the code block): [10:16:41] http://forum.square7.ch/viewtopic.php?f=4&t=4914 [10:17:21] it says that the less.php cant create the tmp folder [10:17:37] but i dunno why and not in which path [10:18:17] you can change the location of the temp directory used by MediaWiki to an existing one, by setting https://www.mediawiki.org/wiki/Manual:$wgTmpDirectory in LocalSettings.php [10:18:52] temp directory shouldn't be accessible from the web, so ideally pick a folder not in the same path as the published one [10:19:42] can it be outside the mediawiki installation too ? [10:20:03] yes. you should create it and give permissions so MediaWiki can write to it [10:22:27] well, if it's windows, you can probably use C:\windows\temp or similar [10:22:37] its not windows [10:22:54] its an linux but i dunno exactly which one [10:26:24] uhm [10:26:39] where is wfTempDir defined ? [10:27:01] in the setup.php i found only that it will used for the wgTmpDirectory [10:29:42] ehm because in the manual stands wfTempDir() default value depends on which is set in setup.php [10:30:05] my upload directory is $IP/images uhm [10:30:13] and this directory is writeable [10:32:06] wfTempDir() is a function, you don't need to mess with it. It picks what's specified in $wgTmpDirectory, and in addition it checks for the $TMP environment variable, then it tests on which directory it can write to [10:33:15] if $wgTmpDirectory is set correctly, that should be sufficient, but be sure that the webserver process has permissions to write to it, there's no open_basedir restriction, etc [10:36:07] if i write wfTempDir('tmp') what does it do ? does it search the tmp folder then from the root or from MW_INSTALL_PATH ? [10:36:32] because i installed the wiki in a subfolder [10:38:09] i am really confused [10:38:25] on my local machine there does no tmp folder exist :/ [10:38:53] wfTempDir doesn't expect any argument [10:38:56] (not into the mediawiki installation) [10:39:25] apparently, if $wgTmpDirectory is set, it doesn't check for other temp directories [10:39:28] https://doc.wikimedia.org/mediawiki-core/master/php/GlobalFunctions_8php_source.html#l02120 [10:40:46] so in localsettings.php i doesnt set $wgTmpDirectory [10:41:21] but that doesn't work for you on production, doesn't it? [10:42:23] production ? [10:42:52] so the mediawiki works yes, but the vector skin does not load [10:42:57] because that error [10:44:27] ok, back to square one [10:44:43] if i open the css file i can see an aditional error too [10:44:45] Problematic modules: {"mediawiki.sectionAnchor":"error","skins.vector.styles":"error"} [10:45:04] focus on the first error, other errors may be related to the first one [10:45:19] ok [10:46:05] if the error is "cache directory couldn't be created: /tmp", then MediaWiki doesn't have permissions to write to /tmp, you should provide a writable directory by setting $wgTmpDirectory [10:55:46] y0 [10:55:52] quick sorta related question [10:55:57] Nginx or Apache? [10:56:01] I've used both [10:56:05] they both nice [10:56:16] copyleft usually is nice [11:36:42] hi! I changed my common.css file so that the toc is by default displayed on the right. However, there's a few pages where I do want it to be appear as it was before. But I can't figure out how to do that. This page https://www.mediawiki.org/wiki/Template:TOC sais that there's {{tocleft}} and {{tocright}} so I downloaded the source and grepped for that hoping to find some undocumented {{tocinline}} but [11:36:44] found nothing. [11:37:35] I did found on the source that it was '.toc {display: inline-block; display: table; ...}' but how do I set it for a specific page only? [11:38:51] carandraug: you can place __TOC__ inside
__TOC__
and then define .tocleft .toc class in CSS to be placed to the left [11:41:02] Vulpix: but then I would need to set that on every page. I almost always want it floating on the lft, it's only a handful of pages that I want the default behaviour. [11:41:42] Vulpix: now that I saw the source, I got this on the selected pages "__TOC__" which seems to work. Is this the "right way"? I'm not that familiar with html and css. [11:42:29] that's the same as my solution but you're specifying stiles inline instead of defining it in the stylesheet [11:43:05] if we talk about "correctness" shouldn't contain block elements like a toc :) [11:44:49] Vulpix: ah! Apologies, I misread your answer. I see what you mean now. That should work and is better (although what I want is inline, not left float). [11:44:53] * carandraug tries [11:46:01] yeah, of course, I don't know what's the exact style you're trying to use, that was an example [11:52:31] a question because cloning a skin [11:53:22] i read somewhere (i dont find it now :/) that there exist a variable to hide the skin selection menu for useres [11:53:46] because sometimes there are skins that are not compatible with others [11:56:00] Vulpix: I did "
__TOC__
" after adding ".tocinline, .toc { float: none };". Is that not right? Should it be '#tocinline, #toc' instead? Ora mix of this things maybe? [11:57:59] uhm so i want simply to clone the vertex skin to modify it (i dont want to change files that came with the installation package) [11:59:22] does there a simple way (maybe with help of an step by step instruction) exist ? [12:01:15] i know that skinning part manual, but i dont want to write a new one i want simply recolor the vertex skin [12:01:49] (without modify the default one) [12:03:21] for some years i done it with help of https://www.mediawiki.org/wiki/Manual:Skinning/Vector [12:03:29] but its outdated today :/ [12:24:09] i'm trying to edit an old lua module i've written. my first edit caused an error, but even after rectifying the error the error message persists. why is that? [12:27:14] carandraug: # is for id, dot is for class names [12:27:54] carandraug: .tocinline, .toc { float: none }; means that either .tocinline or .toc will not float, while .tocinline .toc { float: none }; means that .toc *inside* .tocline will not float [12:30:14] Vulpix: oh! Because on all documentation I found online there was a comma, I assumed you missed it. I'm trying again. [12:32:22] DMI-1407: as I said in PM, if you only want to change colors, editing MediaWiki:vertex.css would suffice. If you upgrade later, most of your changes will still apply while you don't worry about overwriting skin files with your modifications during the upgrade [12:33:06] Vulpix: that's still not working :/ Could it be that the way I changed the inline state before was by setting toc id? This is the only other change I have on common.css '#toc { float: right };' [12:33:45] if you use #toc somewhere else, you should use #toc also there, instead of .toc [12:35:10] Vulpix: my knowledge really is not about CSS and HTML. I'm reading that there's not really any hierarchy on styles so could you please explain what's going on? Sounds like If I do that I overload the existing styles. Can I "append" to the default style only? [12:37:09] every CSS rule just appends over the existing ones, but there's some priority going on there that's somewhat complex to explain here [12:37:56] if you define #toc { color:blue} and #toc {float:left}, both will apply, one doesn't deactivate the other [12:39:17] ok. So the default toc class and ids don't define any float as far as I can see from the sources, they only set display as inline which is why I can set float then in toc, is that right? [12:41:30] Vulpix: so I changed my Common.css to be ".toc { float: right }; .tocinline .toc { float: none };". There is nothing else there. All the TOC on the wiki are floating to the right as I want them to. But still, "
__TOC__
" is not disabling the floating. [12:42:29] is the wiki public so I can take a look? [12:45:18] Vulpix: yes http://wiki.octave.org/ [12:46:06] Vulpix: here's the common http://wiki.octave.org/MediaWiki:Common.css and here's the page where I want to remove the float http://wiki.octave.org/FAQ [12:48:14] ahh, I see, the rules aren't applied because you shouldn't have a semicolon at the end of the "}", remove them [12:50:38] Vulpix: ah! That worked, thank you. [12:50:48] yw :) [12:51:04] Vulpix: but I'm curious. Why did the ; made no difference when adding floar right to .toc ? [12:51:55] I saw there's another .toc { float: right; } coming from somewhere else [12:52:50] but there was none last week. I only made it float right very recent by modifying common.css [12:54:20] the developer tools of my browser displays 2 rules [12:56:02] I'm using inspector on firefox. I see that now too. "load.php:1" and "inline:4" [12:56:02] apparently, the monobook.css stylesheet is being loaded twice somehow, that's why [12:57:23] Vulpix: seems like there's something else I need to fix, but I have a meeting now at 14:00. Thank you for your help [12:57:35] np :) [14:27:21] I'm thinking of maybe moving the MediaWikis to Nginx [14:27:24] not sure though [14:27:44] Vulpix: I'm back. Is the monobook.css the default skin (we are using)? It's empty http://wiki.octave.org/MediaWiki:Monobook.css Even if it's loaded twice, there's no align right there. [14:27:46] now the work would be more since the previous production server is with Apache so I'd need to write the confs again [14:27:58] then again it would be a safer bet for future [14:28:14] I kinda like that Consumerium.org is using both Nginx and Apache [14:28:20] not sure if it is wise though [14:30:12] carandraug: well, it's common.css what's being loaded twice, sorry [14:32:57] Vulpix: ah, I see. But then the mistake of the extra ";" would be present on both time it's loaded so why was it working? [14:33:26] carandraug: the ; was breaking all rules after it but not before, apparently [14:47:24] hi all... again xD [14:48:21] i have both "blockandnuke" and "usermerge" and have to integrate them [14:50:32] Vulpix: ah! I think I understand. I'm more used to the idea if there's a typo, code doesn't compile, and nothing works at all. Thank you [14:51:17] CSS is interpreted, I guess it executes until it finds something really broken [15:16:48] does someone know which language ase.json represents ? [15:17:15] if i look into that file i find only values not letters [15:17:26] long values... [15:19:32] "american sign language" apparently (first result in google lol) [15:20:13] ehm no [15:20:26] my first results are Automotive Service Excellence [15:20:49] but thanks [15:23:23] I refined a bit my search beforehand, looking for "ase language code" [15:50:40] the system is gettin me logout after i try to modify a page [15:51:01] even in i created my user after initial configuration [15:51:12] it says i have no rights [15:51:15] :\ [15:51:21] hello [15:51:27] hi [15:52:21] hello [15:52:34] can someone help me for a scribunto problem? [15:53:16] !ask | allaze-eroler [15:53:16] allaze-eroler: Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [15:53:41] heh i see [15:53:49] well, here my problem: i followed the instructions how to install scribunto on my own wiki, once done, i tried to test a module:test with a simple hello world coding [15:54:06] i got a nasty message error which i managed to get the backtrace thing given with this magic code line: $wgShowExceptionDetails = true; [15:54:43] and so, i tried again and here what i get as error: https://dl.dropboxusercontent.com/u/14183130/scribunto_bug.txt [15:54:59] if course, i googled every thing about that error [15:55:14] but apparently, it's something that was never saw [15:55:31] which mean it's a new problem [15:56:19] allaze-eroler: not really: https://www.mediawiki.org/w/index.php?title=Topic:Rfg97bdjf2u3rqti&topic_showPostId=rg6kr1i66r3nhm75#flow-post-rg6kr1i66r3nhm75 [15:56:53] ah [15:57:00] so it does apparently [15:57:54] i will read them closely [16:01:06] allaze-eroler: you need to chmod a+x that file [16:01:27] (or at the very least, u+x assuming the file is owned by the same user as is running the webserver/php process) [16:12:28] ah! [16:12:31] it changed! [16:12:47] but i got this: Script error: Lua error: Cannot create process: proc_open(/home/nofronti/allaze-eroler/w/hata/error_log): failed to open stream: No such file or directory [16:13:12] hummm i will check the error log [16:14:17] ah it wasn't created! XD; [16:14:39] yes, in fact the error happens when attempting to create /home/nofronti/allaze-eroler/w/hata/error_log [16:14:52] * allaze-eroler nods [16:15:25] does /home/nofronti/allaze-eroler/w/hata/ exist and is a folder? [16:15:49] i just created hata as it wasn't existed [16:16:10] here : http://www.allaze-eroler.com/w/hata/error_log [16:17:19] hummm it's getting weirder now [16:21:20] i start to see why it didn't work [16:21:27] i will try something [16:33:27] as i though, it's that portion of code that is not working: $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua'; because the dir /usr/bin/lua doesn't exist [16:34:05] should i create that dir? [16:39:28] allaze-eroler: you should use the lua standalone binary provided by the extension, preferably [16:39:38] i see [16:40:11] is that line is correct? $wgScribuntoEngineConf['luastandalone']['luaPath'] = '$IP/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic'; [16:40:51] hum nevermind, i think i know which like [16:40:53] line [16:41:14] allaze-eroler: use double quotes instead of single quotes, so $IP expands properly [16:41:24] ok [16:41:57] like this? $wgScribuntoEngineConf['luastandalone']['luaPath'] = "$IP/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic" [16:42:18] hum [16:43:27] yes [16:44:57] pff didn't work... [16:45:46] i even tried this: $wgScribuntoEngineConf['luastandalone']['luaPath'] = "$IP/binaries/lua5_1_5_linux_32_generic"; [16:45:52] http://www.allaze-eroler.com/w/hata/error_log [16:46:16] try to find the correct path before filling the configuration [16:46:28] hummm [16:46:30] ok [16:47:35] also you probably want to set the error log somewhere else, ideally on a path not accessible from the web [16:47:40] ah i think i see why [16:47:51] i missed one folder XD; [16:47:57] one last try [16:51:57] hum [16:52:06] didn't work, now i'm clueless... [16:53:50] i was so close to be successful with and yet it's still frustrating pfff [16:57:13] can you tell me what do you think of this : http://www.allaze-eroler.com/w/index.php?title=Special:Version [16:57:20] see if there is something wrong [17:03:16] are you still getting "/allaze-eroler/w/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic: No such file or directory"? [17:03:29] yep [17:03:51] but your path seems to start at /home/nofronti/allaze-eroler/... [17:04:01] oh.... [17:05:02] ah [17:05:08] much better but still a problem [17:05:28] that is what i get: /home/nofronti/allaze-eroler/w/extensions/Scribunto/engines/LuaStandalone/lua_ulimit.sh: line 6: exec: /home/nofronti/allaze-eroler/w/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic: cannot execute: Is a directory [17:05:44] oh what a dork i'm [17:05:49] i forgot that lua [17:05:53] !e Scribunto [17:05:53] https://www.mediawiki.org/wiki/Extension:Scribunto [17:06:18] yes, that /lua is missing [17:07:22] indeed it worked [17:07:51] but i still get that same error about backtrace [17:08:09] when i create a hello world lua module [17:39:28] here a portion of code from my localsetting.php: https://dl.dropboxusercontent.com/u/14183130/localsettings_extension.txt [17:39:52] since i'm still not figuring out how to fix that scribunto... [17:44:24] i only managed to enable that lua version in my special:version [17:44:56] here my wiki if you want to help me [17:46:26] http://www.allaze-eroler.com/w/ [17:46:39] i forgot to share that link ^^, [17:52:45] going off dinning [18:16:23] ALVARO VALES BASURA.. ESCREMENTO DE MIERDA.. TE MATARE [18:17:51] maybe a ban? [18:19:44] Platonides please remember to actually ban if you're kicking [18:21:32] Platonides: deopping you since your script is producing a join flood [18:21:51] I had disabled actual banning for those not-completely-sure-they-were-proxies :/ [18:22:20] rate limit then [18:45:20] back [18:45:26] ALVARO VALES BASURA.. ESCREMENTO DE MIERDA.. TE MATARE [18:55:43] i'm still trying to figure out why the duck my scribunto is not working... is because my special version not compatible? or it was because of database? or still did i made an error? [18:58:15] allaze-eroler: same error as before? [18:58:22] yep [18:58:25] if so, it's what I said: the program is not marked executable [18:58:28] so it can't be run [18:58:33] you need to fix the file permissions on it [18:58:42] already done [18:58:47] still happening? [18:58:55] can you report what the current permissions on it are? [18:59:02] 755 [18:59:19] wait a second, let me update the error i got [19:00:10] here: https://dl.dropboxusercontent.com/u/14183130/scribunto_bug.txt [19:00:23] i have no error in lua file [19:00:31] which i found very weird [19:00:53] ok, that's due to missing a PHP extension [19:01:04] ah! [19:01:16] i knew it have something related to extensions [19:01:26] so, what i'm missing? [19:01:31] hmm [19:02:03] You need to enable the pcntl extension [19:02:04] that is the list of every extensions i enabled: https://dl.dropboxusercontent.com/u/14183130/localsettings_extension.txt [19:02:10] not mediawiki extension [19:02:11] oh [19:02:11] php extension [19:02:15] i see [19:02:28] if you got php from a package source, check if there's a version with it enabled in the package repo [19:02:39] if you compiled php yourself, you'll need to recompile with the --enable-pcntl flag [19:03:08] my site is from OVH [19:03:36] oh wait [19:03:43] do you have root access to the server? [19:03:50] yes [19:04:25] ok, what operating system are you running (debian, ubuntu, centos, ?) [19:04:50] no idea but i'm certain it's linux system [19:05:05] yes, but knowing which is helpful :) [19:05:17] how can i know it in this case? XD; [19:05:21] Hey guys, my job queue seems stuck. I added about 55 jobs to teh queue with the ReplaceText extension and most of them ran fine, but I've got about 13 still in the queue that don't seem to be going anywhere [19:05:32] considering it's not on my computer [19:05:33] (I tried running runJobs.php manually, no dice) [19:06:09] i mean: it's on a host by OVH [19:06:53] i will try to find out what is used [19:06:59] allaze-eroler: try cat /etc/issue [19:07:13] how i execute it? [19:07:28] i only have ftpzilla [19:07:39] but i used putty for windows [19:07:50] you'll need to be ssh'ed in, yes [19:07:50] for chmod thing [19:07:56] ah i see [19:07:58] ok [19:08:07] let me try [19:08:37] malaphus: does showJobs.php report anything? [19:09:00] Skizzerz: showJobs.php by itself has only a blank line as output, doing --list shows all 13 jobs with a status of "claimed" [19:09:18] (this is version 1.27) [19:09:42] Oh actually showJobs by itself shows "0" as output [19:09:48] but 13 jobs show as claimed when I --list [19:10:45] Debian GNU/Linux 8 \n \l [19:10:51] that is what i get [19:11:46] allaze-eroler: ok thanks, can you create a page "info.php" with the contents " malaphus: what about showJobs.php --group? [19:12:27] i have to manually create the page and then upload it on my FTP? [19:12:31] hummm [19:12:31] replaceText: 0 queued; 25 claimed (25 active, 0 abandoned); 0 delayed [19:12:33] ok [19:12:36] allaze-eroler: you can do it in ssh [19:12:41] oh? [19:12:43] how? [19:12:52] Skizzerz: not sure if that's helpful? that's the only output I get when I use the --group opt [19:12:54] hum i will not risk that [19:12:58] cd /your/web/root && cat " info.php [19:13:07] oh [19:13:08] ok [19:13:13] Skizzerz: me? [19:13:18] malaphus: that indicates mediawiki *thinks* that all of those jobs are running [19:13:23] the cd thing was @ allaze-eroler [19:13:24] Kinny: Hrm [19:13:29] oops [19:13:31] Skizzerz: Hmm [19:13:45] Skizzerz: It's a pretty quick job, it did the others like instantly, so not sure why it would be hung up on these 13 [19:13:50] malaphus: do you have any php processes running in ps? [19:14:02] Nope none, the only output is that of my grep [19:14:07] ok [19:14:13] (from ps -ef | grep php) [19:14:18] without quote, right? [19:14:48] Skizzerz: I guess I can just clear the job table and resubmit, but that doesn't really tell me why they keep getting stuck heh, and there's nothing in the apache error log, etc [19:15:34] malaphus: yeah, I don't know why either; possibly a bug with the extension [19:15:43] allaze-eroler: include quotes in that command [19:16:09] you'll need to adjust /your/web/root with the actual path to your webroot [19:18:34] since the ssh thing didn't worked because of dir error, i created the php file from windows and uploaded it: http://www.allaze-eroler.com/w/info.php [19:18:56] getting connection refused [19:19:12] oh [19:19:16] wait a second [19:20:05] Skizzerz: looks to be an issue with runJobs.php, I purged the job table, resubmitted those jobs, all 13 entered queue, I ran runJobs.php to process them all, they got stuck again [19:20:07] hum are you sure you did copy and paste correctly? [19:20:17] I clicked the link [19:20:21] no copy/paste involved :P [19:20:32] Skizzerz: I purged the job table again, resubmitted all 13 again, and this time I just refreshed a wiki page over and over to run 1 job at a time per normal, and they all worked [19:20:34] malaphus: it's possible some are deadlocking? try doing 1 at a time [19:20:40] oh! XD [19:20:55] in this case, one moment [19:21:05] yeah, sounds like a deadlock to me [19:23:18] since i happen to be an artist so, i figured i could take screenshot XD; [19:27:35] ..... [19:27:40] what a dork i'm [19:27:43] one second [19:28:23] http://www.allaze-eroler.com/w/info.php try again [19:28:30] and tell me if it work [19:29:09] still no [19:29:15] ok [19:29:38] screenshots are also fine [19:29:44] mostly I'm interested in the very top box [19:40:57] boo, php has no ||= operator [19:45:38] bawolff: you can emulate it with |= probably [19:45:44] if you cast the right hand side to bool [19:46:06] That causes the result to be an integer [19:46:16] true [19:46:26] but the integer is still properly truthy/falsey [19:47:56] allaze-eroler: anyway, I have to head out. If you actually do have root access to your box, I'd recommend going the lua sandbox route rather than lua standalone [19:48:06] It is, but I don't think that's ok in this context [19:48:13] alright [19:48:30] it took me much longer than i though about screen shot... [19:49:20] or at least I think there's a high possibility people might complain in CR [19:49:33] CR? [19:56:12] code review [20:10:33] still 8 screenshots to assemble XD; [20:20:28] done! [20:20:36] here: https://dl.dropboxusercontent.com/u/14183130/info_php.png [20:21:31] someone told me it need to have pcntl enabled [20:22:06] and what did cause problem with this code error: https://dl.dropboxusercontent.com/u/14183130/scribunto_bug.txt [20:24:24] yeah, Call to undefined function pcntl_wifsignaled() means that the pnctl extension is either not compiled in or not enabled [20:24:40] i see [20:24:46] how can i fix that? [20:25:23] how is php installed? [20:25:32] no idea [20:25:38] using the OS packages? [20:26:05] debian/linux 8 \n \l [20:26:23] it's from OVH [20:26:27] apt-get install php5-pcntl ? [20:26:46] hmm… no [20:26:51] it's not named that way [20:27:19] it may be disabled for the webserver sapi [20:27:27] i see [20:27:57] in which case LuaStandaloneEngine.php shouldn't be using it [20:28:12] if php.ini is in /usr/local that wasn't a package version [20:28:18] I think [20:28:33] how can i find it? [20:28:35] nope [20:28:41] Platonides: scribunto's luastandalone has a hard dependency on pcntl according to documentation [20:28:52] you could try doing a wfDl('pcntl.so'); [20:29:02] in ssh? [20:29:21] in the php [20:29:30] eg. in LocalSettings.php [20:29:38] although there could be more suited locations [20:30:02] like php.ini :P [20:30:11] i see [20:30:14] i will try it out [20:30:16] "At least for PHP 5.3.8 which I am using, and who knows how far back, it's not a matter of "should not", it's "can not". Even though I have compiled in PCNTL with --enable-pcntl, it turns out that it only compiles in to the CLI version of PHP, not the Apache module." [20:30:20] -- https://secure.php.net/manual/en/intro.pcntl.php [20:30:29] allaze-eroler: does the file /usr/local/php7.0/lib/php-extensions/pcntl.so exist? [20:30:47] that was what I remembered [20:30:50] how can i check that? [20:30:52] you can't use it with apache sapi [20:31:04] it isn't apache [20:31:14] it's php-fpm [20:31:43] how can i check that pcntl you mentionned? [20:31:55] see if the file exists or not [20:32:01] ... [20:32:11] with what software? [20:32:28] anything that lets you look at the filesystem [20:32:39] like ftpzilla? [20:32:42] sure [20:32:49] i see [20:35:18] pfff i have no idea how the duck can i use that dir /usr/local/php7.0/lib/php-extensions/pcntl.so with which software... [20:36:12] now that gives new meaning to the phrase 'duck typing' [20:36:31] allaze-eroler: does the file exist or does the file not exist [20:36:56] and apologies for sounding brash, but if you're unable to comprehend the basic workings of a file system perhaps you should not be a server admin [20:38:00] skiz: that IS the problem: how can i check that? with which software? all i know is Putty and FTPzilla plus, it's not on my computer because it's from OVH which my mediawiki is installed [20:38:26] both of those are capable of checking that [20:38:34] i see... [20:38:40] the former via 'ls', the latter via navigating the UI [20:39:35] in ftpzilla? [20:40:58] correction: it's not ftpzilla but filezilla [20:42:28] allaze-eroler: Do you have shell access (e.g. via ssh), it will make things much easier [20:43:12] which i have putty [20:43:19] putty works [20:43:36] sorry, you said that earlier, i didn't see [20:43:40] in putty type [20:43:55] ls /usr/local/php7.0/lib/php-extensions/pcntl.so [20:44:05] and that should output stuff if the file exists [20:44:07] ok [20:46:39] can you explain me that /usr/local thing? [20:46:56] Its a directory [20:47:22] Its the traditional place where you put files related to software you compile yourself [20:48:21] i see [20:49:05] https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard has more details on how the linux file system is organized [20:50:11] i typed like this: ls /usr/local/php7.0/lib/php-extensions/pcntl.so [20:50:13] allaze-eroler: So what was the result of typing ls /usr/local/php7.0/lib/php-extensions/pcntl.so ? [20:50:18] but it said don't found [20:50:42] impossible d'accéder à /usr/local/php7.0/lib/php-extensions/pcntl.so: Aucun fichier ou dossier de ce type [20:51:02] Ok. So that means pcntl.so was not compiled when you were compiled php [20:51:49] i see [20:52:51] allaze-eroler: Did you install php yourself, or did someone set up the server for you? [20:52:58] someone [20:53:05] since it's OVH who did for me [20:53:20] it's mutualized [20:53:38] wasn't related to phpcgi? [20:54:16] i will ask the support [20:55:06] allaze-eroler: Ok, ask support to install the pcntl php extensin [20:55:08] *extension [20:55:55] i ask them from twitter XD; [20:56:10] allaze-eroler: Or you need to install the luasandbox extension [20:56:18] humm [20:56:32] let me check if i have it on my FTP [20:56:48] php extension, not mediawiki extension [20:56:55] https://www.mediawiki.org/wiki/Extension:Scribunto#LuaSandbox [20:57:10] nope [20:57:15] time to bring it up [20:58:07] With all due respect, compiling a php extension may be beyond your current linux system administration skills [20:58:20] ^ [20:59:05] i just have to change that code: $wgScribuntoDefaultEngine = 'luastandalone'; to luasandbox? [21:02:03] nevermind, i read the wiki about it [21:02:10] i have to use this code: $wgScribuntoEngineConf['luasandbox']['key'] = 'value'; [21:05:46] No, you have to compile the php extension as well [21:06:19] i see... [21:06:30] ho well, guess i have to wait in this case... [21:06:45] been 3 days i'm trying to figure it out [21:07:10] i was so close to get it sucessfull [21:07:48] just for a stupid infobox system pffff [21:19:34] i will stop messing around with my wiki for now [21:19:49] but i will come back here soon :) [21:20:04] so, see ya all [21:31:22] i'm trying to edit an old lua module i've written. my first edit caused an error, but even after rectifying the error the error message persists. why is that? [21:34:44] null-edit the page/template where it's used? might be that your job queue is not working/working too slow [22:00:45] Is there a way to apply a config option in LocalSettings if page accessed is a content page? [22:02:53] For example, apply $wgHooks['SkinBuildSidebar'][] = 'fnNewSidebarItem'; if in namespace ContentNamepaces? [22:07:56] But not to apply the config option if on the Main_Page [22:10:05] Tuxedo: inside the fnNewSidebarItem [22:10:37] you can do things like if ( $sk->getTitle()->isMainPage() ) { /*stuff for Main page here */ } else { /* other stuff */ } [22:10:48] assuming the first argument to fnNewsidebarItem is named $sk [22:11:02] !class Title [22:11:03] See https://doc.wikimedia.org/mediawiki-core/master/php/html/classTitle.html [22:25:58] bawolff: Thanks for the example. I'm trying to make this work but get some errors. If my sample code looks like this: [22:26:19] function fnNewSidebarItem( $skin, &$bar ) { [22:26:21] $out = "test"; [22:26:23] $bar[ 'hello' ] = $out; [22:26:24] return true; [22:26:26] } [22:27:02] Where is the if-block? [22:29:19] I mean in which way is it meant to be constructed? [22:30:02] https://dpaste.de/g07O/raw [22:30:27] You might want to try reading an intro to php programming tutorial, it will help make sense of some of this stuff [22:35:41] Yes you are right! Thanks for the clarification and small tutorial :-)