Read EXIF data causes Critical error Read EXIF data causes Critical error
 

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

Read EXIF data causes Critical error

Started by tassu, September 29, 2012, 01:00:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tassu

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.

tassu

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.

tassu

And Debug contains this row below error:

File: /home/xxxxxxxx/public_html/gallery/include/functions.inc.php - Line: 270

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

tassu

Link:
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

Αndré

Visit update.php in your browser while logged in as admin.

tassu


Αndré

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.

tassu

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` )

Αndré

So there's still data in that table. What's displayed one line above?
QuoteTRUNCATE TABLE cpg14x_exif

tassu

Debug output:
Rows Affected: 0.
TRUNCATE TABLE cpg14x_exif

tassu

Ok. There were a problem with DB privileges. I Changed them. Now working! Hope ;)