[00:34:13] Lua stopped working on nowiki for a few minutes [00:34:53] I'm seeing this error all over WP: "Script error: The module returned a value. It is supposed to return an export table." It's also on Commons: https://commons.wikimedia.org/wiki/File:Mucha-The_Enchantress.jpg [00:35:00] Someone forgot to feed the God of Internet? [00:35:15] should be fine now [00:35:33] thanks! =) [00:36:18] Yes. Looks to be fixed now. Thx. [00:37:07] * jeblad wonders if ori is The God of Internet [00:38:26] Donkey of the Internet, maybe [00:40:16] ori: Is this a parable in which a donkey is also a god? [00:41:01] Let's hope not [00:41:39] Perhaps the parable about the donkey king [00:42:01] Back to save the world.. [00:42:08] * jeblad kazzzing [00:47:34] there still pages with "Script error: The module returned a value. It is supposed to return an export table.", see https://en.wikipedia.org/wiki/Category:Pages_with_script_errors [00:47:44] a purge seems to fix them [00:48:00] yes, it was broken for a little while [08:45:50] I have installed wikimedia and added LocalSettings in core directory. When I redirec to index .php I got Fatal Error of 'MW execption'. [08:46:15] It show the following error. [08:46:17] [b0e9543b] /mediawiki/index.php MWException from line 182 of /var/lib/mediawiki/includes/Hooks.php: Invalid callback MobileFrontendHooks::onBeforePageRedirect in hooks for BeforePageRedirect Backtrace: #0 /var/lib/mediawiki/includes/OutputPage.php(2244): Hooks::run(string, array) #1 /var/lib/mediawiki/includes/MediaWiki.php(691): OutputPage->output() #2 /var/lib/mediawiki/includes/MediaWiki.php(474): MediaWiki->main() #3 /v [08:46:24] What should I do? [14:46:15] hi, is there someone good with js and ResourceLoader? [15:36:19] supernino: probably, do you have a question? [15:41:00] legoktm; it would be more than just a qs :) I'd need a little code examination of a french WP tool, do you have some time? :) [15:42:12] supernino: maybe, depends how big it is ;) link? [15:42:43] ok let's start with this https://it.wikipedia.org/wiki/MediaWiki:Gadget-LiveRC_1x.js [15:43:53] they are customisation of https://fr.wikipedia.org/wiki/MediaWiki:Gadget-LiveRC.js [15:44:30] since ResourceLoader implementation they are no longer recognized [15:50:42] the tool loads regularly, bust just that "function LiveRC_getSiteCustom(){... " doesn't seem to work anymore [16:01:41] ah, because resourceloader modules are wrapped in a closure, so it's not a global function [16:01:57] try adding window.LiveRC_getSiteCustom = LiveRC_getSiteCustom; after the function definition? [16:02:00] supernino: ^ [16:03:17] on the same line? [16:07:18] legoktm, [16:07:20] function LiveRC_getSiteCustom(){ [16:07:21] window.LiveRC_getSiteCustom = LiveRC_getSiteCustom [16:07:23] // Here comes the configuration [16:07:24] try{ [16:07:27] like this? [16:14:01] supernino: add it right before the // line [16:15:10] legoktm: do i need to put semicolons? [16:15:19] yes [16:16:41] } [16:16:43] window.LiveRC_getSiteCustom = LiveRC_getSiteCustom; [16:16:44] // [16:17:40] yep [16:18:40] legoktm, tried, no effects [16:19:49] legoktm [16:19:55] wait [16:20:04] you might need to wait ~5 minutes [16:20:07] it works :) [16:20:15] woot [16:20:54] (this is documented at https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_%28users%29#Legacy_gadgets btw) [16:22:32] i was checking it, but since i'm at an elementary level didn't immediately get where to put that fixing line [16:22:32] btw thank you enormously [16:23:46] thanks supernino for fixing LiveRC, it.wiki will be immensely grateful :) [16:25:26] Nemo_bis, thank him. i was trying this morning but i was putting the magic line at the wrong place xD [16:54:04] is WMF labs down at the minute? [16:54:43] It may be misbehaving while the OpenStack upgrade takes place. [16:55:00] And yes, I can't ssh to bastion. [16:57:13] Krenair, ok, thanks a lot [17:02:33] Cookies52: Krenair: 10:03 < andrewbogott> YuviPanda: nova-network crashed during the upgrade… should be back and happy now [17:24:04] hi [17:24:19] I have a question about gadgets and resource loader [17:24:28] well, actually several questions [17:24:57] strainu_, ask, and ususally someone appears to answer later :) [17:25:17] first, why are some gadgets not loaded even if [ResourceLoader] has been added? [17:25:37] I'm trying to debug diacritice-vechi from https://ro.wikipedia.org/wiki/MediaWiki:Gadgets-definition [17:25:45] and it seems it doesn't get loaded [17:27:48] strainu_, well the first thing I see when I look at it is Uncaught TypeError: $.cookie is not a function [17:27:53] Are you sure that's not what's breaking things? [17:28:39] oh, wait, that might be something else actually. one moment [17:28:59] Krenair: i'm not seeing that in FF 40 [17:29:38] what I see is: "Gadget 'diacritice vechi' not loaded. Please migrate it to ResourceLoade" [17:30:45] it's a one-liner, global variable using window.name, as required by https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_%28users%29 [17:31:06] okay, got rid of that. was an issue on my side [17:31:33] https://ro.wikipedia.org/wiki/Special:Gadgeturi says "Gadget is not loaded. Please migrate to ResourceLoader. (Learn more)" [17:32:16] yep, I see that [17:32:17] Although you have clearly added the ResourceLoader option [17:34:37] strainu_, try now [17:34:49] I ran GadgetRepo::singleton()->purgeDefinitionCache() [17:36:01] This is *supposed* to happen every time you edit the definition page. [17:37:26] now it loads [17:37:34] thanks, will try to debug further [17:53:40] Krenair: can you do that again? [17:53:49] and...should I log a bug for this? [17:54:00] Yes and yes [17:54:39] strainu_, done [17:54:52] 10x [18:56:44] Krenair: can I ask for another force purge? [18:57:29] Did you file the task? :p [19:12:53] Hi [19:13:03] We have a module problem on Spanish Wikipedia [19:13:08] "Error de secuencia de comandos: el módulo devolvió un valor . Debería devolver una tabla de exportación. No hay más detalles disponibles." [19:13:19] Example: https://es.wikipedia.org/wiki/Diosdado_Cabello [19:13:55] The_Photographer, I don't see on that page what you quoted [19:14:09] Neither do I. [19:14:12] Tried purging it? [19:14:27] Ctrl+F5 error is gone [19:14:34] Why happend that? [19:14:51] Someone broke it yesterday and pages rendered during that time had the error. [19:16:48] There arent a test server? [19:17:00] Why test it in production environment? [19:17:18] It wasn't a test. [19:17:29] ok [19:17:31] Thanks [19:19:37] Hey, just had a report of a script error of some kind on , anyone else seeing it? [19:22:56] No. [19:32:25] Nemo_bis, ok, thanks for double checking [19:37:00] Cookies52, some script errors occurred yesterday and got cached [19:37:08] before reporting them, check that they don't go away when you purge the page [19:40:04] Krenair, ah ok, sure thing [19:45:40] https://www.mediawiki.org/wiki/Template:Extension displays "Lua error in Module:Protection_banner at line 770: attempt to call upvalue 'makeFileLink' (a nil value)." [19:46:02] doesn't happen on an unprotected template [19:49:33] hashar imported enwiki's version of Module:Protection_banner a day ago over Mr.Stradivarius version [19:50:13] you can view source despite the error [20:54:26] Krenair: yes, I logged T110395 :) [20:54:35] a bit late, but I hadn't forgotten about it [20:55:03] still want the purge? [20:55:21] neah, that problem was a JS error. Fixed it [20:55:27] 10x [20:55:32] neah? [20:55:39] no :) [20:55:42] ok :) [20:55:51] thanks for filing a task [20:55:58] "nope" in Romanian, to be precise [20:56:15] sure [21:53:08] Odd..I don't subscribe to this task, yet I got a notification of Aklapper's comment. https://phabricator.wikimedia.org/T85590#1577200