jerrykuku / luci-theme-argon

Argon is a clean and tidy OpenWrt LuCI theme that allows users to customize their login interface with images or videos. It also supports automatic and manual switching between light and dark modes.
Apache License 2.0
3.94k stars 786 forks source link

openwrt官方main分支和23.05分支编译安装本项目master分支,访问路由器报错 #455

Closed wzming closed 10 months ago

wzming commented 10 months ago

Describe the bug 访问路由器地址报以下错误

Unable to render any theme header template, last error was: Unable to compile 'themes/argon/header' as Lua template:

left-hand side is not a function In [anonymous function](), file /usr/share/ucode/luci/runtime.uc, line 106, byte 62: called from function [anonymous function] (/usr/share/ucode/luci/runtime.uc:166:60) called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:895:3) called from anonymous function (/www/cgi-bin/luci:39:13)

vm.get('_G', 'luci', 'ucodebridge', 'compile').call(path); Near here ------------------------------------------------------------------^

To Reproduce Steps to reproduce the behavior:

  1. 使用openwrt main或者23.05分支编译(x86_64)安装本项目master分支
  2. 更新固件后访问软路由地址
  3. 出现以上错误

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

Openwrt (please complete the following information):

Desktop (please complete the following information):

Additional context 我是用github actions每天编译,偶尔更新,上次更新是11.1号,argon没有问题可以访问web,今天看某个项目更新了,就想着更新一下,结果就这样了.

wzming commented 10 months ago

image

SpeedPartner commented 10 months ago

本主题master分支并已经长时间未更新源码,最近也只是更新了README.md(自述文件); 优先考虑是OpenWrt官方对LuCI的改动;或者是其他LuCI插件导致的问题.

wzming commented 10 months ago

本主题master分支并已经长时间未更新源码,最近也只是更新了README.md(自述文件); 优先考虑是OpenWrt官方对LuCI的改动;或者是其他LuCI插件导致的问题.

我猜测应该是openwrt官方更新了luci相关依赖,没去细翻相关项目代码了,我提issues是想跟大佬说声,有空看看能否兼容更新一下😁

SpeedPartner commented 10 months ago

据其他人反馈,似乎是因为OpenClash的更新改炸了LuCI导致的,建议尝试卸载OpenClash的LuCI App,或者编译时尝试取消OpenClash的LuCI App后再测试下.

wzming commented 10 months ago

据其他人反馈,似乎是因为OpenClash的更新改炸了LuCI导致的,建议尝试卸载OpenClash的LuCI App,或者编译时尝试取消OpenClash的LuCI App后再测试下.

哈🤣,还真的是,我看报的错没什么信息就没往其它插件上想,我去openclash看issues看到这个话题了,打扰了哈