Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
344 stars 52 forks source link

Stats page broken with WAN off #204

Closed FrancYescO closed 5 years ago

FrancYescO commented 5 years ago

Some checks are needed to hide the graphs on stat page if WAN connection is off.

Actually on AGTHP 1.2.0 GUI 8.7.99 stats.lp page is not loading at all with this error:

Fri Aug 31 16:47:17 2018 daemon.err nginx: 2018/08/31 16:47:17 [error] 14775#0: *6 lua entry thread aborted: runtime error: [string "003_graph.lp"]:26: attempt to index local 'file' (a nil value)
stack traceback:
coroutine 0:
        [string "003_graph.lp"]:26: in function 'content'
        /usr/lib/lua/web/lp.lua:171: in function 'include'
        [string "stats.lp"]:37: in function 'content'
        /usr/lib/lua/web/lp.lua:171: in function 'include'
        [string "/gateway.lp"]:34: in function 'content'
        /usr/lib/lua/web/web.lua:249: inFri Aug 31 16:47:19 2018 daemon.notice wansensing: (L2Sense) runs L2Main.check(timeout)
Ansuel commented 5 years ago

type of connection ?

FrancYescO commented 5 years ago

None, WAN disconnected.


From: Ansuel Smith notifications@github.com Sent: Saturday, September 22, 2018 3:15:43 PM To: Ansuel/tch-nginx-gui Cc: Francesco M; Author Subject: Re: [Ansuel/tch-nginx-gui] Stats page broken with WAN off (#204)

type of connection ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Ansuel/tch-nginx-gui/issues/204#issuecomment-423743425, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEXNgbMDxayTVC-iS63mqLpOwa4RK7Eiks5udjf_gaJpZM4W1P-0.

Ansuel commented 5 years ago

try with latest version 8.8.1

FrancYescO commented 5 years ago

seems ok with 8.8.13