Gossamer Forum
Home : Products : Links 2.0 : Discussions :

"nph-build.cgi" Error!

Quote Reply
"nph-build.cgi" Error!
Hi!
Everything has been working fine so far. When I "Build All" in the admin. area, it gives takes me to this page with the error on it:
___________________________________________

Backing up database . . .
Backup exists for today.. Skipping
Done.

Building URL Index . . .
Done.

Updating New and Popular Records . . .
What's New Cutoff: 14 days
Popular Cutoff: 2 hits

CGI ERROR
==========================================
Error Message : Error building! Links database is 0 bytes!
Script Location : /data1/hypermart.net/wsresource/links/cgi-bin/admin/nph-build.cgi
Perl Version : 5.00404

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

Environment Variables
-------------------------------------------
AUTH_TYPE : Basic
DOCUMENT_ROOT : /data1/hypermart.net/wsresource
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_HOST : www.wsresource.com
HTTP_MAX_FORWARDS : 65535
HTTP_REFERER : http://www.wsresource.com/links/cgi-bin/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; MSN 2.5; AOL 4.0; Windows 98)
HTTP_VIA : 1.0 dh[872112ac] (Traffic-Server/1.1.7(8) [ 1])
PATH : /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
QUERY_STRING :
REMOTE_ADDR : 205.188.208.167
REMOTE_PORT : 31867
REMOTE_USER : wsresource
REQUEST_METHOD : GET
REQUEST_URI : /links/cgi-bin/admin/nph-build.cgi
SCRIPT_FILENAME : /data1/hypermart.net/wsresource/links/cgi-bin/admin/nph-build.cgi
SCRIPT_NAME : /links/cgi-bin/admin/nph-build.cgi
SCRIPT_URI : http://www.wsresource.com/links/cgi-bin/admin/nph-build.cgi
SCRIPT_URL : /links/cgi-bin/admin/nph-build.cgi
SERVER_ADMIN : webmaster@wsresource.com
SERVER_NAME : www.wsresource.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SIGNATURE :
SERVER_SOFTWARE : Apache/1.3.6 (Unix)
___________________________________________

I tried chmoding it to 755 again, but it still did not work. I even went into the "nph-build.cgi" file and set the system path exact system path to the "links.cfg" file.

If you need to see my "nph-build.cgi" file, just let me know.

Thanks!

Chris Roane


------------------
Web Site Resource
http://www.wsresource.com
Quote Reply
Re: "nph-build.cgi" Error! In reply to
No, there is nothing wrong with your links. In fact, you have succesfully installed links. Is just that, you haven't created categories and you didn't add any links to your database. That is why you can see the error says "Error building! Links database is 0 bytes!" . So just create a category, add a link into that category, and try building it. It should be fine. Hope this helps.
Quote Reply
Re: "nph-build.cgi" Error! In reply to
Hi again!

Eddie, you were right about me having to add a link for it to get rid of the error. But, I was met with yet another problem. This is the page that I saw:

_________________________________________

Backing up database . . .
Backup exists for today.. Skipping
Done.

Building URL Index . . .
Done.

Updating New and Popular Records . . .
What's New Cutoff: 14 days
Popular Cutoff: 2 hits
Updating record: 1, marking as new.
Done.

Updating ratings ..
Done.

Loading Category Information . . .
Done.

Gathering Category and Link information . . .
Done

Building Home Pages . . .
Subcategories: 6
Total Links: 1
Opening page: /data1/hypermart.net/wsresource/links/pages/index.html

CGI ERROR
==========================================
Error Message : fatal error: Can't locate /data1/hypermart.net/wsresource/links/cgi-bin/admin/Template.pm in @INC (@INC contains: /data1/hypermart.net/wsresource/links/cgi-bin/admin /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /data1/hypermart.net/wsresource/links/cgi-bin/admin/db_utils.pl line 503.

Script Location : /data1/hypermart.net/wsresource/links/cgi-bin/admin/nph-build.cgi
Perl Version : 5.00404

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

Environment Variables
-------------------------------------------
AUTH_TYPE : Basic
DOCUMENT_ROOT : /data1/hypermart.net/wsresource
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.wsresource.com
HTTP_REFERER : http://www.wsresource.com/links/cgi-bin/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; MSN 2.5; Windows 98)
PATH : /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
QUERY_STRING :
REMOTE_ADDR : 152.202.51.8
REMOTE_PORT : 4845
REMOTE_USER : wsresource
REQUEST_METHOD : GET
REQUEST_URI : /links/cgi-bin/admin/nph-build.cgi
SCRIPT_FILENAME : /data1/hypermart.net/wsresource/links/cgi-bin/admin/nph-build.cgi
SCRIPT_NAME : /links/cgi-bin/admin/nph-build.cgi
SCRIPT_URI : http://www.wsresource.com/links/cgi-bin/admin/nph-build.cgi
SCRIPT_URL : /links/cgi-bin/admin/nph-build.cgi
SERVER_ADMIN : webmaster@wsresource.com
SERVER_NAME : www.wsresource.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.1
SERVER_SIGNATURE :
SERVER_SOFTWARE : Apache/1.3.6 (Unix)

__________________________________________

I have no clue where that long absolute path came from. I really need to get this script up as soon as possible.

Thanks!

Chris Roane

------------------
Web Site Resource
http://www.wsresource.com
Quote Reply
Re: "nph-build.cgi" Error! In reply to
Well, is the Template.pm in the admin directory? Or did you type in the path correctly?

First, see if the template.pm in the admin. And if it is, please post your links.cfg here.
Quote Reply
Re: "nph-build.cgi" Error! In reply to
Hi!

I fixed the problem. I was started to think about the url to the Template.pm file and just relized it started with a capital "T". Well, when I FTP'ed into my account, Template.pm was spelled with a lower case "t" and that is why it got that error. Well everything looks like it is working fine. Except the templates that I customized, are not working at all and it is not looking the way I want it to look. I think I can figure this one out pretty quick though.

Thanks for your Help!

Chris Roane

------------------
Web Site Resource
http://www.wsresource.com