Advanced search  

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

Pages: [1]   Go Down

Author Topic: Exif errors in CPG 1.2.1  (Read 3574 times)

0 Members and 1 Guest are viewing this topic.

yazoo

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Exif errors in CPG 1.2.1
« 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:

Code: [Select]

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?
« Last Edit: September 02, 2004, 06:16:50 am by GauGau »
Logged

Bill_S

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 58
    • Spilman Photography
Exif errors in CPG 1.2.1
« Reply #1 on: March 23, 2004, 08:56:46 pm »

There may be a problem in the exif_php.inc.php code at line 57:
Code: [Select]
$size = @getimagesize($filename);

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

I hope this helps.

Bill
Logged
I just want it to work!

yazoo

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Exif errors in CPG 1.2.1
« Reply #2 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

Code: [Select]

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


to

Code: [Select]

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


And now it works :D
Logged

PBas

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Exif errors in CPG 1.2.1
« Reply #3 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Exif errors in CPG 1.2.1
« Reply #4 on: September 02, 2004, 06:16:28 am »

By 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
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 18 queries.