forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: The Milkman on July 02, 2004, 04:39:45 pm

Title: Error in Coppermine??
Post by: The Milkman on July 02, 2004, 04:39:45 pm
Hey,
I installed Coppermine succesfully, and didn't mod it at all.
It is a clean install.
But then, under at the commermine page is written:

flush(); break; } } pagefooter(); ob_end_flush(); // Speed-up the random image query by 'keying' the image table if (time() - $CONFIG['randpos_interval'] > 86400) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1"); $nbEnr = mysql_fetch_array($result); mysql_free_result($result); $pic_count = $nbEnr[0]; $granularity = floor($pic_count / RANDPOS_MAX_PIC); $result = db_query("UPDATE {$CONFIG['TABLE_PICTURES']} SET randpos = ROUND(RAND()*$granularity) WHERE 1"); $result = db_query("UPDATE {$CONFIG['TABLE_CONFIG']} SET value = '" . time() . "' WHERE name = 'randpos_interval'"); } ?>

Is this a bug? Or a misconfiguration.
Please help me, thanks in advance.

Bert
Title: Re: Error in Coppermine??
Post by: Casper on July 02, 2004, 06:05:40 pm
http://forum.coppermine-gallery.net/index.php?topic=7439.0

It seems you have a file that has been corrupted.