Hi, I uploaded a theme via Luci and after I refreshed the page I can not access Luci. Device keeps working, I can use ssh. How can I fix it?
Error
Unhandled exception during request dispatching
/usr/lib/lua/luci/ucodebridge.lua:23: /usr/lib/lua/luci/template.lua:181: Failed to execute template 'themes/neobird/header'. A runtime error occurred: /usr/lib/lua/luci/dispatcher.lua:68: attempt to index global '__entries' (a nil value) stack traceback: /usr/lib/lua/luci/dispatcher.lua:68: in function 'node' [string "/usr/lib/lua/luci/view/themes/neobird/heade..."]:20: in main chunk In error(), file [C] called from function run (/usr/lib/lua/luci/ucodebridge.lua:23) called from function [anonymous function] (/usr/lib/lua/luci/ucodebridge.lua:37)
In [anonymous function](), file /usr/share/ucode/luci/runtime.uc, line 133, byte 10:
called from function [arrow function] (/usr/share/ucode/luci/runtime.uc:141:63)
called from function render ([C])
called from function [anonymous function] (/usr/share/ucode/luci/runtime.uc:141:64)
called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:941:44)
called from anonymous function (/www/cgi-bin/luci:39:13)
` die(ex);`
Near here --------^
@ROM
You should ask from the author of that 3rd-party theme. Never heard about it here. I highly doubt that it would work with the current LuCI environment, especially as based on the error message, it seems to be lua based.
(Well, apparently that is not true, because forum search reveals that I have said the same 3 years ago...
Use ssh to connect to the device.
Run firstboot to reset the device to factory defaults.
OR
If you want to avoid the total reset, you may change the theme
uci set luci.main.mediaurlbase='/luci-static/bootstrap'
uci commit
reboot