Luci is not accessible after installing theme

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 --------^

should we guess which theme you installed ?

Apprently "neobird":

@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...

3 Likes

a 3+ y.o 3rd party theme, it would appear.

you could always try reset.

I tried rebooting several times but did not work.

reboot <> reset.

You mean re-install openwrt?

reset is reset, but reinstalling is obviously also an option.

1 Like

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
3 Likes

You just saved me, thank you so much. No more 3rd party themes for me…

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.