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

Problem Building Pages

Quote Reply
Problem Building Pages
Hi,

I'm having a problem with building pages. All the admin stuff seems to ok. I can create categories, links and verify with no problems. But when I build pages I get the following error message....


Building Home Pages . . .
Subcategories: 9
Total Links: 3
Opening page: /home/httpd/html/links2/index.html



CGI ERROR
==========================================
Error Message : fatal error: /home/httpd/cgi-bin/links2/admin/Template.pm did not return a true value at /home/httpd/cgi-bin/links2/admin/db_utils.pl line 503.

Script Location : /home/httpd/cgi-bin/links2/admin/nph-build.cgi
Perl Version : 5.00404

Any clues?

Cheers!

Mike
Quote Reply
Re: [mikere] Problem Building Pages In reply to
Have you edited Template.pm?

Make sure it has:

1;

at the bottom.

Last edited by:

Paul: Apr 7, 2002, 5:06 PM
Quote Reply
Re: [Paul] Problem Building Pages In reply to
I've made no changes to anything except links.cfg
It still has the "1;" at the foot of Template.pm

Cheers!

Mike
Quote Reply
Re: [mikere] Problem Building Pages In reply to
That is the only reason I know of for that error.

Try uploading a fresh copy.
Quote Reply
Re: [Paul] Problem Building Pages In reply to
Thanks for the advice so far Paul!

Anyway....

I downloaded a fresh copy of the script and tried it on two different web servers. One with Perl Version 5.00404 and the other Perl Version 5.00503.

In both cases I'm still getting the same error. If I change the links.cfg to not use templates (use site_html.pl instead) everything builds ok.

I could live with this, but the individual templates would make life alot easier.

Cheers!

Mike