[luci] 500 Internal Server Error

Steven Barth steven at midlink.org
Mi Sep 3 16:56:54 CEST 2008


Hi,
> function index()
>     entry({"click", "here", "now"}, call("action_tryme"), "Click here", 
10)
>     entry({"my", "new", "template"}, template("ffc-
config/helloworld.htm"),
> "Hello world", 20) end
>
> function action_tryme()
>     luci.http.prepare_content("text/plain")
>     luci.http.write("Haha, rebooting now...")
> end
sorry for this rather "insane" error message. It should better be "No 
such template: ffc-config/helloworld.htm".

The reason is the ".htm" is automatically appended to the 
templatename, so please ommit it in the entry-call and write 
template("ffc-config/helloworld") instead.

Greetings


More information about the luci mailing list