Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Gossamer Links mod_perl2 error in GT::CGI.pm

Quote Reply
Gossamer Links mod_perl2 error in GT::CGI.pm
hello,

I found an error report from the error_log containing this line several times.

Use of uninitialized value in numeric ne (!=) at /home/httpd/vhosts/myhost/cgi-bin/engine/admin/GT/CGI.pm line 66.

it happens when Gossamer Links is loaded under mod_perl2 under Apache2

is this a bug? or do i something wrong?
Quote Reply
Re: [ericho] Gossamer Links mod_perl2 error in GT::CGI.pm In reply to
Something probably changed in the Apache module. I'll get Jason to look at it on Monday.

Adrian
Quote Reply
Re: [brewt] Gossamer Links mod_perl2 error in GT::CGI.pm In reply to
Hello Brewt

Did Jason found something about the mod_perl2 issue?


Cheers,

Eric Holborn
Quote Reply
Re: [ericho] Gossamer Links mod_perl2 error in GT::CGI.pm In reply to
Try this patch:
Code:
--- CGI.pm 2 Sep 2004 19:07:27 -0000 1.140
+++ CGI.pm 11 Apr 2005 23:57:52 -0000 1.141
@@ -23,7 +23,7 @@

@ISA = qw/GT::Base/;
$DEBUG = 0;
-$VERSION = sprintf "%d.%03d", q$Revision: 1.140 $ =~ /(\d+)\.(\d+)/;
+$VERSION = sprintf "%d.%03d", q$Revision: 1.141 $ =~ /(\d+)\.(\d+)/;
$ATTRIBS = {
nph => 0,
p => ''
@@ -62,15 +62,20 @@
# If we are under mod_perl we let mod_perl know that it should call reset_env
# when a request is finished.

- if (MOD_PERL and MOD_PERL >= 1.99 and $Apache::ServerStarting != 1) {
+ if (MOD_PERL and MOD_PERL >= 1.99) {
require Apache2;
+ require Apache::ServerUtil;
+ if (Apache::ServerUtil::restart_count() != 1) {
require APR::Pool;
Apache->request->pool->cleanup_register(\&reset_env);
}
- elsif (MOD_PERL and $Apache::ServerStarting != 1) {
+ }
+ elsif (MOD_PERL) {
+ if ($Apache::Server::Starting != 1) {
require Apache;
Apache->request->register_cleanup(\&reset_env);
}
+ }
elsif (SPEEDY) {
require CGI::SpeedyCGI;
CGI::SpeedyCGI->new->register_cleanup(\&reset_env);

Adrian
Quote Reply
Re: [brewt] Gossamer Links mod_perl2 error in GT::CGI.pm In reply to
hello brewt,

I have tested your suggestion several times, but I get the similar report in my error logs.Frown
It could be another error or a bug in mod_perl2.
is there any other suggestions around this?

Cheers,

Eric Holborn
Quote Reply
Re: [ericho] Gossamer Links mod_perl2 error in GT::CGI.pm In reply to
You shouldn't be getting the same error if you changed the right file. Do you have anything else under mod_perl as well?

Adrian
Quote Reply
Re: [brewt] Gossamer Links mod_perl2 error in GT::CGI.pm In reply to
hello brewt

I have tested the updated module several times on other linux servers in our network & it's gone.
But I found another error from the logs today.

ModPerl::Registry: Undefined subroutine &Apache::ServerUtil::restart_count called at /home/httpd/vhosts/localhost.com/cgi-bin/linksql/admin/GT/CGI.pm line 69.!


do you know what this is, it seems that Apache::ServerUtil is not installed.
is those modules not standard in Apache 2 & mod_perl???

or is something else happen?

Cheers,

ericho