From: Chris N. <cni...@fo...> - 2013-03-08 14:19:39
|
On Fri, Mar 8, 2013 at 8:07 AM, Chris Nighswonger <cni...@fo...> 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 |