coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: tassu on September 29, 2012, 01:00:48 AM

Title: Read EXIF data causes Critical error
Post by: tassu on September 29, 2012, 01:00:48 AM
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.
Title: Re: Read EXIF data causes Critical error
Post by: tassu on September 30, 2012, 05:50:14 PM
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.
Title: Re: Read EXIF data causes Critical error
Post by: tassu on October 01, 2012, 07:25:23 PM
And Debug contains this row below error:

File: /home/xxxxxxxx/public_html/gallery/include/functions.inc.php - Line: 270
Title: Re: Read EXIF data causes Critical error
Post by: Jeff Bailey on October 01, 2012, 09:05:14 PM
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.
Title: Re: Read EXIF data causes Critical error
Post by: tassu on October 02, 2012, 04:49:51 PM
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
Title: Re: Read EXIF data causes Critical error
Post by: Αndré on October 02, 2012, 05:16:57 PM
Visit update.php in your browser while logged in as admin.
Title: Re: Read EXIF data causes Critical error
Post by: tassu on October 02, 2012, 08:18:57 PM
Done. All are "Already Done" state
Title: Re: Read EXIF data causes Critical error
Post by: Αndré on October 04, 2012, 12:21:16 PM
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.
Title: Re: Read EXIF data causes Critical error
Post by: tassu on October 04, 2012, 01:40:45 PM
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` )
Title: Re: Read EXIF data causes Critical error
Post by: Αndré on October 04, 2012, 02:20:21 PM
So there's still data in that table. What's displayed one line above?
QuoteTRUNCATE TABLE cpg14x_exif
Title: Re: Read EXIF data causes Critical error
Post by: tassu on October 04, 2012, 06:18:24 PM
Debug output:
Rows Affected: 0.
TRUNCATE TABLE cpg14x_exif
Title: Re: Read EXIF data causes Critical error
Post by: tassu on October 04, 2012, 06:47:36 PM
Ok. There were a problem with DB privileges. I Changed them. Now working! Hope ;)