Re: [webmin-devel] Using Inline in a Webmin module

Chris Nighswonger <[email protected]> Fri, 8 Mar 2013 09:19:10 -0500
Newsgroups gmane.comp.web.webmin.devel
Message-ID <CAP3yOom9cDkq0Ln5Q=GE0LWgnTcO0biOdYpxFT=byaHuDHwF2g@mail.gmail.com>
On Fri, Mar 8, 2013 at 8:07 AM, Chris Nighswonger
<[email protected]> wrote:
> It happens when I call init_config()
>
> A brief reading of that sub seems to indicate plenty of potential for
> some sort of change which would result in the problem I'm seeing.
> Exactly what it is, I don't know.
>

Ok. I finally got my environment setup to execute my Webmin module
cgi's from the cli.

It is not init_config().

The script produces the expected results when called from the cli.

It errors out when loaded into the browser with:

Can't locate object method "new" via package "FooBar" (perhaps you
forgot to load "FooBar"?) at ./my_module-lib.pl line 64.

It may be something with miniserv rather than Webmin proper. I can
write a script which does not load/require any code related to Webmin
or my module, but uses Inline in the same fashion. This script will
also run from the cli, but errors in the exact same way when served by
miniserv.

Kind Regards,
Chris

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel