When Read EXIF data from JPEG files is on got a this error when clicking thumbnail:
Critical error
There was an error while processing a database query.
Debug: While executing query 'SELECT exifData FROM cpg14x_exif WHERE pid = 775' in include/exif_php.inc.php on line 39
mySQL error: Unknown column 'pid' in 'where clause'
Just updated from 1.4.27 to 1.5.20, and all seems to be all right without this problem.
When I turn off exif read, gallery works ok.
I got lot of errors that seems come from same source (cpg14x_exif )? What going on, is my update ok? File Checker says that files are up to date.
And Debug contains this row below error:
File: /home/xxxxxxxx/public_html/gallery/include/functions.inc.php - Line: 270
Please post a link.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Have you followed all the steps outlined here:
http://documentation.coppermine-gallery.net/en/upgrading.htm#upgrade_14
Run version check and see if your files transfered correctly.
Link:
http://www.photorgasm.com/gallery/ (http://www.photorgasm.com/gallery/)
Version check show no errors.
Site working now because of Read Exif is off. When I put it on all image pages ends error. Thumbnail and other pages show ok.
Not debugged errors (these errors occur when read exif data off):
When I try read photo exif data -> Error
Try delete photo -> Error
And many other
Visit update.php in your browser while logged in as admin.
Done. All are "Already Done" state
Please run http://www.photorgasm.com/gallery/update.php?debug to get some more details about the update process. Search for
Quoteexif CHANGE `filename` `pid` int(11) NOT NULL
and post the message which is displayed directly below that line.
Debug output: Rows Affected: 0. MySQL said: Warning (1366) Incorrect integer value: 'albums/activity/2008/yukigassen2008/_MG_5916.jpg' for column 'pid' at row 1 MySQL said: Warning (1366) Incorrect integer value: 'albums/uploads/snow_desert.jpg' for column 'pid' at row 2 MySQL said: Error (1062) Duplicate entry '0' for key 'filename' ALTER TABLE cpg14x_exif DROP INDEX `filename`, ADD PRIMARY KEY ( `pid` )
So there's still data in that table. What's displayed one line above?
QuoteTRUNCATE TABLE cpg14x_exif
Debug output:
Rows Affected: 0.
TRUNCATE TABLE cpg14x_exif
Ok. There were a problem with DB privileges. I Changed them. Now working! Hope ;)