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 11781 Aug 29, 2000, 12:32 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11645 Aug 29, 2000, 12:38 PM
Thread Re: nph-build problem -- abort or looping
qango 11541 Aug 29, 2000, 1:32 PM
Post Re: nph-build problem -- abort or looping
Stealth 11529 Aug 29, 2000, 1:40 PM
Thread Re: nph-build problem -- abort or looping
startpoint 11556 Aug 29, 2000, 2:24 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11545 Aug 29, 2000, 3:39 PM
Thread Re: nph-build problem -- abort or looping
qango 11548 Aug 29, 2000, 3:47 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11565 Aug 29, 2000, 3:52 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11546 Aug 30, 2000, 1:25 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11554 Aug 30, 2000, 3:30 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11532 Aug 30, 2000, 6:11 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11520 Aug 30, 2000, 6:36 AM
Thread Re: nph-build problem -- abort or looping
Stealth 11500 Aug 30, 2000, 7:51 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11529 Aug 30, 2000, 4:04 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11507 Aug 30, 2000, 5:05 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11507 Aug 30, 2000, 5:20 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11532 Aug 30, 2000, 6:02 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11513 Aug 30, 2000, 6:14 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11532 Aug 30, 2000, 6:29 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11518 Aug 30, 2000, 6:50 PM
Post Re: nph-build problem -- abort or looping
pugdog 11508 Aug 30, 2000, 7:30 PM
Thread Re: nph-build problem -- abort or looping
Alex404 11529 Aug 31, 2000, 12:42 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11504 Aug 31, 2000, 10:58 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11480 Aug 31, 2000, 2:06 PM
Thread to Alex
AndreasH 4529 Aug 31, 2000, 2:51 PM
Thread Re: to Alex
Stealth 4507 Aug 31, 2000, 3:09 PM
Thread Re: to Alex
AndreasH 4514 Aug 31, 2000, 3:18 PM
Post Re: to Alex
Stealth 4486 Aug 31, 2000, 3:25 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4526 Aug 31, 2000, 4:30 PM
Thread Re: nph-build problem -- abort or looping
pugdog 4499 Aug 31, 2000, 5:51 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4497 Aug 31, 2000, 6:27 PM
Thread Re: nph-build problem -- abort or looping
Alex404 4492 Sep 1, 2000, 1:38 AM
Post Re: nph-build problem -- abort or looping
AndreasH 4480 Sep 1, 2000, 3:32 AM
Post To all who helped me!
AndreasH 4469 Sep 1, 2000, 4:44 PM
Post Re: nph-build problem -- abort or looping
Alex404 11514 Aug 30, 2000, 7:50 AM