Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用design主题后发生错误 #436

Open
bb955 opened this issue Nov 21, 2023 · 2 comments
Open

使用design主题后发生错误 #436

bb955 opened this issue Nov 21, 2023 · 2 comments

Comments

@bb955
Copy link

bb955 commented Nov 21, 2023

上传design修改为这个主题后,路由器页面发生错误。
截屏2023-11-21 下午5 24 33

请问如何急救

@bb955 bb955 changed the title 使用design发生错误 使用design主题后发生错误 Nov 21, 2023
@kenzok8
Copy link
Owner

kenzok8 commented Nov 21, 2023

SSH连接
1 删除错误主题

opkg info luci-theme*
opkg remove luci-theme-design

2 openwrt系统下多余的无效主题名

nano /etc/config/luci

3 目录下删除失效包

/usr/lib/lua/luci/view/themes/

@bb955
Copy link
Author

bb955 commented Nov 21, 2023

OpenWrt 更改主题后无法进后台,主要原因是新主题与 OpenWrt 版本不兼容,导致 Luci 后台页面无法加载。解决方法如下:

  1. 重启 OpenWrt

重启 OpenWrt 可能会修复一些临时性错误,尝试一下。

  1. 关闭 Luci 缓存

Luci 使用缓存来加快页面加载速度,如果缓存中存储了有问题的主题信息,可能会导致无法加载后台页面。可以通过以下命令关闭 Luci 缓存:

uci set luci.ccache.enable=0
uci commit luci
  1. 卸载新主题

如果重启和关闭缓存都无法解决问题,可以尝试卸载新主题。可以通过以下命令卸载主题:

opkg remove luci-theme-[主题名称]

例如,要卸载 Argon 主题,可以使用以下命令:

opkg remove luci-theme-argon

卸载主题后,OpenWrt 将恢复默认主题。

  1. 更新 OpenWrt 到最新版本

如果您使用的是旧版本的 OpenWrt,可以尝试更新到最新版本。最新版本的 OpenWrt 通常会修复一些已知的兼容性问题。

  1. 使用其他主题

如果您确定新主题与 OpenWrt 版本兼容,但仍然无法加载后台页面,可以尝试使用其他主题。

您可以从 OpenWrt 官方仓库或第三方仓库下载主题。

以下是一些常用的主题:

  • 默认主题:OpenWrt 自带的主题,兼容性较好。
  • Aragon:一款简洁现代的主题。
  • Material:一款基于 Material Design 的主题。
  • Paper:一款扁平设计的主题。

希望以上方法能帮助您解决问题。

@bb955 bb955 closed this as completed Nov 21, 2023
@bb955 bb955 reopened this Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants