LuttyYang / luci-theme-material

this is a openwrt luci theme
330 stars 94 forks source link

500 Internal Server Error on header.htm while calling global 'url' #49

Open hplc opened 6 years ago

hplc commented 6 years ago

Status: 500 Internal Server Error /usr/lib/lua/luci/dispatcher.lua:433: Failed to execute function dispatcher target for entry '/'. The called action terminated with an exception: /usr/lib/lua/luci/dispatcher.lua:433: Failed to execute firstchild dispatcher target for entry '/admin'. The called action terminated with an exception: /usr/lib/lua/luci/dispatcher.lua:433: Failed to execute function dispatcher target for entry '/admin/status'. The called action terminated with an exception: /usr/lib/lua/luci/dispatcher.lua:433: Failed to execute template dispatcher target for entry '/admin/status/systemstatus'. The called action terminated with an exception: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'admin_status/systemstatus'. A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'header'. A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'themes/material/header'. A runtime error occured: [string "/usr/lib/lua/luci/view/themes/material/head..."]:154: attempt to call global 'url' (a nil value) stack traceback: [C]: in function 'assert' /usr/lib/lua/luci/dispatcher.lua:433: in function 'dispatch' /usr/lib/lua/luci/dispatcher.lua:168: in function </usr/lib/lua/luci/dispatcher.lua:167>

admin@openwrt:/usr/lib/lua/luci# opkg list-installed|grep luci luci - git-17.136.58961-13aa5ff-1 luci-app-serialserver - 1.0-1 luci-base - git-17.136.58961-13aa5ff-1 luci-i18n-base-en - git-17.136.58961-13aa5ff-1 luci-i18n-serialserver-en - 1.0-1 luci-lib-ip - git-17.136.58961-13aa5ff-1 luci-lib-nixio - git-17.136.58961-13aa5ff-1 luci-mod-admin-full - git-17.136.58961-13aa5ff-1 luci-proto-ipv6 - git-17.136.58961-13aa5ff-1 luci-proto-ppp - git-17.136.58961-13aa5ff-1 luci-theme-bootstrap - git-17.136.58961-13aa5ff-1 luci-theme-material - 0.2.19-1

guhongyeying commented 6 years ago

解决了吗

hplc commented 6 years ago

Check this PR: https://github.com/LuttyYang/luci-theme-material/pull/50

On Thu, Jan 25, 2018 at 3:24 PM, wanghongying notifications@github.com wrote:

解决了吗

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/LuttyYang/luci-theme-material/issues/49#issuecomment-360382776, or mute the thread https://github.com/notifications/unsubscribe-auth/AAsnYIsC-ykXGUrTpfrK9M4Oetr9s9Jmks5tOCwXgaJpZM4QrEPl .

guhongyeying commented 6 years ago

html error log /usr/lib/lua/luci/dispatcher.lua:433: Failed to execute function dispatcher target for entry '/'.

  | The called action terminated with an exception:   | /usr/lib/lua/luci/dispatcher.lua:433: Failed to execute firstchild dispatcher target for entry '/admin'.   | The called action terminated with an exception:   | /usr/lib/lua/luci/dispatcher.lua:433: Failed to execute function dispatcher target for entry '/admin/status'.   | The called action terminated with an exception:   | /usr/lib/lua/luci/dispatcher.lua:433: Failed to execute template dispatcher target for entry '/admin/status/overview'.   | The called action terminated with an exception:   | /usr/lib/lua/luci/template.lua:97: Failed to execute template 'admin_status/index'.   | A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'header'.   | A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'themes/material/header'.   | A runtime error occured: [string "/usr/lib/lua/luci/view/themes/material/head..."]:37: attempt to call global 'url' (a nil value)   | stack traceback:   | [C]: in function 'assert'   | /usr/lib/lua/luci/dispatcher.lua:433: in function 'dispatch'   | /usr/lib/lua/luci/dispatcher.lua:168: in function </usr/lib/lua/luci/dispatcher.lua:167>

guhongyeying commented 6 years ago

I do not know! I wish you Happy birthday, happy new year, happy family, Think of everything。 The problem has been solved

guhongyeying commented 6 years ago

please close the proble