4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: khansahib on December 30, 2011, 05:45:41 AM

Title: Division By Zeror Error in error_log File
Post by: khansahib on December 30, 2011, 05:45:41 AM
Hello,

I was checking the error_log file and I can see the following error message in that file.

Quote
[30-Dec-2011 08:35:19] PHP Warning:  Division by zero in /home/site/public_html/gallery/includes/functions.php on line 315

whereas on line 315 in functions.php I can see the following:

$exif_array[$exif_match[$key]] = "1/".round((1/($ExposureTime[0]/$ExposureTime[1])),0)." sec(s)";

Please suggest how to resolve this.

Cordially,
Khansahib
Title: Re: Division By Zeror Error in error_log File
Post by: V@no on December 30, 2011, 01:33:06 PM
What is your 4images version?
This has been fixed in 1.7.10
Title: Re: Division By Zeror Error in error_log File
Post by: khansahib on December 30, 2011, 03:22:36 PM
What is your 4images version?
This has been fixed in 1.7.10


Sir, 4images version is the updated one i.e. 1.7.10 I have posted the line which is pointed out by error_log file. Is there anything wrong with the posted php code?

Also I have attached my gallery's functions.php file

Please suggest.
Title: Re: Division By Zeror Error in error_log File
Post by: V@no on December 30, 2011, 04:44:55 PM
This is strange, in theory no such errors should occur...can you provide the image that produces this error? I'd like to see what's in the EXIF of it.
Title: Re: Division By Zeror Error in error_log File
Post by: khansahib on December 30, 2011, 05:03:54 PM
Hello,

I have attached the error_log file, I hope you will review it.
Title: Re: Division By Zeror Error in error_log File
Post by: khansahib on November 03, 2012, 05:34:51 PM
I can still see the same error, can anybody please update me?
Title: Re: Division By Zeror Error in error_log File
Post by: Rembrandt on November 03, 2012, 07:38:22 PM
Hi!
I can still see the same error, can anybody please update me?
what for 4images version, and:
This is strange, in theory no such errors should occur...can you provide the image that produces this error? I'd like to see what's in the EXIF of it.

mfg Andi
Title: Re: Division By Zeror Error in error_log File
Post by: khansahib on November 04, 2012, 02:38:45 AM
Hi!
I can still see the same error, can anybody please update me?
what for 4images version, and:
This is strange, in theory no such errors should occur...can you provide the image that produces this error? I'd like to see what's in the EXIF of it.

mfg Andi

mfg,

there is not image details all I can see in error_log files is already attached, can you please guide me so I can follow those steps in-order to get EXIF of it.