On Mon, 5 Dec 2016, Stefan Adams wrote:
> On Mon, Dec 5, 2016 at 10:43 AM, Charlie Brady < > [email protected]> wrote: > > plugin Mount => {'/server-manager/cgi-bin/syslog' => './syslog'}; > > plugin Mount => {'/server-manager/cgi-bin/systeminformation' => > > './systeminformation'}; > > > > It looks like all of the "syntax errors" are in syslog. What if you > comment that one out and let it just mount systeminformation? I get a similar looking error: root@10:/etc/e-smith/web/functions# ./index.mount daemon String found where operator expected at /etc/e-smith/web/functions/systeminformation line 145, near "get '/'" (Do you need to predeclare get?) Can't load application from file "/etc/e-smith/web/functions/systeminformation": syntax error at /etc/e-smith/web/functions/systeminformation line 145, near "get '/'" syntax error at /etc/e-smith/web/functions/systeminformation line 264, near "}" Compilation failed in require at (eval 79) line 1. root@10:/etc/e-smith/web/functions# > It sure is weird that syslog runs fine by itself but causes syntax errors > when mounted. I can't imagine how that could be! I'm in the same boat, which is why I asked for help. > "my variable masks earlier declaration"... Is it getting mounted more > than once? Not as far as I know. However there might be re-declaration of the same helpers. > It has syntax errors with the Mojolicious methods get and > post and helper... Which is why I suspected it was M::L related. > Surely there's just something tiny that's being overlooked! :O I'm hopeful that is the case.
