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 11510 Aug 29, 2000, 12:32 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11378 Aug 29, 2000, 12:38 PM
Thread Re: nph-build problem -- abort or looping
qango 11273 Aug 29, 2000, 1:32 PM
Post Re: nph-build problem -- abort or looping
Stealth 11263 Aug 29, 2000, 1:40 PM
Thread Re: nph-build problem -- abort or looping
startpoint 11289 Aug 29, 2000, 2:24 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11277 Aug 29, 2000, 3:39 PM
Thread Re: nph-build problem -- abort or looping
qango 11282 Aug 29, 2000, 3:47 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11298 Aug 29, 2000, 3:52 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11279 Aug 30, 2000, 1:25 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11286 Aug 30, 2000, 3:30 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11264 Aug 30, 2000, 6:11 AM
Thread Re: nph-build problem -- abort or looping
Alex404 11254 Aug 30, 2000, 6:36 AM
Thread Re: nph-build problem -- abort or looping
Stealth 11234 Aug 30, 2000, 7:51 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11263 Aug 30, 2000, 4:04 PM
Thread Re: nph-build problem -- abort or looping
Stealth 11240 Aug 30, 2000, 5:05 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11240 Aug 30, 2000, 5:20 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11265 Aug 30, 2000, 6:02 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11245 Aug 30, 2000, 6:14 PM
Thread Re: nph-build problem -- abort or looping
pugdog 11265 Aug 30, 2000, 6:29 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 11251 Aug 30, 2000, 6:50 PM
Post Re: nph-build problem -- abort or looping
pugdog 11241 Aug 30, 2000, 7:30 PM
Thread Re: nph-build problem -- abort or looping
Alex404 11262 Aug 31, 2000, 12:42 AM
Thread Re: nph-build problem -- abort or looping
AndreasH 11237 Aug 31, 2000, 10:58 AM
Thread Re: nph-build problem -- abort or looping
pugdog 11213 Aug 31, 2000, 2:06 PM
Thread to Alex
AndreasH 4386 Aug 31, 2000, 2:51 PM
Thread Re: to Alex
Stealth 4363 Aug 31, 2000, 3:09 PM
Thread Re: to Alex
AndreasH 4371 Aug 31, 2000, 3:18 PM
Post Re: to Alex
Stealth 4344 Aug 31, 2000, 3:25 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4383 Aug 31, 2000, 4:30 PM
Thread Re: nph-build problem -- abort or looping
pugdog 4355 Aug 31, 2000, 5:51 PM
Thread Re: nph-build problem -- abort or looping
AndreasH 4353 Aug 31, 2000, 6:27 PM
Thread Re: nph-build problem -- abort or looping
Alex404 4349 Sep 1, 2000, 1:38 AM
Post Re: nph-build problem -- abort or looping
AndreasH 4337 Sep 1, 2000, 3:32 AM
Post To all who helped me!
AndreasH 4326 Sep 1, 2000, 4:44 PM
Post Re: nph-build problem -- abort or looping
Alex404 11247 Aug 30, 2000, 7:50 AM