cancel
Showing results for 
Search instead for 
Did you mean: 

Image Catalog product cache path not correct in magento 2.4.7 p3

Image Catalog product cache path not correct in magento 2.4.7 p3

Hi,

 

I am experiencing an issue on Magento 2.4.7 p3 after an upgrade from 2.4.1.

All my product catalog images are having the wrong cache path, even when I delete cache use the resize cli command and have the full catalog cache the images are in a different cache folder compared to what the frontend is looking for.

 

I have search multiple reasons for this but I am out of ideas for why these values will not be aligned.

 

Thank you

3 REPLIES 3

Re: Image Catalog product cache path not correct in magento 2.4.7 p3

Hi @officeanve5939 ,

Apply the ACSD-51884 wrong cache path patch
Magento 2.4.7-p3 shipped with a bug in the CLI resize routine that causes the internal cache-folder name to be generated incorrectly. Adobe has released ACSD-51884: Product image cache path incorrect on resize command as a Quality Patches Tool (QPT) patch to correct it

Reference: https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-av...

 

As well as double check your base media url

If you’ve customized your Base Media URL (e.g. pointing to a CDN or sub-directory), make sure it has no extra path segments or trailing slashes that could shift Magento’s expected cache-folder name:

Stores → Configuration → Web → Base URLs

Base Media URL: {{unsecure_base_url}}pub/media/

Base Media URL (Secure): {{secure_base_url}}pub/media/

Any typo here will cause Magento to prepend or append an unexpected folder name when rendering <img src="…">

 

Problem Solved? Accept as Solution!

 

Thanks,

Ankit

Ankit Jasani

Re: Image Catalog product cache path not correct in magento 2.4.7 p3

It looks like the patch ACSD-51884 is not available fro my version of Magento 2.4.7 p3 

 

./vendor/bin/magento-patches apply ACSD-51884
Magento 2 Community Edition, version 2.4.7.0-patch3
Next patches weren't found: ACSD-51884. Please, check with "status" command availability of these patches for the current Magento version.

Re: Image Catalog product cache path not correct in magento 2.4.7 p3

I highly recommend that you upgrade to 2.4.8 as soon as possible, including PHP and Maria DB.

https://ronalsanchez.com