We just upgraded from 2.4.3-P1 to 2.4.5 running php 8.1.
On our product pages, all the gallery and main images are returning 404 errors. We can verify that the images are in their proper folders, cause if we remove the cache/#### from the url, the product image shows properly.
I have tried all the usual attempts like running upgrade, setting permissions, cleared catalog images cache, running in developer mode, reindexing, etc.
I'm kind of stuck at this point and do not know how to troubleshoot from here.
Is there any suggestions I can try? Also, we are running nginx.
Thanks in advance.
Hi @Danielc1234 ,
Not sure but you can try below command
php bin/magento catalog:images:resize
Problem Solved? Accept as Solution!
Hope it helps!
I ran that command and it took all day, but still the same issue.
Magento is still writing the incorrect path to the images for the product pages. The category pages are working fine.
Any other suggestions?
My thoughts would be
Stores > Configuration > Web
Secure Base URL for User Media Files
Also check above it
Catalog media URL format
Is it Legacy mode or Unique Hash?
Finally if all else fails, check plugins