Error #111
tancatLuCI breaks when login.
Descripció
Using testing branch at 0d8a36523db1a9479ae7ffc0296aa6a02d7c5ff6
When login to LuCI with Epiphany then the qMp page crashes with next error:
This page contains the following errors:
error on line 76 at column 57: expected '>'
Below is a rendering of the page up to the first error.
When login to LuCI with Iceweasel then it says:
Error d'anàlisi XML: no ben format
Ubicació: http://172.30.22.1/cgi-bin/luci
Número de línia 76, Columna 57: /usr/lib/lua/luci/dispatcher.lua:195: in function </usr/lib/lua/luci/dispatcher.lua:194>
---------------------------------------------------------------^
And the XHTML code contents:
Status: 500 Internal Server Error
/usr/lib/lua/luci/dispatcher.lua:449: Failed to execute function dispatcher target for entry '/'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:449: Failed to execute call dispatcher target for entry '/qmp'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:105: Failed to execute template 'qmp/overview'.
A runtime error occured: /usr/lib/lua/luci/template.lua:105: Failed to execute template 'header'.
A runtime error occured: /usr/lib/lua/luci/template.lua:105: Failed to execute template 'themes/openwrt.org/header'.
A runtime error occured: /usr/lib/lua/luci/i18n.lua:58: bad argument #1 to 'lookup' (string expected, got userdata)
stack traceback:
[C]: in function 'assert'
/usr/lib/lua/luci/dispatcher.lua:449: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:195: in function </usr/lib/lua/luci/dispatcher.lua:194>
Actualitzat per Simó Albert i Beltran fa casi 13 anys
Can not use translate function in the entry function call in controller source:packages/qmp-small-node/files/usr/lib/lua/luci/controller/qmp.lua?rev=9824ca0714d76529c7e6fcb24bb90e7cb10a6c2e#L38.
These were added in the 9824ca0714d76529c7e6fcb24bb90e7cb10a6c2e
The translate function for each title entry is called in view /usr/lib/lua/luci/view/themes/openwrt.org/header.htm at line 80:
<a href="<%=nodeurl(prefix, v, nnode.query)%>"><%=striptags(translate(nnode.title))%></a>
Actualitzat per Simó Albert i Beltran fa casi 13 anys
- Estat ha canviat de En progrés a Resolt
- % realitzat ha canviat de 0 a 100
Aplicat en el conjunt de canvis f3b079119025d47fdd8090a384609697247eebb7.
Actualitzat per Simó Albert i Beltran fa casi 13 anys
- Estat ha canviat de Resolt a Tancat
Actualitzat per Pau Escrich fa més de 12 anys
In the luci admin module is used the translation function for the entry in the controller file:
entry({"admin", "status"}, alias("admin", "status", "overview"), _("Status"), 20).index = true
However they are using _() instead translate(). I don't know yet if it is the same funcion or they are different.
Actualitzat per Pau Escrich fa més de 12 anys
I created the next issue related with this topic: http://qmp.cat/issues/133