Exif errors in CPG 1.2.1 Exif errors in CPG 1.2.1
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Exif errors in CPG 1.2.1

Started by yazoo, March 23, 2004, 05:14:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yazoo

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?

Bill_S

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
I just want it to work!

yazoo

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

PBas

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.

Joachim Müller

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