first of all i'm newbie in openwrt and my english is newbie too, i just wanna use a theme but when i reboot, this is happening. somebody help me
hnyman
July 29, 2021, 6:14pm
2
There is no official freifunk-generic theme in 21.02 or master.
The third-party unsupported theme is known to be broken.
(the Freifunk feed with the broken theme is still present in 19.07, but the contents of their repo are outside OpenWrt control)
opened 11:47AM - 11 Apr 21 UTC
closed 12:18PM - 11 Apr 21 UTC
Whenusing luci-theme-freifunk-generic, the interface returns an error.
In… fo:
OpenWrt 19.07.7 r11306-c4a6851c72 / LuCI openwrt-19.07 branch git-21.044.30835-34e0d65
Model: Onion Omega2+
Architecture: MediaTek MT7688 ver:1 eco:2
```
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'admin_status/index'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'header'.
A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'themes/freifunk-generic/header'.
A runtime error occurred: [string "/usr/lib/lua/luci/view/themes/freifunk-gene..."]:20: attempt to call field 'node_childs' (a nil value)
stack traceback:
[string "/usr/lib/lua/luci/view/themes/freifunk-gene..."]:20: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function 'render'
/usr/lib/lua/luci/dispatcher.lua:755: in function 'include'
[string "/usr/lib/lua/luci/view/header.htm"]:3: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function 'render'
/usr/lib/lua/luci/dispatcher.lua:755: in function 'include'
[string "/usr/lib/lua/luci/view/admin_status/index.h..."]:1: in main chunk
stack traceback:
[C]: in function 'error'
/usr/lib/lua/luci/template.lua:97: in function </usr/lib/lua/luci/template.lua:85>
(tail call): ?
/usr/lib/lua/luci/dispatcher.lua:1020: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:984: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:478: in function </usr/lib/lua/luci/dispatcher.lua:477>
```
so do you have any solution from this problem sir?
hnyman
July 30, 2021, 4:14am
4
Use a supported normal theme...
Bootstrap, Openwrt or Openwrt-2020
Use opkg from SSH console to return to the default bootstrap theme, or to install e.g. luci-theme-openwrt-2020.
opkg update
opkg install luci-theme-openwrt-2020
The theme is set with /etc/config/luci, so you can also edit that config file directly (with an text editor like nano or vi).
The relevant lines should look like this.
The mediaurlbase line selects the theme from the installed ones:
root@router1:~# cat /etc/config/luci
config core 'main'
option lang 'auto'
option resourcebase '/luci-static/resources'
option ubuspath '/ubus/'
option mediaurlbase '/luci-static/bootstrap'
...
config internal 'themes'
option Bootstrap '/luci-static/bootstrap'
option OpenWrt2020 '/luci-static/openwrt2020'