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

Probs w/ ADMIN.CGI -- Come on EXPERTS, chicken? :)

Quote Reply
Probs w/ ADMIN.CGI -- Come on EXPERTS, chicken? :)
I am unable to get the ADMIN page to do anything but show the opening page. When I click on View/Add/Delete/Modify et cetera for Categories the script hangs. I interrogated the page in IE5 (Win), and was able to see that the HTML is prematurely ended. . .and so no </HTML> is ever sent to the browser. I cannot figure out what is wrong. It is just sending a form to the browser. Ironically, admin.cgi has no problems creating the three-framed page, though.
I have checked the permissions; there is a complete permissions list in the FAQ section that I checked.
Also, add.cgi does not work, either. But search.cgi and jump.cgi "work" --> at least they provide the correct forms. Of course, without anything in the links DB there is nothing for them to do.
Any ideas? <exasperated>

Here is how much code I do get from it before it goes North on me.

Code:
<html>
<head>
<title>Category Database: Add a New Category.</title>
</head>

<body bgcolor="#DDDDDD">
<form action="http://students.washington.edu/wwv/tjp/bin/links/admin/admin.cgi" method="POST">
<input type=hidden name="db" value="category">
<table border=1 bgcolor="#FFFFFF" cellpadding=5 cellspacing=3 width=500 valign=top>
<tr><td colspan=2 bgcolor="navy">
<FONT FACE="MS Sans Serif, arial,helvetica" size=1 COLOR="#FFFFFF">
<b>Category Database: Add a New Category</b>
</td></tr>
<tr><td>
<p><center><font face="verdana,arial,helvetica" size="4"><b>
Add a New Category
</b></font></center>

<font face="verdana,arial,helvetica" size="2">
I know if I take out the following line from the admin_html.pl file within sub html_add_form() I can get an output. . .the line being,
Code:
&html_record_form(&get_defaults);
I then went both the subroutines get_defaults() and html_record_form. I made get_defaults pass any empty key. . .and still nothing. If I comment-out the guts of html_record_form then I get it to kick something out.

Ideas, please! Crazy



Quote Reply
Duplicate thread In reply to
Why have you posted this problem in more than one forum? Follow just one thread at: http://gossamer-threads.com/...w=collapsed&sb=5 Mad

Martin Webster
--
Cebidae's UK Internet Resource
http://www.cebidae.co.uk/
Quote Reply
Re: Probs w/ ADMIN.CGI -- Come on EXPERTS, chicken? :) In reply to
Apologogies for the double post. I did not see the UNIX installations board first.

I have checked the links.cfg -- I only touched those areas mentioned by the readme.txt. I also checked every single permissions on every directory/file. I re-downloaded and uncompressed, too.

If I just set the %default keys to 1, 2, 3,. . . , return and print no problemo. However, if I let get_default do its thing it hangs. If I then let %default keys to 1, 2, 3, . . .but this time let it go through build_html_record_form it hangs again. It seems to have numerous problems. . .

Again, sorry for the confusion with the double posts.


Quote Reply
Re: Probs w/ ADMIN.CGI -- Come on EXPERTS, chicken? :) In reply to
OK, we're going with this thread; can you delete your other post please.

Let's step back at look at the problem. You can't get admin.cgi working? If so, lets check that links.cfg is setup right. Can you make this available by copying it from your /links/admin directory to your document ditecory (please change file extenstion to .txt).

Martin Webster
--
Cebidae's UK Internet Resource
http://www.cebidae.co.uk/
Quote Reply
Re: Probs w/ ADMIN.CGI -- Come on EXPERTS, chicken? :) In reply to
Couldn't delete, but did the next best thing. Thanks.

The links.cfg copy is at http://students.washington.edu/.../bin/links/links.txt

Quote Reply
Re: Probs w/ ADMIN.CGI -- Come on EXPERTS, chicken? :) In reply to
I can't see anything wrong with links.cfg. I'm assuming that the paths are correct and the permissions set. Do you have telnet? If so, confirm the paths by typing pwd at the command line.

Also, try changing the following line in admin.cgi (and the other .cgi scripts):

require "links.cfg"; # Change this to full path to links.cfg if you have problems.

to:

require "/dw01/d07/wwv/tjp/bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.



Martin Webster
--
Cebidae's UK Internet Resource
http://www.cebidae.co.uk/
Quote Reply
Re: Probs w/ ADMIN.CGI -- Come on EXPERTS, chicken? :) In reply to
I did that. No change. I rechecked my permissions; and I know the directories are correct as I use the same variables for the scripts I have written. Crazy