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

Can Not Build Pages! Why?!

Quote Reply
Can Not Build Pages! Why?!
Hi, when I try building pages I get the message below. I have found some similar in the forum, but none quite like it. I have checked everything twice and I even managed to iron out a couple of minor problems, but now I am stuck...

Please reply quickly...

Jan



Building Pages

Step: Updating Home/New/Cool Pages

Pages built on 2-Mar-1999 at 17:09:55
--------------------------------------------------------

** Loading Category information . . .
** Done (0 s)!

** Loading Summary information . . .
** Done (0 s)!

** Creating Home Page . . .
Subcategories: 1
Total Links: 1
Opening page: /www/sites/xtratime.com/html/links/pages/index.html

CGI ERROR
==========================================
Error Message : fatal error: (Maybe you didn't strip carriage returns after a network transfer?)

Script Location : /www/sites/xtratime.com/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------
auto : 1
staggered : 1
step : 4

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /www/sites/xtratime.com/html
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.xtratime.com
HTTP_REFERER : http://www.xtratime.com/cgi-bin/links/admin/nph-build.cgi?staggered=1&step=3&auto=1
HTTP_USER_AGENT : Mozilla/4.5 (Macintosh; I; PPC)
PATH : /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/admin/sbin
QUERY_STRING : staggered=1&step=4&auto=1
REMOTE_ADDR : 195.82.218.133
REMOTE_HOST : 195.82.218.133
REMOTE_PORT : 1401
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/links/admin/nph-build.cgi?staggered=1&step=4&auto=1
SCRIPT_FILENAME : /www/sites/xtratime.com/cgi-bin/links/admin/nph-build.cgi
SCRIPT_NAME : /cgi-bin/links/admin/nph-build.cgi
SERVER_ADMIN : webadmin@www.xtratime.com
SERVER_NAME : www.xtratime.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SOFTWARE : Apache/1.2.6 FrontPage/3.0.4.1
Quote Reply
Re: Can Not Build Pages! Why?! In reply to
One of the scripts was not uploaded as ASCII. That is what causes that error. Everything in Links should be uploaded as ASCII only.
Quote Reply
Re: Can Not Build Pages! Why?! In reply to
I have uploded everything three times and have made absolutely sure that it was uploaded i Fetch's text mode (rather than automatic). What I am wondering is what script the message refers to and if I can do something to it via telnet after upload?

I know Macs are famous for messing things up, but I have installed an UBB, FreeUBB, WebAdverts on two accounts and and UGB too so it simply can't be something as simple as this. Why should it be just this particular file then?

Now that we are at it I would also be grateful if someone could tell me how I password protect the admin directory.

Thanks

Jan
Quote Reply
Re: Can Not Build Pages! Why?! In reply to
Jan,

The script that was running was nph-build.cgi. It could be that script or any of the "required" scripts located at the top of nph-build.cgi, or any or the scripts that those scripts require and/or call.

Myabe fetch isn't replacing the end of line (cr/lf) with just a lf correctly?

Quote Reply
Re: Can Not Build Pages! Why?! In reply to
The problem have been solved. Thanks for your help Bobsie!

The problem was the carriage returns. I called my host and they installed a little something that I can call using the mton command and that strips the stuff.

The problem was in the file called Template.pm

Thanks again Wink

Jan
Quote Reply
Re: Can Not Build Pages! Why?! In reply to
I must admit I have no clue what you mean with the last sentence... If you could elaborate on that?

I found out that I had a problem with the file links.db which wasn't chmod'ed correctly and wouldn't let me change it's permissions. After deleting it, uploading it again and trying to build pages (for the n'th time) I got a new error message:

-----------------
Building Pages

Pages built on 4-Mar-1999 at 04:08:14
--------------------------------------------------------

Backing up database . . .
Backing up links, category and email database (File::Copy) ...
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 : /www/sites/xtratime.com/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.00404

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

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /www/sites/xtratime.com/html
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.xtratime.com
HTTP_REFERER : http://www.xtratime.com/cgi-bin/links/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.5 (Macintosh; I; PPC)
PATH : /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
QUERY_STRING :
REMOTE_ADDR : 129.142.194.34
REMOTE_HOST : 129.142.194.34
REMOTE_PORT : 2099
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/links/admin/nph-build.cgi
SCRIPT_FILENAME : /www/sites/xtratime.com/cgi-bin/links/admin/nph-build.cgi
SCRIPT_NAME : /cgi-bin/links/admin/nph-build.cgi
SERVER_ADMIN : webadmin@www.xtratime.com
SERVER_NAME : www.xtratime.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SOFTWARE : Apache/1.2.6 FrontPage/3.0.4.1
-----------------
Quote Reply
Re: Can Not Build Pages! Why?! In reply to
The "cr/lf" means Carriage Return/Line Feed. This is the way that the scripts are stored on your computer (it is the way the scripts are by default). When you ftp via ASCII, the cr/lf is change to lf only, the way text is stored on Unix systems.

The new error is normal. The database you uploaded has no records in it. Links will not build the pages unless there is at least one link in links.db. Add a test link (or real one), and it will build.