coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: yazoo on March 23, 2004, 05:14:52 PM

Title: Exif errors in CPG 1.2.1
Post by: yazoo on March 23, 2004, 05:14:52 PM
I am using ver 1.2.1 standalone, and when having the exif enabled I get the following error:



Warning: exif_read_data(CG5_0002_25~1.JPG): process tag(x000D=UndefinedTa): Illegal pointer offset(x05CE + x0044 = x0612 > x05EA) in /pub/home/yazoo322/gallery/include/exif_php.inc.php on line 58



Is there a fix for this?
Title: Exif errors in CPG 1.2.1
Post by: Bill_S on March 23, 2004, 08:56:46 PM
There may be a problem in the exif_php.inc.php code at line 57:
$size = @getimagesize($filename);

Try removing the "@" symbol from in front of the getimagesize function:
$size = getimagesize($filename);
and see if that solves the problem.

I hope this helps.

Bill
Title: Exif errors in CPG 1.2.1
Post by: yazoo on March 24, 2004, 01:48:46 AM
Thanks Bill_S, what you said didn't work but you put me on the right path.

I changed the following


$exif = exif_read_data($filename,0,true);


to


$exif = @exif_read_data($filename,0,true);


And now it works :D
Title: Re: Exif errors in CPG 1.2.1
Post by: PBas on September 02, 2004, 12:53:01 AM
Yep. That solved my problem!
Thank you both!  ;D

By the way... @  is like an "echo off" on ms-dos?
Sorry. i don't know php.
Title: Re: Exif errors in CPG 1.2.1
Post by: Joachim Müller on September 02, 2004, 06:16:28 AM
Quote from: PBas on September 02, 2004, 12:53:01 AMBy the way... @  is like an "echo off" on ms-dos?
Sorry. i don't know php.
Yes, it silences the output (error message, if there should be one) of a php command.

Joachim