ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> modperl
modperl
weird error when calling new file
by Andrew Gaffney other posts by this author
Jun 30 2004 7:11AM messages near this date
RE: potential bug/issue with internal_redirect in mp2 | Re: Uploading files
I'm working on building a new mod_perl/Mason based website. I have a bunch of 
old Perl CGI scripts that I'm moving over from the old version of the site. The 
first time I call them, I get this error:

Can't call method "filename" on an undefined value at 
/usr/lib/perl5/vendor_perl/5.8.0/i686-linux/Apache/PerlRun.pm line 40.

It works find when I hit refresh (and any other time after that). It does this 
for every new script I put in cgi-bin. The definition for the VirtualHost is:

<VirtualHost *> 
ServerName domain
ServerAdmin webmaster@domain
DocumentRoot /var/www/dev.domain/htdocs
PerlSetVar MasondataDir /etc/apache/dev.domain/
PerlModule Skyline

ScriptAlias /cgi-bin/ /var/www/dev.domain/cgi-bin/

<Directory /var/www/dev.domain/htdocs> 
Options -Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory> 

<Directory /var/www/dev.domain/cgi-bin> 
     AllowOverride All
     Options ExecCGI FollowSymlinks
     Order allow,deny
     Allow from all
</Directory> 
</VirtualHost> 

I also have the following as a global declaration for all of my VirtualHosts:

     <Location /cgi-bin/*.pl> 
         SetHandler perl-script
         PerlHandler Apache::PerlRun
         Options -Indexes ExecCGI FollowSymLinks
         PerlSendHeader On
     </Location> 

I am running Apache 1.3.29 with mod_perl 1.27 on Gentoo Linux. Does anyone have 
any idea why it is doing this?

-- 
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved