Images from one of my cameras, a Casio QV-R61, generates the following message when adding the photos to the gallery and when they are displayed with the metadata selected:
Warning: Division by zero in /share/MD0_DATA/Web/piwigo/plugins/exif_view/main.inc.php on line 257
See example at http://jak.qcloudnas.com/piwigo/picture … category/1
It appears to be something to do with the exif_view plugin. Can anything be edited to resolve this please?
Thanks,
John
Offline
Examined the file main.inc.php and note that line 257 relates to the section dealing with Digital zoom. I always have digital zoom turned off so would rem'ing out the lines 254-257 prevent this error?
John
Offline
Well it was lines 254-258. I've rem'ed them out now and the error has gone away.
I presume the original file still needs investigating to see if this error can be prevented.
John
Last edited by JAK (2013-07-07 22:29:54)
Offline
author notified
Offline
Thank you. If an original of one of the problem photos is required to help, please let me know.
John
Offline
i have the same problem:
Warning: Division by zero in /.../.../.../galerie/piwigo/plugins/exif_view/main.inc.php on line 257
Warning: Cannot modify header information - headers already sent by (output started at /.../galerie/piwigo/plugins/exif_view/main.inc.php:257) in /.../galerie/piwigo/include/page_header.php on line 101
Offline
I've the same error
I've corrected the probleme with this code :
// distance to subject
if (!(strpos($key, 'SubjectDistance') === FALSE)) {
$tokens = explode('/', $value);
if (isset($tokens[1]))
{
if ($tokens[1] > 0)
{
$distance = $tokens[0]/$tokens[1];
}
else
{
$distance = $tokens[0];
}
}
else
{
$distance = $value;
}
return $distance.' m';
}
Hello,
I get this erros around 30 times - only at the page of "Newest Pictures" so far. Here is the full message:
Warning: Division by zero in /www/htdocs/w0089eb4/dhkfotos/plugins/exif_view/main.inc.php on line 283
What can I do against them? Is there a fix? Please help me...
Offline