Gossamer Forum
Home : Products : Links 2.0 : Customization :

Portal error

Quote Reply
Portal error
I was using protal by junkos on my site until recently i had tis problems...

when i view all the favs, i get the internal server error. i thought that the cookies became corrupted and del the cookies, close and re-opened my browzer. i managed to add one link and view all favs.. when i add another and view all again... i get the same error... sometimes when i refresh the view all favs page, i get a msg that says 'Server Error The following error occurred: Server response MIME header too long'

this is my cgi files.... can anybody help me look through it? http://www.lazyjuice.com/temp/portal.txt

thanks...



Quote Reply
Re: Portal error In reply to
anyone? plsssss?

Quote Reply
Re: Portal error In reply to
Sorry, I don't have a solution for this problem. Try reinstalling a fresh copy from here:

ftp://ftp.camelsoup.com/pub/PortalLinks_1.0/portal_2.01.txt

And see if the error persists. If not, modify the the script a little bit at a time when adding back in any modifications you made to locate any posible causes.

--Drew
Free, hot camel soup for Links hackers...
http://www.camelsoup.com
Quote Reply
Re: Portal error In reply to
Sorrie to bother you again... i am not veri sure how i can modify portal_2.01.txt because i have added 1 part in the prevous portal version which is display popular sites, ratings (as in viewing a normal link) i was thinking it could be a problem with the code i added... can you pls help me check?


This is what i added to sub link...
In Reply To:
sub link {
my %rec = @_;
($rec{'isNew'} eq 'Yes') ? ($rec{'isNew'} = 1) : (delete $rec{'isNew'});
($rec{'isPopular'} eq 'Yes') ? ($rec{'isPopular'} = 1) : (delete $rec{'isPopular'});
($rec{'isPick'} eq 'Yes') ? ($rec{'isPick'} = 1) : (delete $rec{'isPick'});

my (@values, $counter, $totals);

$totals = 0;

open (DB, "<$db_comments_name") or &cgierr("unable to open database: $db_comment_name. Reason: $!");
LINE: while (<DB> ) {
/^#/ and next LINE; # Skip comment Lines.
/^\s*$/ and next LINE; # Skip blank lines.
chomp;
@values = &split_decode ($_);
$counter = $values[1];
if ($rec{'ID'} eq $counter) {
$totals++;
}
}
close DB;
return &load_template ('fav_link.html', {
detailed_url => "$db_detailed_url/$rec{'ID'}$build_extension",
totals => $totals,
rate_img => &get_rating_image($rec{'Rating'}),
%rec,
%globals
});
}
to view the whole cgi... you can use this http://www.lazyjuice.com/temp/portal.txt

pls help... any1?

Quote Reply
Re: Portal error In reply to
The error is not always an MIME one... most of the time it is internal server error.

You can try out here... http://www.lazyjuice.com/searchsg/

1) Add a link..
2) view all links
3) go and add another links..
4) view all links... (an error for me, internal server error, how about you?)


Quote Reply
Re: Portal error In reply to
Works just fine for me. I added 4 links, viewing the list between each, then deleted one, viewed the list, then deleted all, viewed the list again, without any errors.

--Drew
Free, hot camel soup for Links hackers...
http://www.camelsoup.com
Quote Reply
Re: Portal error In reply to
after i added 4 links and click to view all, i got the internal server error...

this are the contents of my cookie file

In Reply To:
links
102x140x201
lazyjuice.com/
0
2337974400
29641725
77435392
29421448
*
is it in anyway corrupted?

Quote Reply
Re: Portal error In reply to
It looks like there are only 3 saved links in that cookie.

As Junko said, restore a non-modded copy. It sounds like your code is causing the problem.

Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: Portal error In reply to
sorrie.. that was an error in that... after del my cookie.. i didn't close my ie... and i start adding fav links to test the mod...


New test
1) Closed my browser
2) del the cookie
3) open ie and start to add fav.
4) add link id 227
5) view favs... (working)
6) add link 162
7) view favs... (error)

one of my friends managed to get it working... so it could be my ie is courrpted. is there such thing as an ie browser corrupted?

contents of my cookie file after step 6
In Reply To:
links
227x162
lazyjuice.com/
0
2153072512
29641728
4184600800
29421450
*
in my coodies dir... there is a index.dat which i can't delete... anybody knows what that is for?

Quote Reply
Re: Portal error In reply to
index.dat is database that references cookie files to domains.

--Drew
Free, hot camel soup for Links hackers...
http://www.camelsoup.com
Quote Reply
Re: Portal error In reply to
ohhhhhh...

so it my cookies file corrupted?