Error when Exif is enabled Error when Exif is enabled
 

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

Error when Exif is enabled

Started by 2mamo, February 02, 2005, 11:59:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

2mamo

hello
there is a question about an error which is shown on my site
i use the ver 1.3.2 and i have enabled the exif-read funktion in the admin control.
but if i open an image i can see everything but this message is displayed:

Warning: file_exists() [function.file-exists]: Unable to access in /home/www/htdocs/pixeldose.de/com/include/exifReader.inc.php on line 1204

Warning: file_exists() [function.file-exists]: Unable to access in /home/www/htdocs/pixeldose.de/com/include/exifReader.inc.php on line 1204

Warning: file_exists() [function.file-exists]: Unable to access in /home/www/htdocs/pixeldose.de/com/include/exifReader.inc.php on line 1204

Warning: file_exists() [function.file-exists]: Unable to access in /home/www/htdocs/pixeldose.de/com/include/exifReader.inc.php on line 1204

Warning: file_exists() [function.file-exists]: Unable to access in /home/www/htdocs/pixeldose.de/com/include/exifReader.inc.php on line 1485


the exifReader.incl.php allready exists on my server so i dont know whtas the error could be. is there a special chmod for this file?

thanks, marco

acsikos

when uploaded the php files have you take care the lower and uppercase? because in my case that was the problem..

Aditya Mooley

It seems that caching of exif data in exifReader.inc.php is be set to true. Try making it false.
Line 337 in file exifReader.inc.php
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

2mamo

mmmh, it is set to false in the file. whell, i do know to less about php

Aditya Mooley

change line 1204 from

if(file_exists($this->thumbnail) && $this->caching && (filemtime($this->thumbnail) == filemtime($this->file) )) {


to

if($this->caching && (filemtime($this->thumbnail) == filemtime($this->file) )) {


and delete line 1485, 1486 and 1487

if(file_exists($this->thumbnailURL)) {
  $retArr["Thumbnail"] = "<a href='$this->thumbnailURL'>$this->thumbnailURL</a>";
}


Take a backup of the file before applying these modifications.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

2mamo

thank you very much, it works fine :)