cancel
Showing results for 
Search instead for 
Did you mean: 

product image url cache url not updating

product image url cache url not updating

Products appear fine in admin

 

on the frontend, in catalog view, and in product view

all product images return a 404, because of the following url structure:

 

/media/catalog/product/cache/3f23d2e4809353014f98c960f33015e5/c/o/colibri-ii-1.jpg

 

the correct URL might be: 

/media/catalog/product/cache/2079bcffb72cffec59b22238cd9743e6/c/o/colibri-ii-1.jpg

 

the problem is with the string of characters after cache/.  Even after flushing cache, even after running image:resize command, this character string remains the same.

 

In the actual filesystem, magento properly updates product/cache/* url with new cache folders.

however, the frontend never gets these new folder names to update the URL.

 

here is my test site for examination: https://wingsandwheels.akaiarts.com/

 

example product page: https://wingsandwheels.akaiarts.com/colibri-ii.html

 

What's also interesting is that at the bottom of the page, where recommended products are posted, if you hover over one of them, it displays the correct image.

 

I'm running Redis for page cache

Im running varnish backend cache

web server is nginx 

Running on M 2.3.1 CE

Any help on this would be appreciated.

4 REPLIES 4

Re: product image url cache url not updating

Hi, we encounter same problem. Looks like it is solved on your website. Can you please advise about the solution for you so we can try? Thank you.

Re: product image url cache url not updating

I have also faced the same issue once and tried removing, regenerating and everything. Later it was discovered wrong owner permissions to website root which is not allowing to auto-generated images hence the path throws 404. Try finding the Owner and group where the website is uploaded and make sure they are the same. Sometimes we create server with root and later on use normal user for working hence a mismatch in ownership results in problem.

Re: product image url cache url not updating

Rights could be but if that is not it then probably this bug https://github.com/magento/magento2/issues/19710 

We also have / had it and it is not that easy to solve. Also the local pub/static/frontend is involved and a lot of resizing

Re: product image url cache url not updating

I'm running into the same issue on M2.3.2, did you find a fix?