[02:12:16] hello? [02:12:43] i need some help installing Scribunto [02:16:59] shmn: hi, what's going on? [02:17:20] i tried adding the command as seen in the Scribunto page to "LuaStandaloneEngine.php" [02:17:39] I received this error [02:17:39] http://vaporwave.wiki/wiki/Main_Page [02:18:20] shmn: that file is probably corrupt [02:18:38] try redownloading the extension [02:18:40] this is what line 3 contains [02:18:43] "chmod a+x /home/vww/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua" [02:19:01] the 'a' it refers to is probably in the chmod command [02:19:04] yeah, that's not right [02:19:08] there's not supposed to be a chmod in that file [02:19:19] https://www.mediawiki.org/wiki/Extension:Scribunto#Installation [02:19:24] you're supposed to run that [02:19:27] not put it in the file [02:19:30] whoops [02:19:43] how would I go about running this if I have GoDaddy as a host? [02:19:51] do they give you ssh access? [02:20:47] i'll try to get that enabled [02:21:05] alternatively, do they give you some kind of file manager? [02:21:14] if they do, and it lets you control permissions, just set the execute bit on that file manually [02:22:03] I have a file manager on the site, but i don't see any means of sending commands [02:22:10] currently enabling ssh [02:23:51] "Your account contains Old Value Applications. You will have to remove these applications before enabling SSH" [02:24:30] ok, instead of doing that, follow these instructions: [02:24:31] https://www.godaddy.com/help/set-permissions-2535 [02:24:32] i have a host shared with another person, do you know if this will remove anything from other sites? [02:24:45] go to /home/vww/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua and change its permissions to have execute on for everyone [02:25:08] removing Old Value Applications probably would, so don't do that. instead try the file manager way [02:25:40] i see, thank you [02:28:24] i have the settings changed [02:28:30] i will try making a module page [02:29:26] shmn: actually, i see you have LuaSandbox installed [02:29:34] just change your config to use that instead of LuaStandalone [02:30:06] what is the difference in how they work with other users? [02:30:11] is it mainly a permissions thing? [02:30:35] LuaSandbox vs. LuaStandalone? basically, LuaSandbox is harder to install (but that's already done for you), but it's a lot faster [02:30:39] no difference permission-wise [02:30:46] they both restrict code equally [02:31:31] I see [02:32:05] so should I just edit localsettings to enable it? [02:36:02] just got localsettings changed, do i need to change permissions in the php file in luasandbox? [02:36:26] no, luasandbox should just work [02:36:58] ah, thank you [02:37:35] hmm, LuaSandbox shows up in Installed Software on your wiki, but when actually running it, it fails [02:38:27] that's odd [02:38:51] do i need to copy the common.css from Wikipedia's page or something like that? [02:39:07] no, that wouldn't be it [02:39:12] give me a second to see if i can find out what causes that [02:39:15] ok [02:41:48] okay, this is kind of a nasty hack, but open /home/vww/extensions/Scribunto/engines/LuaSandbox/Engine.php, go to line 244, and somewhere around there, you'll see "if ( !extension_loaded( 'luasandbox' ) ) {" [02:41:55] comment out that line and the 3 lines after it and try it [02:43:04] ...and now it's totally broken [02:43:16] i have no idea why your wiki was showing that you had LuaSandbox a second ago, but i guess you actually don't [02:43:17] i haven't edited anything yet, though [02:43:22] umm [02:43:45] okay, i just found a bug in Scribunto [02:44:02] i'll get that reported. in the meantime, switch back to LuaStandalone, since you don't actually have LuaSandbox [02:44:08] ok, thank you [02:44:39] i've switched back to luastandalone [02:45:45] what's the name of the extension that gives a special editor for modules/templates? [02:45:51] CodeEditor [02:45:52] CodeEditor or something? [02:45:58] ah, nice [02:46:11] it needs WikiEditor to work, btw [02:46:22] i have WikiEditor enabled [02:46:39] also, to add Module:Navbox to my wiki, do i need to use Export or can it be pasted [02:47:31] you still haven't made the lua binary executable, and nothing will work until that's done [02:47:52] I set the 'lua' file to executable in the settings [02:48:09] it's still giving this error: Exception Caught: The lua binary (/home/content/75/7120275/html/vww/extensions/Scribunto/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua) is not executable. [02:48:17] huh [02:48:24] are you sure that's the binary you did? [02:48:25] i'll check the file again [02:48:27] oh wait [02:48:31] you may have accidentally done the one in the 64 directory [02:48:32] i was using linux_64 [02:49:08] lua is now set to executable [02:49:53] okay, your Scribunto is working now [02:50:21] so now I should export the module and get that set up? [02:50:24] yep [02:50:31] alright [02:50:35] btw, if you plan to copy stuff from wikipedia, two important things: [02:50:40] you were a great help, thank you very much [02:50:43] 1. you'll need the ParserFunctions extension [02:50:52] 2. your wiki needs to have a license compatible with cc-by-sa [02:51:14] alright [02:51:43] how would I get a license set up? [02:51:56] i believe i saw some options like that in localsettings? [02:54:17] shmn: yeah, add these lines: [02:54:23] $wgRightsUrl = 'https://creativecommons.org/licenses/by-sa/4.0/'; [02:54:40] $wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by-sa.png"; [02:55:31] $wgRightsText = 'Creative Commons Attribution-Share Alike 4.0'; [02:55:34] that's it [02:55:40] thank you! [02:56:06] (and if $wgRightsPage is set, delete that line) [02:56:58] $wgRightsPage isn't set to anything, but i'll delete the line [02:57:36] the copyright has been set up, now going to install ParserFunctions [02:58:37] ParserFunctions is enabled, now installing CodeEditor [03:02:58] getting codeeditor installed, should I use Export to get the module? [03:03:09] i think you can [03:03:17] there was a bug with importing modules at one point, but i think it's fixed now [03:03:58] also, to enable WikiEditor and CodeEditor everywhere (right now they're installed but not doing anything), you'll want to add the following to LocalSettings.php: [03:04:00] $wgDefaultUserOptions['usebetatoolbar'] = 1; [03:04:01] $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; [03:04:01] $wgCodeEditorEnableCore = true; [03:04:01] $wgScribuntoUseCodeEditor = true; [03:04:34] WikiEditor used to work universally [03:04:43] not sure what went on [03:05:21] maybe you turned it on in your user's preferences [03:08:14] okay, everything seems to be working now, so you should be able to import the module [03:13:28] i'll get the module in, thanks [03:14:28] http://vaporwave.wiki/wiki/Module:Navbox [03:14:33] looks like it may work [03:17:33] I need NavBar as well, right? [03:18:11] yes, and Arguments [03:20:08] alright, thank you so much for your help! [03:21:01] is Arguments an extension? [03:21:50] no, it's another module [03:22:00] https://en.wikipedia.org/wiki/Module:Arguments [03:23:39] ah, thanks [03:25:19] how can I check this is all working? [03:25:26] is there a dummy navbox I can use? [03:25:57] never mind, i think i can figure things out from here [03:26:04] you're still missing Module:Navbar [03:26:07] i must say once again thank you for your assistance [03:26:21] oh wait, i think i imported template:navbar [03:26:54] just got Module:Navbar in [03:27:00] i'll try this stuff out more tomorrow [03:27:29] thank you so much for your help! [03:27:53] you still need to import Template:Navbox (you already have something there, but it's the wrong thing, so delete it and import from wikipedia) [03:27:55] then it will all work [03:28:09] I added the Wikipedia template already [03:28:16] the Project Transwiki one [03:28:46] that's not the right one for you though [03:28:51] i think that's the non-Scribunto one [03:29:04] can you link the correct one? [03:29:12] https://en.wikipedia.org/wiki/Template:Navbox [03:29:18] i believe the one you'e talking about needs TidyHTML [03:29:30] or something like that [03:30:07] i have to go now, thanks for your help [03:30:37] you're welcome [04:30:00] !root [04:30:00] There is no such key, you probably want to try: !nullpath, !rewriteproblems, [04:30:03] !nullpath [04:30:03] Don't use the example.com/Page_title URL scheme. It isn't supported by developers and WILL break in ways you can't foresee (and if it doesn't, it might break in the future). Some examples can be found at http://www.mediawiki.org/wiki/Manual:Wiki_in_site_root_directory#Reasons_why_putting_wiki_pages_in_the_root_directory_of_the_web_site_is_bad [04:30:09] !rewriteproblems [04:30:09] 1) Try as a fail-safe method; 2) Do not put the files into the document root; 3) Do not map the pages into the document root (see !nullpath); 4) Use different, non-overlapping paths for real files and virtual pages; 5) Do not set a RewriteBase; 6) Put all rules into the .htaccess file in the document root. See also !shorturls [13:19:02] I have a problem with updating mediawiki 1.18.1 to the current version 1.26.2. Since I have no access to the command line, I am using the web browser instead. [13:19:04] The problem is that index.php in mw-config is read, but it is displayed without styles. Still, I am able to select a language. But when I click "continue", the next page is white. The procedure doesn't find an existing installation, even though a Localsettings.php exists in the root directory. [14:41:52] morning [15:43:27] hi anyone ! [15:43:32] im trying to develop an extension [15:43:42] that will query the api of other mediawiki wikis [15:44:00] im looking at the documentation and there are many many api classes [15:44:32] can someone point me out how can i query an external api ? [15:45:10] something like "new ExternalApiQuery( 'http://en.wikipedia.org/api.php' );" [15:45:59] Are you wanting to do it in php or in js? [15:46:03] php ! [15:49:17] Sophivorus: all of the php bots do exactly this task, but they are fairly unsupoorted. You will likely want to roll your own if you cannot find something on packagist.org which would suit. [15:49:44] You don't really need a wrapper class, really [15:49:49] Depending on what requests you're doing [15:50:00] just need the wikitext from an arbitrary page [15:50:02] it's just a "standard" web request, get json, turn into php stuff [15:50:27] ah you're right .. [15:50:33] no need for a class eh ? [15:51:32] thanks Amgine and Reedy, I'll go for file_get_contents for starting :-) [15:51:38] Sophivorus: I wouldn't [15:51:51] Look at the WebRequest class that MW uses [15:53:38] Hang on, is that the right one.. [15:54:03] Reedy: does addwiki use MW internals? [15:54:25] Ah, MWHttpRequest [15:55:40] Amgine: yeah [15:56:06] kk, then Sophivorus: try this: https://packagist.org/packages/addwiki/mediawiki-api [15:56:30] Amgine: thanks again, looking into it [15:56:38] Uh [15:56:53] Amgine: I thought you meant the script used to add a wiki [15:57:11] in wmf land [15:57:27] That *is* wmfland: https://phabricator.wikimedia.org/project/profile/1490/ [15:57:54] It's not WMF stuff [15:58:06] it's addshore land :P [15:58:18] heheā€¦ okay, sorry. [15:58:23] =o [15:58:51] Amgine: it doesnt use mediawiki internals, although it models things around them. it would use them if it could [15:59:11] Amgine: that package still needs allot of work and thought, but the -base package is rather solid [15:59:33] Http::get() should be enough [15:59:34] Reedy: https://gerrit.wikimedia.org/r/#/c/281917/ [15:59:58] is pretty cool, from my pov. [16:00:41] Amgine: it would be better if I had more time to poke it [16:02:00] /dcc time from Leah to addshore [16:25:37] Shouldn't the default configuration in an extension.json file be available when setting up a ConfigFactory through ConfigFactory::getDefaultInstance()->makeConfig('main')? [16:32:07] hey, i'm back [16:32:57] I tried to make a navbox, but it seems only the text appears [16:33:15] http://vaporwave.wiki/wiki/User:Sushimon2001/Sandbox [16:34:02] Where is your css? [16:34:03] http://vaporwave.wiki/wiki/MediaWiki:Vector.css [16:34:06] http://vaporwave.wiki/wiki/MediaWiki:Common.css [16:34:31] Should these css files be made as pages, or do I need to add them to the FTP? [16:34:46] They're pages onwiki [16:34:55] https://en.wikipedia.org/wiki/MediaWiki:Common.css [16:35:00] https://en.wikipedia.org/wiki/MediaWiki:Vector.css [16:35:09] I see, thank you [16:35:14] !css [16:35:14] To change styles for your wiki, go to one of the MediaWiki:xxx.css wiki page (NOT a file) and put your custom styles there (sysop/admin rights required). MediaWiki:Common.css is for all skins and should be used for content styles. MediaWiki:Vector.css is for the Vector skin (default), etc. For more information, see !skins and https://www.mediawiki.org/wiki/Manual:Interface/CSS [16:41:05] I now have the css files saved [16:41:32] I just purged http://vaporwave.wiki/wiki/User:Sushimon2001/Sandbox [16:41:34] And it has style now [16:41:38] gj Reedy [16:42:06] alright, now it's working, thanks! [17:16:03] Hi, I'm running a REL1_26 installation with Redis used for session. I've noticed that account creations do not work anymore because we're hit by https://phabricator.wikimedia.org/T45378 (https://github.com/wikimedia/mediawiki/blob/REL1_26/includes/specials/SpecialUserlogin.php#L513). That bug hasn't been updated for over 3 years, but if someone knows about a [17:16:03] quick fix (pending a real fix) then I'd like to hear that [19:42:13] hey [19:42:41] does new user account creation require installation of plugin in mediawiki v1.27? [19:42:48] or extension rather [19:43:07] i installed new wiki with my friend, but there's no option to create new users [19:43:27] No [19:43:55] so it's a setting instead? [19:44:11] Reedy [19:44:18] Yeah [19:44:27] Have you changed group permissions? [19:44:31] It's enabled bydefault [19:44:34] Would you happen to know where to enable it? [19:44:44] Zeniitti: https://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_account_creation [19:45:09] Vulpix, thanks! That's what we were looking for :) [19:45:17] Thanks @ Reedy too :) [20:04:14] Is there a good way to flag content that could be considered outdated? [20:04:23] Say we have a local wiki for company. Things like policy are updated frequent enough they're "current" but what about the other stuff that doesn't get touched for a year or so? [20:04:35] Is there a way to track that and get some eyes on it? [20:04:54] I'm looking to assign a hand full of people to review the company wiki. [20:05:05] Mr_Queue: Special:AncientPages [20:05:22] I thought about that one. [20:09:06] create a template "{{outdated}}" that also adds the page to a maintenance category like [[Category:Outdated pages]], and use it on pages that you find are outdated. That of course requires manual tagging [22:57:14] * Leah licks Amgine. [22:57:46] You are an evil person, Leah. [22:57:53] I like that. [23:00:05] :D