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

Illegal division by zero...

Quote Reply
Illegal division by zero...
When doing Build All we get the error message below after a few seconds. Doing Staggered (Auto) doesn't give this message but the results are the same: namely that new additions are not shown on the links pages although they do show up when a search is done. Everything was working fine, before.

Any ideas please? Thanks

===========================================================
Updating record: 609, marking as new.
Done.

Updating ratings ..
Updating rating to 4.00 for link id 43
Updating rating to 10.00 for link id 165
Updating rating to 9.80 for link id 175
Updating rating to 7.00 for link id 200
Updating rating to 6.00 for link id 9

CGI ERROR
==========================================
Error Message : fatal error: Illegal division by zero at nph-build.cgi line 432, chunk 240.

Script Location : nph-build.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
AUTH_TYPE : Basic
CONTENT_LENGTH : 0
etc
===========================================================

Quote Reply
Re: Illegal division by zero... In reply to
This means that there is a syntax error in your links.cfg file in line 432.

Open the links.cfg file, and copy lines 430 - 440 in this Thread.

Regards,

Eliot Lee
Anthro TECH, L.L.C
Web: http://www.anthrotech.com/
Quote Reply
Re: Illegal division by zero... In reply to
Many thanks for your reply.

Is the problem really in links.cfg, not nph-build.cfg?

links.cfg doesn't seem to have 432 lines, unless I'm counting wrong.

How do I count the lines? Can I use "go to line x" in Word?

I don't understand what you mean by "copy the lines in this thread". Do you mean replace them from the original file?

Thanks again for your help!




Quote Reply
Re: Illegal division by zero... In reply to
Sorry...my mistake...I meant the <b>nph-build.cgi</b>.

What I mean by "copying the codes and pasting them in the Thread" is as follows:

1) Open the file via telnet...

a) Go to the directory:

<pre>cd /cgi-bin/links/admin/
</pre><p>b) Open the file:

<pre>vi nph-build.cgi
</pre><p>2) Then go to <b>line 430</b>:

<pre>:430
</pre><p>3) Then highlight the next ten lines and then go to the <b>File</b> option in telnet, and <b>COPY</b> the codes.

4) Then paste the codes in Notepad to save the codes.

5) Then access this forum, and go to this Thread.

6) Then go to your <b>Edit</b> option in your browser's toolbar.

7) Then click on <b>Paste</b> after you have put your cursor in the <b>text box</b>.

Get it?

Regards,

Eliot Lee
Anthro TECH, L.L.C
Web: http://www.anthrotech.com/
Quote Reply
Re: Illegal division by zero... In reply to
Thanks again. Now I understand you want to see the coding.

I can download the file from the server by FTP BUT:
- I don't have telnet (I think)
- I still don't know how to count the lines (blank lines included or not etc?). I guess you don't want the whole file.

Are we still talking about nph-build.cgi, because you suddenly mentioned nph-verify.cgi but this doesn't seem to have anything like 432 lines.

Thanks again. Sorry to be a dummy. Incidentally, everything has been working fine for months. Why would there suddenly be something wrong in a file? Can it get corrupted by a server malfunction?

Quote Reply
Re: Illegal division by zero... In reply to
Okay..it is the nph-build.cgi file that I am referring to since that is the file where the error message is coming from...sorry for the confusion in my last post. I edited it.

Anyway...since I presume you have not edited the nph-build.cgi file, the problem is most likely related to building the url.db file. I would check the following:

1) Make sure that you have a url.db file uploaded in your /data/ directory.

2) Make sure that this file is set to 666 (rw-rw-rw-).

Regards,

Eliot Lee
Anthro TECH, L.L.C
Web: http://www.anthrotech.com/
Quote Reply
Re: Illegal division by zero... In reply to
url.db does exist and is 666.

I noticed that links.db was only rw-r-r. Could this be a/the problem?

Thanks.

Quote Reply
Re: Illegal division by zero... In reply to
Yes. Everything in the /data directory needs to bw rw-rw-rw
(666)

--mark

Installation support is provided via ICQ at UIN# 53788453. I will only respond on that number.