找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3567|回复: 0

openwrt login error

[复制链接]
发表于 2018-11-23 14:58 | 显示全部楼层 |阅读模式
登录界面出现了如下信息/usr/lib/lua/luci/dispatcher.lua:609: bad argument #1 to 'pairs' (table expected, got nil)stack traceback:        [C]: in function 'pairs'        /usr/lib/lua/luci/dispatcher.lua:609: in function 'createtree'        /usr/lib/lua/luci/dispatcher.lua:261: in function 'dispatch'        /usr/lib/lua/luci/dispatcher.lua:127: in function </usr/lib/lua/luci/dispatcher.lua:126>登录不了路由器了。

请问要怎么该dispatch.lua文件才可以?

        local stat, err = util.coxpcall(function()
                dispatch(context.request)     #127
        end, error500)

        http.close()

        --context._disable_memtrace()
end




local c = ctx.tree
        local stat
        if not c then
                c = createtree()  #261
        end



function createtree()
        if not index then
                createindex()
        end

        local ctx  = context
        local tree = {nodes={}, inreq=true}
        local modi = {}

        ctx.treecache = setmetatable({}, {__mode="v"})
        ctx.tree = tree
        ctx.modifiers = modi

        -- Load default translation
        require "luci.i18n".loadc("base")

        local scope = setmetatable({}, {__index = luci.dispatcher})

        for k, v in pairs(index) do   #609
                scope._NAME = k
                setfenv(v, scope)
                v()
        end




请大神指点迷津。

我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 08:38

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表