coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: 2mamo on February 02, 2005, 11:59:24 PM

Title: Error when Exif is enabled
Post by: 2mamo on February 02, 2005, 11:59:24 PM
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
Title: Re: Error when Exif is enabled
Post by: acsikos on February 03, 2005, 02:54:58 AM
when uploaded the php files have you take care the lower and uppercase? because in my case that was the problem..
Title: Re: Error when Exif is enabled
Post by: Aditya Mooley on February 03, 2005, 06:17:39 AM
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
Title: Re: Error when Exif is enabled
Post by: 2mamo on February 03, 2005, 12:33:56 PM
mmmh, it is set to false in the file. whell, i do know to less about php
Title: Re: Error when Exif is enabled
Post by: Aditya Mooley on February 03, 2005, 01:07:39 PM
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.
Title: Re: Error when Exif is enabled
Post by: 2mamo on February 03, 2005, 01:29:34 PM
thank you very much, it works fine :)