Re: Can't locate object method "new" via package "CGI::Cookie"

Vincent Veyron <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Mon, 1 Jun 2020 09:55:24 +0200
André Warnier (tomcat/perl) <[email protected]> wrote:

> 
> PerlPostConfigRequire "/etc/apache2/modperl2_startup.pl"
> 
> Maybe you forgot this on one of the systems, and not the other ?
> 

You know, I grepped the hell out of my modules for an hour before posting, trying to find this "use ...' line. I can't believe I indeed forgot about the startup.pl :

ssh kimsufi_3 grep use\  /etc/apache2/startup.pl | grep CGI
use CGI::Cookie ();

ssh kimsufi_2 grep use\  /etc/apache2/startup.pl | grep CGI
#use CGI::Cookie ();

Good call André :-)

(note to self : stop working when you're obviously too tired to think, so as not to embarass yourself in public)

> I also use the same startup script to log some information to the Apache error log at 
> startup, such as this for example :
> 4184 2020] [:error] [pid 5519] mp2-startup: @INC is now : 
... 
> precisely so that I would know what the perl module library search paths would be under 
> Apache when it runs.
> 

Nice, thanks for the tip.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.