Misstar tools 好像不能用了,提供一個臨時解決辦法。
開發版升級到最新後 2.23.64 ,點擊MT工具箱會提示出錯 。。。
類似於這種:
研究了一下,是 /web/misstar/index 沒有在luci中注冊 ,翻代碼後發現,index.lua 。。。 等等係統自帶的lua文件都加密了 。。。
所以,安裝腳本不能往裏麵寫入文件配置。
臨時解決辦法:
在 /usr/lib/lua/luci/controller/web 目錄下新建一個文件 index2.lua
內容如下:
module("luci.controller.web.index2", package.seeall)
function index()
local page = node("web","misstar")
page.target = firstchild()
page.title = ("")
page.order = 100
page.sysauth = "admin"
page.sysauth_authenticator = "jsonauth"
page.index = true
entry({"web", "misstar", "index"}, template("web/setting/misstar/index"), _("Tools"), 81)
entry({"web", "misstar", "add"}, template("web/setting/misstar/add"), _("Tools"), 82)
entry({"web", "misstar"}, alias("web","misstar","index"), _("Tools"), 80)
entry({"web", "misstar", "ss"}, template("web/setting/applications/ss/html/ss"), _("Tools"), 85)
end
然後執行一下這個命令:
rm -rf /tmp/luci-indexcache /tmp/luci-modulecache/*
應該可以正常訪問了。
出錯代碼是這樣的:No page is registered at '/web/misstar/index'. If this url belongs to an extension, make sure it is properly installed. If the extension was recently installed, try removing the /tmp/luci-indexcache file.
給黑皮大哥頂一個,但是感覺好困難的步驟~~
最後更新:2017-12-22 11:27:59