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:
...
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:
### 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/
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 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 ...
##}
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/