Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Prob in 3.0.2 install

Quote Reply
Prob in 3.0.2 install
Get an error 500 on install attempt after d/l in the admin.

Server error log shows:

[Wed May 25 19:28:38 2005] [error] Can't find string terminator "\nCHECK" anywhere before EOF at /hd2/web/c/comics/public_html/comics/admin/glinks-3.0.2/install.cgi line 111.\n

dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Prob in 3.0.2 install In reply to
Might it be that broken download problem again? Have you tried redownloading it? Can you save me a copy of that install so I can take a look?

Adrian

Last edited by:

brewt: May 25, 2005, 8:23 PM
Quote Reply
Re: [brewt] Prob in 3.0.2 install In reply to
I have not done anything, so the install is still there. You still have access (I think!)- I started on the Comics site, so you can look into that admin to see what I d/led.

After you look, let me know, I will delete the 3.0.2 directory and try again.
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Prob in 3.0.2 install In reply to
Actually, thought about it, and decided to just rename the possible bad install- you can find it in admin/glinks-3.0.2_BAD
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Prob in 3.0.2 install In reply to
New d/l, same error...
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Prob in 3.0.2 install In reply to
Well we took a look at it and it wasn't happening when running the update download in shell, but was in a browser. However, after restarting apache, it started working. We believe it may be a zlib issue as something's happening with the uncompression of the file when GT::WWW is retrieving the file.

Adrian
Quote Reply
Re: [brewt] Prob in 3.0.2 install In reply to
OK, will do in shell- what is the command?
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Prob in 3.0.2 install In reply to
Well, you don't need to now. It works fine now that we restarted apache.

Adrian
Quote Reply
Re: [brewt] Prob in 3.0.2 install In reply to
There is DEFINITELY a problem Adrian...

I tried it, and got the same fail.

I looked at the d/led code, and then I d/led the package from the Gossamer site-there is a difference in the code!

This is from about line 111 in the Admin d/led scrip:

Code:

BEGIN {
if ($^C) {
eval <<'CHECK';
sub CHECK {
# ------------------------------------------------------------------------------
# In Perl 5.6+ this allows you to do: perl -cMMy::Module -e0 to make sure all
# your %COMPILE subs compile. In versions of Perl prior to 5.6, this is simply
# treated as a sub named "CHECK", w: A reference to the packages %COMPILE hash,
# the package, and the name of the function to load.
#
my ($COMPILE, $pkg, $func) = @_;
my $linenum = ($COMPILE->{$func} =~ s/^(\d+)//) ? $1+1 : 0;
eval "package $pkg;\n#line $linenum$pkg\::$func\n$COMPILE->{$func}";
if ($@) { die "Unable to load $pkg\::$func: $@" }
if (not defined &{"$pkg\::$func"}) {
die "Unable to load $pkg\::$func: Subroutine did not compile correctly (possible bad name).";
}
undef $COMPILE->{$func}; # Leave the key in the compile hash so that things can test to see if it was defined in the compile hash
return;
}
1;


This is the same area, but d/led from the site:

Code:

BEGIN {
if ($^C) {
eval <<'CHECK';
sub CHECK {
# ------------------------------------------------------------------------------
# In Perl 5.6+ this allows you to do: perl -cMMy::Module -e0 to make sure all
# your %COMPILE subs compile. In versions of Perl prior to 5.6, this is simply
# treated as a sub named "CHECK", which is never called. $^C is also 5.6+
# specific - whether or not you are running under "-c"
compile_all();
}
CHECK
}
}

sub compile_all {
my @pkg = @_;
if (@pkg) {
@pkg = grep +($PACKAGES{$_} or (warn "$_ is not loaded, does not use GT::AutoLoader, or is not a valid package" and 0)), @pkg;
@pkg or die "No valid packages passed to compile_all()!";
}
else {
@pkg = keys %PACKAGES;
}

for my $pkg (@pkg) {
my $COMPILE = \%{$pkg . '::COMPILE'} or next;
for my $func (keys %$COMPILE) {
_compile($COMPILE, $pkg, $func) if $COMPILE->{$func};
}
}

return 1;
}

sub _compile {
# ------------------------------------------------------------------------------
# Compiles a subroutine from a module's %COMPILE into the module's package.
# die()s if the subroutine cannot compile or still does not exist after
# compiling. Takes three arguments: A reference to the packages %COMPILE hash,
# the package, and the name of the function to load.
#

my ($COMPILE, $pkg, $func) = @_;


Note, all the red stuff is missing!
dave

Big Cartoon DataBase
Big Comic Book DataBase

Last edited by:

carfac: May 26, 2005, 9:39 PM
Quote Reply
Re: [carfac] Prob in 3.0.2 install In reply to
Hmmmm... after changing the install.cgi code, I get this error now:
Error
An error occured:
install.dat appears to be corrupted. If you are using FTP to transer the file be sure to upload the file in BINARY mode. If you need assistance, please visit: http://www.gossamer-threads.com/scripts/support/

Will upload the version from GT....
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Prob in 3.0.2 install In reply to
OK, that worked! Wink
dave

Big Cartoon DataBase
Big Comic Book DataBase