Unable to run "Update thumbs and/or resized photos" in Admin Tools successfully Unable to run "Update thumbs and/or resized photos" in Admin Tools successfully
 

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

Unable to run "Update thumbs and/or resized photos" in Admin Tools successfully

Started by Hanna., January 31, 2022, 06:30:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hanna.

Hi all.

I've been using Coppermine since 2004, so I'm quite familiar with the tools I have at hand. There used to be a different updating thumbs/images back in the day where one could choose how many to update at a time, and when one image would fail - the URL would contain its ID and for troubleshooting - this was great, because I could fix that one image bugging and continue the updating tool from the next ID forward, successfully.

Today, however, I run this tool and it comes to a stop that gives no info on what image is stopping the process. When I delete all normal_ and thumb_ I find which one is bugging and I double check it - but the updater tool still keeps on stopping the process on it.

Can anyone help?

ron4mac


Hanna.

Quote from: ron4mac on January 31, 2022, 04:12:16 PM
Is there any PHP error log information that you can provide?

How can I provide this to you? All I get is an error message. I will add it to here (running the Admin Tools again.)

Hanna.

"There was an error while processing a database query Critical error"

Hanna.

Quote from: Hanna. on January 31, 2022, 07:40:37 PM
"There was an error while processing a database query Critical error"

All I see is that, and:

QuoteprocessTool(571,{"action":"upd_thumbs","updatetype":"0","albumid":"42","submit":"submit","form_token":"b5ac2b16583ebc412c5e8d9b58b5e056","timestamp":"1643651040"});

Where can I find the PHP error log information for you?

ron4mac

You are getting a database error. At the bottom of the config settings, turn on debug mode. That should cause there to be more information in the database error message that could help define the issue.

Hanna.

Here you go, this is what I see now:

QuoteWhile executing query 'UPDATE pfpix_pictures SET pwidth = '', pheight = '' WHERE pid = 1512' in tools/upd_thumbs/upd_thumbs.php on line 198

database error: 1366 : Incorrect integer value: '' for column `priscill_cpg`.`pfpix_pictures`.`pwidth` at row 1

ron4mac

Replace tools/upd_thumbs/upd_thumbs.php with the attached file (unzipped). When you run the tool again, it should identify an image file that is bad.

Hanna.

Ah! That now doesn't stop the tool from running. Instead, I'm getting "Could not get image size for:: albums/[url]/000194.jpg" which is very helpful.

Is there any way to select which images in albums to be updated via Admin Tools? Let's say now, I have fixed the original 000194.jpg and I need it to re-generate the normal_ and thumb_ without having to run the entire album of 500 images in there.

ron4mac

Quote from: Hanna. on February 02, 2022, 03:10:17 AM
Is there any way to select which images in albums to be updated via Admin Tools?

No, it only works on an album at a time. You could maybe create a 'resize' album, move the image there, run the tool on the 'resize' album and then move the image back.

Hanna.