Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Version 2.05 Dynamic Mode Not Work

Quote Reply
Version 2.05 Dynamic Mode Not Work
Hi

The Links SQL version 2.05 page.cgi not work! Please Help

TheFox

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Explaining the problem would be a start Smile

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi

I just made a clean install. But when I try the page.cgi and wait for a few minute.... there is nothing there.

TheFox

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
If you have a look at:

http://www.gossamer-threads.com/perl/forum/showflat.pl?Cat=&Board=LSQLNG&Number=154331&page=0&view=collapsed&sb=5

You might be able to see where the changes have been made the script and change back while a solution is found to regain proper functioning of the script.

Michael Bray
Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi,

The Problem is just coming with Version 2.05. There is just a few line in 2.05's page.cgi.

TheFox

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi,

Can you try running it from telnet, i.e. type:

./page.cgi

and see what happens?

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
I'm having the same problem. I'll check it via telnet this evening, not sure what it'll do there.

In addition, when running the installation, it didn't appear to complete normally; it stopped after:

----
Unarchiving (666) /home/sites/site52/web/images/fileman/toolbar/undo.gif

0
----

When I run page.cgi in IE -- it just loads... never completes, never shows anything on the screen.

When I run page.cgi in Netscape 6, it gets a server side error, almost immediately.

Hope this helps provide more info to nail down the problem. If you need anything additional, or need to see a live example, let me know.




Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
If someone who is seeing this can send me shell access, I can take a look asap. It's working on the systems we tried, but may be a strange perl version problem.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi,

I have sent you the shell access info.

TheFox

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Copy the source of page.cgi from Links-SQL 2.04 and paste it in Page.pm
rename sub main in sub handle and your problem is gone.

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi,

Ok, add Cobalt Raq's to the list of places with broken PATH_INFO's. =) To fix this (I fixed yours Fox, thanks for the info), edit admin/Links/User/Page.pm line 55, right before:

($page =~ /(\w+\.cgi)/) and do { print $IN->redirect($CFG->{db_cgi_url} . "/$1"); return; };

add:

$page =~ s,.*page.cgi,,;

And it will work normally. I'll update the distribution shortly.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi Alex,

But the error again!

Oops, we had the following problem:
We don't seem to have a category by the name 'lsqldev-2.0.5/cgi/page.cgi'.

Please Check

TheFox

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi Alex,

The MysqlMan not work too.... it say internal server error!

Please Help

TheFox

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Yep, on a RAQ. ;)

I'm also now getting the "Oops, we had the following problem:
We don't seem to have a category by the name 'pathtocgionmyserver/page.cgi'."

error after making the recommended changes.


Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi AMJones,

Have you check your mysqlman? Is it not work too?

TheFox

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi Alex,

Even after implementing the fix for the Cobalt RAQ we still get the following error:

Oops, we had the following problem:
We don't seem to have a category by the name 'cgi/page.cgi'.

Regards

Rudi Tielemans

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi Alex,

Can you fix this trouble as soon as possible?

TheFox

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi Alex,

I'm also waiting for this fix...


Rudi Tielemans

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Still waiting for the cobalt fix, can someone help us please?
It seems I'm not the only one, waiting for this fix

Kind regards
Rudi Tielemans

Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi,

Sorry about the late reply, I was away all weekend. To fix, add:

$ENV{PATH_INFO} and ($ENV{PATH_INFO} =~ s,.*page.cgi,,);

right before:

my $page = $IN->param('g') || $ENV{PATH_INFO} || '';

and it will work as expected on cobalt raq's. I'll update Links SQL to work like this.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
Hi Alex,

I added both fixes to the Page.pm file.

$page =~ s,.*page.cgi,,;
just before
($page =~ /(\w+\.cgi)/) and do { print $IN->redirect($CFG->{db_cgi_url} . "/$1"); return; };

and

$ENV{PATH_INFO} and ($ENV{PATH_INFO} =~ s,.*page.cgi,,);
right before:
my $page = $IN->param('g') || $ENV{PATH_INFO} || '';

=> still get the following error:

Oops, we had the following problem:
We don't seem to have a category by the name ''.

Am I doing something wrong?

Rudi Tielemans


Quote Reply
Re: Version 2.05 Dynamic Mode Not Work In reply to
ok found my error

I added
$ENV{PATH_INFO} and ($ENV{PATH_INFO} =~ s,.*page.cgi,,);
right before:
my $page = $IN->param('g') || $ENV{PATH_INFO} || '';

in "sub generate_category_page "
instead of in "sub handle"

Thanks for the fix :-)
Works fine now

Rudi Tielemans