Jump to content

Thumbnails Regeneration Bug (bad error handling)


Rycka

Recommended Posts

Hello,

Got a lot of confusion when always no matter the permissions PS returned the following error.

image(1).thumb.png.be3d7142319a9a85abfebfe1c5e6a963.png

Finally found the problem here:

src\Core\Domain\ImageSettings\CommandHandler\RegenerateThumbnailsHandler.php
Line: 99
image.thumb.png.870d7258636d23aecf175366c251aa9a.png

$errors can return lot of other errors like original image missing (MY CASE) etc... But as we can see from the code it is not handled.

It's handling timeout, but everything else is thrown as Permissions error.

PS Version: 9.0.0

Edited by Rycka (see edit history)
Link to comment
Share on other sites

Yeah, I’ve seen that happen too. the issue is that everything gets thrown into a “permissions” error even when it’s really about missing images or bad paths. A quick fix is to adjust the handler so it checks what the actual problem is before labeling it — that way missing files show a clear “not found” message instead of permissions. That usually makes regeneration run smoother.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...