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

nph-build problem -- abort or looping

Quote Reply
nph-build problem -- abort or looping
Some people have reported a problem with the build process. Either it aborts, or it endlessly loops.

Eliot had a problem, and some others did too. This is centered in the

sub build_category_pages

On Eliot's system, changing the $limit variable from 100 to:

$limit = &Links::DB_Utils::get_totalcats;

helped with the aborted "build" process, but then the process looped. It built all the categories, then started again.

The problem seems to be in the loop that wraps the actual page builds:

Code:
while (1)
...
last unless .....
foreach {
....
}

$offset++;
}
The problem seems to be that the while loop is _never_ exited. The "last unless" condition is never met.

The only exit condition is the $offset++.

For whatever reason, it works on my system and hundreds of others, but the exact code pasted in to Eliot's didn't -- and seems to bomb on random manchines.

The "hack" solution was to comment out the 3 lines of the while loop:

Code:
## while (1)

### last unles ...

##}
This eliminates any test for category existence, but if your site is set up, and has categories, it shouldn't bomb.

I _wish_ someone would explain this code to me..... use the ORIGINAL unaltered zip file, and explain it!

It's bugged me since day 1, that I couldn't understand this loop, and it seems to be an intermittant problem on some people's systems.

Alex, I don't want to bug you with this... the next release is more important, but if you do see this, and can answer... some permanent _fix_ or explanation would help. There have been at least 3 great minds driven crazy by this for quite some time :)

It has to be centered in the first 3 lines of the while loop, and the $offset++ line, since those are the only lines that have any effect on what is happening.

I just don't see it!!! (putting on dark glasses and breaking out white cane)

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Subject Author Views Date
Thread nph-build problem -- abort or looping pugdog 11755 Aug 29, 2000, 12:32 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11620 Aug 29, 2000, 12:38 PM
Thread Re: nph-build problem -- abort or looping
qango 11516 Aug 29, 2000, 1:32 PM
Post Re: nph-build problem -- abort or looping
Stealth 11504 Aug 29, 2000, 1:40 PM
Thread Re: nph-build problem -- abort or looping
startpoint 11531 Aug 29, 2000, 2:24 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11520 Aug 29, 2000, 3:39 PM
Thread Re: nph-build problem -- abort or looping
qango 11523 Aug 29, 2000, 3:47 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11540 Aug 29, 2000, 3:52 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11521 Aug 30, 2000, 1:25 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11529 Aug 30, 2000, 3:30 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11506 Aug 30, 2000, 6:11 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11495 Aug 30, 2000, 6:36 AM
Thread Re: nph-build problem -- abort or looping
Stealth 11475 Aug 30, 2000, 7:51 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11504 Aug 30, 2000, 4:04 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11482 Aug 30, 2000, 5:05 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11482 Aug 30, 2000, 5:20 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11507 Aug 30, 2000, 6:02 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11488 Aug 30, 2000, 6:14 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11507 Aug 30, 2000, 6:29 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11493 Aug 30, 2000, 6:50 PM
Post Re: nph-build problem -- abort or looping
pugdog 11483 Aug 30, 2000, 7:30 PM
Thread Re: nph-build problem -- abort or looping
Alex404 11504 Aug 31, 2000, 12:42 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11479 Aug 31, 2000, 10:58 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11454 Aug 31, 2000, 2:06 PM
Thread to Alex
AndreasH 4496 Aug 31, 2000, 2:51 PM
Thread Re: to Alex
Stealth 4473 Aug 31, 2000, 3:09 PM
Thread Re: to Alex
AndreasH 4481 Aug 31, 2000, 3:18 PM
Post Re: to Alex
Stealth 4453 Aug 31, 2000, 3:25 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4493 Aug 31, 2000, 4:30 PM
Thread Re: nph-build problem -- abort or looping
pugdog 4465 Aug 31, 2000, 5:51 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4464 Aug 31, 2000, 6:27 PM
Thread Re: nph-build problem -- abort or looping
Alex404 4459 Sep 1, 2000, 1:38 AM
Post Re: nph-build problem -- abort or looping
AndreasH 4447 Sep 1, 2000, 3:32 AM
Post To all who helped me!
AndreasH 4436 Sep 1, 2000, 4:44 PM
Post Re: nph-build problem -- abort or looping
Alex404 11489 Aug 30, 2000, 7:50 AM