[luci] (hopefully) basic question on writing modules

Leith Brandeland leith98b at gmail.com
Thu Oct 8 00:41:01 CEST 2009


Just to follow up - clearing the cache resolved the problem.

Thank you again for the help!

On Wed, Oct 7, 2009 at 2:57 PM, Jo-Philipp Wich <xm at subsignal.org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> > Yes, the exact error message was "Not found"  Sorry for not providing
> that.
> Ok.
>
> > I did not clear the cache, but will try that.
> Ok.
>
> > From your response, though, I'm inferring that by clearing the cache and
> if
> > the module line is correct it should work.  Is that a valid assumption?
>
> Yes. "Not found" usually means that your controller file was not
> processed at all. Possible Reasons are:
>
>  - Syntax errors (they're silently ignored otherwise the server would
>    crash during startup).
>
>  - Module line does not patch (e.g. "luci.controller.foo" but file is
>    .../controller/foo/bar.lua).
>
>  - Missing index() function in that file.
>
>
> ~ JoW
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkrM8poACgkQdputYINPTPMUDQCgkAGz5aMcYmXtwiIIofxHwN5M
> vbsAn3qioRku2P5VjPgCwsi8awG+2iCy
> =5APV
> -----END PGP SIGNATURE-----
> _______________________________________________
> luci mailing list
> luci at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/luci
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.subsignal.org/pipermail/luci/attachments/20091007/ef228f4f/attachment-0001.htm 


More information about the luci mailing list