Can't locate object method "cgi" via package "Bugzilla" at Bugzilla/Install/Util.pm line 331.

1 post / 0 new
#1 Mon, 12/20/2010 - 20:52
almirkadric

Can't locate object method "cgi" via package "Bugzilla" at Bugzilla/Install/Util.pm line 331.

Under "Actions upon server and user creation" I have written a script

if [ -e $VIRTUALSERVER_HOME/post_create.sh ]; then sh $VIRTUALSERVER_HOME/post_create.sh; rm $VIRTUALSERVER_HOME/post_create.sh; fi

I tired to run the bugzilla checksetup.pl from the post_create.sh file above, however i keep getting the error:

Can't locate object method "cgi" via package "Bugzilla" at Bugzilla/Install/Util.pm line 331.

I then tried to manually run the command from webmin's Command Shell module and I get the same error

When I run the above script manually from terminal, it all works fine

I checked user permissions from Command Shell and by stubbing the script i wrote and i get the whoami return as root.

After extensive research all i could find for the error is that the script shouldn't be run through a web browser but a shell (rather so ssh in and run it).

So after this background, my question is how does webmin's "Actions upon server and user creation" and Command shell module work (I'm assuming the run off the same backbone when accessing the systems shell) and is there any way to fix the issue i have.

If you need any more information let me know

Thanks in advance,

Almir Kadric