coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: jojobean on July 18, 2005, 07:43:41 PM

Title: Warning: Division by zero in /3 files/gallery/include/functions.inc.php
Post by: jojobean on July 18, 2005, 07:43:41 PM
Hello,

Here is my problem. I am using WinXp, with Netscape 7.0, and you rCoppermine  program 1.3.2 .  I make my categories, then try to make the album name which goes through but, I get this error message and it's at the top of my website page. Every entry I enter for the album does this. I have changed the other setting from 777, 755 and no difference.
Error: 

Warning: Division by zero in file/file/file/public_html/gallery/include/functions.inc.php on line 1018.

How do I not get this? I use Frontpage, so I looked at the file -- include/functions.inc.php.  Is the problem related to cookies or some such thing?  If it is how do I fix it?

Thanks for help!!

jojobean :)
Title: Re: Warning: Division by zero in /3 files/gallery/include/functions.inc.php
Post by: Nibbler on July 18, 2005, 07:46:57 PM
What is your setting for 'Max dimension of a thumbnail' in config ?

Also please run the latest stable version of Coppermine, 1.3.3
Title: Re: Warning: Division by zero in /3 files/gallery/include/functions.inc.php
Post by: jojobean on July 28, 2005, 06:16:03 PM
Let's see...  I tried to update the program to the most recent version. I downloaded it and opened it to my computer. Then I tried with the FTP -smart program to upoad it.  I have tried several times.  I even tried file by file.  What am I doing wrong??? How do I update the program on my server?? 

The max. file setting for my pics is:  w 150 h 120  Is this to large? What are the max. dimentions?

Cookie setting is 132. Is this ok? Or should it be something different?

Here is the debug info. and the website link:



USER:
------------------
Array
(
    [ID] => 23ea7f4493fbc4d0aff71331be37236a
    [am] => 1
    [theme] => classic
    [liv] => Array
        (
           
Title: Re: Warning: Division by zero in /3 files/gallery/include/functions.inc.php
Post by: kegobeer on July 28, 2005, 06:48:49 PM
Upgrade instructions are in the documentation - please read them.  Maximum width and height are also explained in the documentation.

If you have a division by zero error, either you have 0 set as a max width/height, or the variable isn't getting the correct value sent to it.  Off hand, I'm thinking you have a 0 set somewhere.

You can also turn off error notices in php.ini.