Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Top, Home, New, Cool, Weird errors

Quote Reply
Top, Home, New, Cool, Weird errors
Well i've battles my last as the frustration has nearly reduced me to tears. So far the script runs like a well oiled machine but when i build pages i can easily look at the links to the: top rated, home, new, cool from the admin menu

But when i click on them other wise i get a file not found message. The strange thing about it is that it searches for a host not close to the one in the links.cfg file or the link itself. (ie click on the link and it takes you to http://fives.net/cgi-bin/zone/pages ..instead of the proper http://cotgwarzone.virtualave.net/cgi-bin/zone/pages )
It's a strange error i can't figure out. I hope you can explain!!!
Here the link to my page
http://cotgwarzone.virtualave.net/cgi-bin/zone/pages/index.html

Heres the links.cfg files that may lead to an answer

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/paragonelite/public_html/cgi-bin/zone/pages";
$build_root_url = "http://cotgwarzone.virtualave.net/cgi-bin/zone/pages";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";
Quote Reply
Re: Top, Home, New, Cool, Weird errors In reply to
I have seen this error time and again with virtualave.net. They have something severly wrong with how they configure things. If you change your links in the menu to end with a "/" or, better yet, "/index.html" (or whatever file name/extension you use), you will not have the problem.

Otherwise, you need to take your frustration out on the ISP because it is not a Links problem; it is a virtualave.net problem.

I hope this helps.
Quote Reply
Re: Top, Home, New, Cool, Weird errors In reply to
If you are using templates, each template file that is used to build a page has code like this:

Code:
<p><small class="menu">|
<a class="menulink" href="<%build_root_url%>">Home</a> |
<a class="menulink" href="<%db_cgi_url%>/add.cgi">Add a Site</a> |
<a class="menulink" href="<%db_cgi_url%>/modify.cgi">Modify a Site</a> |
<a class="menulink" href="<%build_root_url%>/New">What's New</a> |
<a class="menulink" href="<%build_root_url%>/Cool">What's Cool</a> |
<a class="menulink" href="<%build_root_url%>/Ratings">Top Rated</a> |
<a class="menulink" href="<%db_cgi_url%>/jump.cgi?ID=random">Random Link</a> |
<a class="menulink" href="<%db_cgi_url%>/search.cgi">Search</a> |
</small></p>

You'll want to edit them to look like this:

Code:
<p><small class="menu">|
<a class="menulink" href="<%build_root_url%>/$build_index">Home</a> |
<a class="menulink" href="<%db_cgi_url%>/add.cgi">Add a Site</a> |
<a class="menulink" href="<%db_cgi_url%>/modify.cgi">Modify a Site</a> |
<a class="menulink" href="<%build_root_url%>/New/$build_index">What's New</a> |
<a class="menulink" href="<%build_root_url%>/Cool/$build_index">What's Cool</a> |
<a class="menulink" href="<%build_root_url%>/Ratings/$build_index">Top Rated</a> |
<a class="menulink" href="<%db_cgi_url%>/jump.cgi?ID=random">Random Link</a> |
<a class="menulink" href="<%db_cgi_url%>/search.cgi">Search</a> |
</small></p>

If you are not using templates, then just change $site_menu in site_html.pl:

Code:
$site_menu = qq~
<p><small class="menu">|
<a class="menulink" href="$build_root_url">Home</a> |
<a class="menulink" href="$build_add_url">Add a Resource</a> |
<a class="menulink" href="$build_modify_url">Modify a Resource</a> |
<a class="menulink" href="$build_new_url">What's New</a> |
<a class="menulink" href="$build_cool_url">What's Cool</a> |
<a class="menulink" href="$build_ratings_url">Top Rated</a> |
<a class="menulink" href="$build_email_url">Email Updates</a> |
<a class="menulink" href="$build_jump_url?ID=random">Random Link</a> |
<a class="menulink" href="$build_search_url">Search</a> |
</small></p>
~;

to read:

Code:
$site_menu = qq~
<p><small class="menu">|
<a class="menulink" href="$build_root_url/$build_index">Home</a> |
<a class="menulink" href="$build_add_url">Add a Resource</a> |
<a class="menulink" href="$build_modify_url">Modify a Resource</a> |
<a class="menulink" href="$build_new_url/$build_index">What's New</a> |
<a class="menulink" href="$build_cool_url/$build_index">What's Cool</a> |
<a class="menulink" href="$build_ratings_url/$build_index">Top Rated</a> |
<a class="menulink" href="$build_email_url/$build_index">Email Updates</a> |
<a class="menulink" href="$build_jump_url?ID=random">Random Link</a> |
<a class="menulink" href="$build_search_url">Search</a> |
</small></p>
~;

I hope this helps.
Quote Reply
Re: Top, Home, New, Cool, Weird errors In reply to
I have the same problem!pls tell me:
how to change my links in the menu to end with a "/" or "/index.html" ??
which files should I change?


------------------


Quote Reply
Re: Top, Home, New, Cool, Weird errors In reply to
I have the same problem with that.. I always get an error page.. How do I set this thing! This is the last problem I have.. I solved all of them except this.. I really need help on this, can you tell me what to do pls!
Quote Reply
Re: Top, Home, New, Cool, Weird errors In reply to
vjm,

If you are getting an error page, it would be most helpful if you would post the entire error message that it displays. Without that information, we can't help at all.

The last message I wrote in this thread is the fix if you are on virtualave.net.

[This message has been edited by Bobsie (edited June 19, 1999).]
Quote Reply
Re: Top, Home, New, Cool, Weird errors In reply to
dear Bobsie:
It works now!!thank you very much!^_^

------------------


Quote Reply
Re: Top, Home, New, Cool, Weird errors In reply to
Just one note:

Quote:
<a class="menulink" href="$build_ratings_url/$build_index">Top Rated</a> |

I was wrong on that line. It should just be:

Quote:
<a class="menulink" href="$build_ratings_url">Top Rated</a> |

Sorry about that.
Quote Reply
Re: Top, Home, New, Cool, Weird errors In reply to
Here's A Better Code Replacement:

Code:
<p><small class="menu"> | <a class="menulink" href="<%build_root_url%>/">Home</a> | <a class="menulink" href="<%db_cgi_url%>/add.cgi">Add a Site</a> | <a class="menulink" href="<%db_cgi_url%>/modify.cgi">Modify a Site</a> | <a class="menulink" href="<%build_root_url%>/New/">What's New</a> | <a class="menulink" href="<%build_root_url%>/Cool/">What's Cool</a> | <a class="menulink" href="<%build_root_url%>/Ratings/">Top Rated</a> | <a class="menulink" href="<%db_cgi_url%>/jump.cgi?ID=random">Random Link</a> | <a class="menulink" href="<%db_cgi_url%>/search.cgi">Search</a> | </small></p>