Random Block - Division by Zero Error

joedunn
joedunn's picture

Joined: 2003-09-07
Posts: 34
Posted: Sat, 2003-11-01 03:42

Gallery is up and running. However, the Random Photo block for PostNuke gives me this error:

Warning: Division by zero in /home/sites/site76/web/modules/gallery/pnblocks/gallery_random.php on line 399

Joe Dunn

 
joedunn
joedunn's picture

Joined: 2003-09-07
Posts: 34
Posted: Sat, 2003-11-01 03:46

Here is the code that relates to the error:

398 //Original aspect
399 $tmbratio = $tmbDimensions[0] / $tmbDimensions[1];

 
joedunn
joedunn's picture

Joined: 2003-09-07
Posts: 34
Posted: Sun, 2003-11-02 15:40

Is there a problem with my thumbnails? Did I do something out of order?

Joe Dunn

 
joedunn
joedunn's picture

Joined: 2003-09-07
Posts: 34
Posted: Sun, 2003-11-02 17:34

I reinstalled the block and now I get this message:

No Photo Chosen.

Any ideas?

Joe Dunn

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Mon, 2003-11-10 18:48

Not sure how to fix this but know what setting is triggering it... Use photo not thumb (0=no/1=yes), use 0 elimenates this error.