firstrun.cgi problem

Discussion related to NP Subscriber Pro.

firstrun.cgi problem

Postby rich » Thu Jul 22, 2010 5:32 pm

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
rich
 
Posts: 5
Joined: Mon Oct 01, 2007 7:15 pm

Re: firstrun.cgi problem

Postby Admin-BS » Thu Jul 22, 2010 8:01 pm

It seems your configuration is interpreting that require statement as requiring a directory... Try renaming the file "common" to "common.pm"
Admin-BS
Site Admin
 
Posts: 99
Joined: Sat Dec 31, 2005 6:52 pm
Location: USA

Re: firstrun.cgi problem

Postby rich » Thu Jul 22, 2010 9:34 pm

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
rich
 
Posts: 5
Joined: Mon Oct 01, 2007 7:15 pm

Re: firstrun.cgi problem

Postby rich » Wed Jul 28, 2010 6:11 pm

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
rich
 
Posts: 5
Joined: Mon Oct 01, 2007 7:15 pm

Re: firstrun.cgi problem

Postby Admin-BS » Mon Aug 02, 2010 6:50 pm

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.
Admin-BS
Site Admin
 
Posts: 99
Joined: Sat Dec 31, 2005 6:52 pm
Location: USA


Return to Subscriber Pro

Who is online

Users browsing this forum: No registered users and 3 guests

cron