Page 1 of 1

firstrun.cgi problem

PostPosted: Thu Jul 22, 2010 5:32 pm
by rich
The firstrun.cgi
creates the plugin directory, the confirm.txt, multi_unsub.txt, and the vars.txt.
The common file is installed also.
But I still get a blank screen with the following message....

Directory /usr/lib/perl5/site_perl/5.8.8/common not allowed in require at firstrun.cgi line 438.

I checked the permissions also,
can use some help with this problem.
Thanks,
Rich

Re: firstrun.cgi problem

PostPosted: Thu Jul 22, 2010 8:01 pm
by Admin-BS
It seems your configuration is interpreting that require statement as requiring a directory... Try renaming the file "common" to "common.pm"

Re: firstrun.cgi problem

PostPosted: Thu Jul 22, 2010 9:34 pm
by rich
I tried renaming common to common.pm, it still shows an error.
I I re-did the firstrun.cgi and then it said"create new list"
when I submit is when I get the error shown in the first post.
I tried logging into the admin.cgi and I get the following error...

Directory /usr/lib/perl5/site_perl/5.8.8/common not allowed in require at admin.cgi line 19.
Still involves the common file.

What should the permissions be for the common file?



Thanks

Re: firstrun.cgi problem

PostPosted: Wed Jul 28, 2010 6:11 pm
by rich
I have the script working now, wanted to post the fix, in the event some one had the same problem.
I did what Admin-BS said, I renamed the common to common.pm.
That was not enough.

Then I had to go through every CGI page in the script,
and changed the common to comon.pm in every page of the script.
I did this a few days ago but did not have a chance to log on to the forum till now.
It works fine now,

Rich

Re: firstrun.cgi problem

PostPosted: Mon Aug 02, 2010 6:50 pm
by Admin-BS
Thanks for posting the fix. That is about what I was going to suggest but I was going to look into it a bit more when I had a free minute (which has been hard to come by recently). I'm sorry for not getting back to you sooner.

It still seems odd to me as Perl should be defaulting to local directory when a file is included, followed by system-wide paths. Oh well.