Page MenuHomePhabricator

Cannot edit certain pages (non-existent pages) due to lua error
Closed, InvalidPublic

Description

When I visit http://en.m.wikipedia.beta.wmflabs.org/wiki/Test_ios_scrolling_2 or http://en.wikipedia.beta.wmflabs.org/wiki/Test_ios_scrolling_2
I see Lua error in package.lua at line 80: module 'Module:Category handler/data' not found.

I cannot edit the page in mobile.

Event Timeline

Jdlrobson raised the priority of this task from to Needs Triage.
Jdlrobson updated the task description. (Show Details)
Jdlrobson moved this task to Incoming on the Web-Team-Backlog board.
Jdlrobson subscribed.
Jackmcbarn edited projects, added Scribunto; removed MediaWiki-extensions-Lua.
Jackmcbarn set Security to None.
Jackmcbarn subscribed.

You can't edit that page because it doesn't exist and you don't have permission to create it. The Lua error is a red herring; you only see it because someone somehow broke MediaWiki:Noarticletext on that wiki.

@Jackmcbarn thanks for explaining that mystery! Is there a bug open against the Lua extension to report the template causing the problem so I could have worked that out myself?

Bugs in on-wiki modules or templates aren't usually reported in Phabricator.

Sure but we should make it easier to debug templates or provide a better error message no?

E.g. lua failed on rendering top level template X...

Normally (i.e. if mobile didn't insist on not loading most JS) you can click on the error message to get a popup with a full Lua backtrace.

Normally (i.e. if mobile didn't insist on not loading most JS)

Then fix it :) https://www.mediawiki.org/wiki/ResourceLoader/Writing_a_MobileFrontend_friendly_ResourceLoader_module

you can click on the error message to get a popup with a full Lua backtrace.

I didn't notice the error message was a link on desktop (as it looked like a red link). I'd suggest making that clearer.