Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

BUG: admin.cgi span pages broken

Quote Reply
BUG: admin.cgi span pages broken
The links are being listed as:

Code:
http://postcards.com/cgi-bin/LinkSQL/admin/?db=Links&do=view_records&ID=*&nh=8

Rather than:

http://postcards.com/cgi-bin/LinkSQL/admin/admin.cgi?db=Links&do=view_records&ID=*&nh=8
Quote Reply
Re: BUG: admin.cgi span pages broken In reply to
This was a *pain* to track, because of all the references...... nothing to search on.

But, I was able to make it work, by editing the Admin_HTML.pm this:

Code:
$SCRIPT_URL = $ENV{'SCRIPT_NAME'}; #this is overwritten in the next line, kept for the heck of it.
$SCRIPT_URL = '/www/server/cgi-bin/LinkSQL/admin/admin.cgi'; ### Force it to this value.

Forcing the path to be hardcoded.
Quote Reply
Re: BUG: admin.cgi span pages broken In reply to
Spoke too soon.

While the span links work (cgi_main window), the links in the side bar (nav window) don't.

Has to be a frames-related environment problem, but I'm stumped now.

HELP!!!!!!!
Quote Reply
Re: BUG: admin.cgi span pages broken In reply to
That's what I get for not debuggin in both browsers sufficently. The problem was the URL was wrong, and IE was being nice and figuring out what I meant. =)

To fix, edit DBSQL.pm and change around line 564:

my $script_url = $self->{'db_script_url'};

to:

my $script_url = $ENV{'SCRIPT_NAME'};

and it should work fine.

Cheers,

Alex
Quote Reply
Re: BUG: admin.cgi span pages broken In reply to
Dang..... not seeing the forest for the trees!!!

And you know I corrected the grammatical error "to" --> "too" right above that! <kick><bang head>

Thanks!!! That was turning my hair grey Smile

[This message has been edited by pugdog (edited July 15, 1999).]