Cannot access OpenWrt after install theme

hi.. dear all
need your help to rectify my mi4a giga got problem after i download the theme package manually. now cannot even login to router got error message . how to resolve? tq

error message >>> 


```/usr/lib/lua/luci/template.lua:97: Failed to execute template 'sysauth'.
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/material/header'.
A runtime error occurred: [string "/usr/lib/lua/luci/view/themes/material/head..."]:20: attempt to call field 'node_childs' (a nil value)
stack traceback:
	[string "/usr/lib/lua/luci/view/themes/material/head..."]: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:756: 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:756: in function 'include'
	[string "/usr/lib/lua/luci/view/sysauth.htm"]: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): ?
	(tail call): ?
	/usr/lib/lua/luci/dispatcher.lua:985: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:479: in function </usr/lib/lua/luci/dispatcher.lua:478>

ssh to it, and run firstboot, it'll reset the device.
you could also try to uninstall the theme/package, using opkg.

1 Like

Meaning that the command " first boot" will reset everything on the router? Rite?
How to uninstal the themel using opkg?

yes it will reset it, just as i said.

root@OpenWrt0:~# opkg
opkg must have one sub-command argument
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:

Package Manipulation:
        update                  Update list of available packages
        upgrade <pkgs>          Upgrade packages
        install <pkgs>          Install package(s)
        configure <pkgs>        Configure unpacked package(s)
        remove <pkgs|regexp>    Remove package(s)
        flag <flag> <pkgs>      Flag package(s)
        <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

opkg remove package name

Example -

opkg remove kmod-nf-ipt6

If you don't remember the package name...

opkg list-installed

1 Like

Your methods help me uninstall the theme. The theme name is "material" managed to removed it using ssh. Thank you very much for all the advice and guidance. Thank you all.

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