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 11612 Aug 29, 2000, 12:32 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11477 Aug 29, 2000, 12:38 PM
Thread Re: nph-build problem -- abort or looping
qango 11372 Aug 29, 2000, 1:32 PM
Post Re: nph-build problem -- abort or looping
Stealth 11362 Aug 29, 2000, 1:40 PM
Thread Re: nph-build problem -- abort or looping
startpoint 11388 Aug 29, 2000, 2:24 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11376 Aug 29, 2000, 3:39 PM
Thread Re: nph-build problem -- abort or looping
qango 11381 Aug 29, 2000, 3:47 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11397 Aug 29, 2000, 3:52 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11378 Aug 30, 2000, 1:25 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11385 Aug 30, 2000, 3:30 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11363 Aug 30, 2000, 6:11 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11353 Aug 30, 2000, 6:36 AM
Thread Re: nph-build problem -- abort or looping
Stealth 11333 Aug 30, 2000, 7:51 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11362 Aug 30, 2000, 4:04 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11339 Aug 30, 2000, 5:05 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11339 Aug 30, 2000, 5:20 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11364 Aug 30, 2000, 6:02 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11344 Aug 30, 2000, 6:14 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11364 Aug 30, 2000, 6:29 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11350 Aug 30, 2000, 6:50 PM
Post Re: nph-build problem -- abort or looping
pugdog 11340 Aug 30, 2000, 7:30 PM
Thread Re: nph-build problem -- abort or looping
Alex404 11361 Aug 31, 2000, 12:42 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11336 Aug 31, 2000, 10:58 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11312 Aug 31, 2000, 2:06 PM
Thread to Alex
AndreasH 4432 Aug 31, 2000, 2:51 PM
Thread Re: to Alex
Stealth 4409 Aug 31, 2000, 3:09 PM
Thread Re: to Alex
AndreasH 4417 Aug 31, 2000, 3:18 PM
Post Re: to Alex
Stealth 4390 Aug 31, 2000, 3:25 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4429 Aug 31, 2000, 4:30 PM
Thread Re: nph-build problem -- abort or looping
pugdog 4401 Aug 31, 2000, 5:51 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4399 Aug 31, 2000, 6:27 PM
Thread Re: nph-build problem -- abort or looping
Alex404 4395 Sep 1, 2000, 1:38 AM
Post Re: nph-build problem -- abort or looping
AndreasH 4383 Sep 1, 2000, 3:32 AM
Post To all who helped me!
AndreasH 4372 Sep 1, 2000, 4:44 PM
Post Re: nph-build problem -- abort or looping
Alex404 11346 Aug 30, 2000, 7:50 AM