Projecte

General

Perfil

Actions

Error #111

tancat

LuCI breaks when login.

Afegit per Simó Albert i Beltran fa casi 13 anys. Actualitzat fa més de 12 anys.

Estat:
Tancat
Prioritat:
Urgent
Categoria:
WEB interface
Versió prevista:
-
Inici:
03-03-2012
Data de venciment:
% realitzat:

100%

Temps previst:
Temps invertit:

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>

Actions #1

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>

http://luci.subsignal.org/trac/browser/luci/branches/luci-0.10/themes/openwrt/luasrc/view/themes/openwrt.org/header.htm#L80

Actions #2

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.

Actions #3

Actualitzat per Simó Albert i Beltran fa casi 13 anys

  • Estat ha canviat de Resolt a Tancat
Actions #4

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

From: http://luci.subsignal.org/trac/browser/luci/trunk/modules/admin-full/luasrc/controller/admin/status.lua

However they are using _() instead translate(). I don't know yet if it is the same funcion or they are different.

Actions #5

Actualitzat per Pau Escrich fa més de 12 anys

I created the next issue related with this topic: http://qmp.cat/issues/133

Actions

També disponible a: Atom PDF