Gossamer Forum
Home : Gossamer Threads Inc. : Official Bug Fixes :

[Links SQL 2.2.0] - Cool pages do not build if no cool links

Quote Reply
[Links SQL 2.2.0] - Cool pages do not build if no cool links
Links SQL 2.2.0 contains a bug in nph-build.cgi which causes cool pages not to build correctly when there are no cool/popular links. Since this is a fix to a .cgi file, I can't easily post a fixed file as the .cgi files contain paths specific to each installation. For users who are comfortable editing files, the necessary change happens at around line 437:

Code:
my $num_pages = int ($total / $lpp);
($total % $lpp) and ($num_pages++);

The fix is to add a new line immediately after these two lines containing:

Code:
$num_pages ||= 1;


The whole thing should look like:

Code:
my $num_pages = int ($total / $lpp);
($total % $lpp) and ($num_pages++);
$num_pages ||= 1;

For those users who would rather not manually edit Links SQL files, I recommend you download a new 2.2.0 installation file, which has the fix, and perform an upgrade of your installation.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com