[luci] Get ipaddr

Jo-Philipp Wich xm at subsignal.org
Fr Sep 5 14:18:44 CEST 2008


Hi.

> ipaddr = s:option(DummyValue, "ipaddr", translate("addresses"))
...
> /usr/lib/lua/luci/model/cbi/uvc_streamer.lua:9: attempt to index global 's' (a nil value)


Looks like the variable "s" isn't initialized properly.
You should have a line like:

   s = Map("blah", "blah")

... somewhere before.



Greetings,
JoW


More information about the luci mailing list