Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gluon-web-wifi-config: fetching information returns Internal Server Error #1809

Closed
blocktrron opened this issue Sep 4, 2019 · 3 comments
Closed
Labels
0. type: bug This is a bug
Milestone

Comments

@blocktrron
Copy link
Member

Bug report

What is the problem?
WiFi config is not displayed when accessing the WiFi tab in advanced setup mode.
Instead only a box with the following content is displayed:

Failed to execute dispatcher target for entry '/admin/wifi-config'.
The called action terminated with an exception:
/usr/lib/lua/simple-uci.lua:22: attempt to index local 'c' (a nil value)

Viewing the recent commits for lua-simple-uci, whis commit could be interesting: freifunk-gluon/packages@cf0619a#diff-951cae4df37f09f01930d67db0316037

What is the expected behaviour?
WiFi config should be visible.

Gluon Version:
recent master

Site Configuration:
https://git.darmstadt.ccc.de/ffda/site

@blocktrron
Copy link
Member Author

After changing the Line https://github.com/freifunk-gluon/gluon/blob/master/package/gluon-web-wifi-config/luasrc/lib/gluon/config-mode/model/admin/wifi-config.lua#L139 from

ht.default = uci.get('gluon', 'wireless', 'outdoor_' .. radio .. '_htmode') or 'default'

to

ht.default = uci:get('gluon', 'wireless', 'outdoor_' .. radio .. '_htmode') or 'default'

the WiFi configuration is displayed as expected again.

@NeoRaider was that the only issue or does lua-simple-uci have a bug here?

@rotanid rotanid added the 0. type: bug This is a bug label Sep 5, 2019
@rotanid rotanid added this to the 2019.1 milestone Sep 5, 2019
@mweinelt mweinelt mentioned this issue Sep 5, 2019
6 tasks
@neocturne
Copy link
Member

The bug is in wifi-config, simple-uci is working as expected.

@blocktrron
Copy link
Member Author

@NeoRaider thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. type: bug This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants