Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: nph-build problem -- abort or looping

Quote Reply
Re: nph-build problem -- abort or looping In reply to
Yes, a few more categories are build, thanks a lot!!
But still about 150 categories are missing. I then tried again the cancelling of the while process with # and edit the HTML_template and the DB_Utils file, as described above. But I still get a "software compilation error" with the nph-build.cgi.
Could somebody print exact the lines I have to edit in the different files?


I edited:

# while (1) {
$categories_r = $CATDB->query ( { ID => '*', mh => $limit, nh => $offset+1, sb => 'Name', so => 'ASC', tb => 0 });

# last unless ($categories_r and @{$categories_r} > 0);

# foreach $category_r (@{$categories_r}) {
$offset++;


in the nph-build.cgi and


@EXPORT = qw/%ok_status %fail_status %all_codes %misc_status
&authenticate &linewrap ©_attach &load_template &get_template_list &get_totalcats


in the DB_Utils and


sub get_totalcats {
#-----------------------------------------------------
my ($CATDB, $GRAND_TOTAL);
$GRAND_TOTAL = 0;
$CATDB = new Links::DBSQL "$LINKS{admin_root_path}/defs/Category.def";
$GRAND_TOTAL = $CATDB->total();
return $GRAND_TOTAL;
}


also in the DB_Utils and


# You can put variables here that you would like to use in any
# of your templates.

%GLOBALS = (
date => \&Links::DBSQL::get_date,
time => \&Links::DBSQL::get_time,
db_cgi_url => $LINKS{db_cgi_url},
totalcats => &Links::DB_Utils::get_totalcats,
build_root_url => $LINKS{build_root_url},
site_title => $LINKS{build_site_title},
css => $LINKS{build_css_url},
banner => ''
);



in the HTML_Template.
Hope I did it right (no, hope not, so I can change my mistake!)


Thanks to all who helped me so far, really great!! Now I go to bed, the errors with building the site can wait till tomorrow.


Subject Author Views Date
Thread nph-build problem -- abort or looping pugdog 11633 Aug 29, 2000, 12:32 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11498 Aug 29, 2000, 12:38 PM
Thread Re: nph-build problem -- abort or looping
qango 11394 Aug 29, 2000, 1:32 PM
Post Re: nph-build problem -- abort or looping
Stealth 11383 Aug 29, 2000, 1:40 PM
Thread Re: nph-build problem -- abort or looping
startpoint 11410 Aug 29, 2000, 2:24 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11397 Aug 29, 2000, 3:39 PM
Thread Re: nph-build problem -- abort or looping
qango 11402 Aug 29, 2000, 3:47 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11419 Aug 29, 2000, 3:52 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11400 Aug 30, 2000, 1:25 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11407 Aug 30, 2000, 3:30 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11385 Aug 30, 2000, 6:11 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11374 Aug 30, 2000, 6:36 AM
Thread Re: nph-build problem -- abort or looping
Stealth 11354 Aug 30, 2000, 7:51 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11383 Aug 30, 2000, 4:04 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11360 Aug 30, 2000, 5:05 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11361 Aug 30, 2000, 5:20 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11385 Aug 30, 2000, 6:02 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11366 Aug 30, 2000, 6:14 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11385 Aug 30, 2000, 6:29 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11372 Aug 30, 2000, 6:50 PM
Post Re: nph-build problem -- abort or looping
pugdog 11361 Aug 30, 2000, 7:30 PM
Thread Re: nph-build problem -- abort or looping
Alex404 11382 Aug 31, 2000, 12:42 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11357 Aug 31, 2000, 10:58 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11333 Aug 31, 2000, 2:06 PM
Thread to Alex
AndreasH 4438 Aug 31, 2000, 2:51 PM
Thread Re: to Alex
Stealth 4415 Aug 31, 2000, 3:09 PM
Thread Re: to Alex
AndreasH 4424 Aug 31, 2000, 3:18 PM
Post Re: to Alex
Stealth 4396 Aug 31, 2000, 3:25 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4435 Aug 31, 2000, 4:30 PM
Thread Re: nph-build problem -- abort or looping
pugdog 4407 Aug 31, 2000, 5:51 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4406 Aug 31, 2000, 6:27 PM
Thread Re: nph-build problem -- abort or looping
Alex404 4402 Sep 1, 2000, 1:38 AM
Post Re: nph-build problem -- abort or looping
AndreasH 4390 Sep 1, 2000, 3:32 AM
Post To all who helped me!
AndreasH 4379 Sep 1, 2000, 4:44 PM
Post Re: nph-build problem -- abort or looping
Alex404 11368 Aug 30, 2000, 7:50 AM