Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Timeout error

Quote Reply
Timeout error
Im getting timeouts when using the forum when editing templates and posting messages. I end up with a "can not find server" in the browser.

At the same time my apache error log says;

[Sat Jun 19 09:07:04 2004] [info] [client 212.158.244.145] Apache->read timed out
Use of uninitialized value in substitution (s///) at /usr/local/apache/www/commdata/domain.com/lib/GT/CGI.pm line 86, <FILE> line 16.
Use of uninitialized value in split at /usr/local/apache/www/commdata/domain.com/lib/GT/CGI.pm line 603, <FILE> line 16.


Quote:

Use of uninitialized value in substitution (s///) at /usr/local/apache/www/commdata/domain.com/lib/GT/CGI.pm line 86, <FILE> line 16.


# Load form data.
my $method = defined $ENV{REQUEST_METHOD} ? uc $ENV{REQUEST_METHOD} : '';
my $content_length = defined $ENV{'CONTENT_LENGTH'} ? $ENV{'CONTENT_LENGTH'} : 0;
if ($method eq 'GET') {
$self->parse_str(defined $ENV{QUERY_STRING} ? $ENV{QUERY_STRING} : '');
}
elsif ($method eq 'POST') {
if ($content_length) {
if ($ENV{CONTENT_TYPE} and $ENV{CONTENT_TYPE} =~ /^multipart/) {
require GT::CGI::MultiPart;
GT::CGI::MultiPart->parse($self);
}
else {
read(STDIN, my $data, $content_length, 0);
(line 86) $data =~ s/\r?\n/&/g;
$self->parse_str($data);
}
}
}
else {
my $data = join "&", @ARGV;
$self->parse_str($data);


Quote:

Use of uninitialized value in split at /usr/local/apache/www/commdata/domain.com/lib/GT/CGI.pm line 603, <FILE> line 16.

sub parse_str {
#--------------------------------------------------------------------------------
# parses a query string and add it to the parameter list
#
my $self = shift;
my @input;
(line 603) for (split /[;&]/, shift) {
my ($key, $val) = /([^=]+)=(.*)/ or next;
# Need to remove cr's on windows.
if ($^O eq 'MSWin32') {
$key =~ s/%0D%0A/%0A/gi; # \x0d = \r, \x0a = \n
$val =~ s/%0D%0A/%0A/gi;
}
push @input, $key, $val;
}
unescape(\@input);
while (@input) {
my ($k, $v) = splice @input, 0, 2;
$self->{params}->{$k} or push @{$self->{param_order}}, $k;
unshift @{$self->{params}->{$k}}, $v;
}
}
1;



In also using mod_perl

Please help

C

Last edited by:

catlovette: Jun 19, 2004, 1:18 AM
Subject Author Views Date
Post Timeout error nathanx 1642 Jun 19, 2004, 1:09 AM