I have a strange problem with all product images. All images are displayed correctly in the main store view.
In the second store view the images are not loaded correctly because the wrong cache folder is selected.
Store View DE:
Store View EN:
Does anyone have any idea what could be the cause?
Cache has already been cleared.
view.xml in custom theme was set and tried deleting it as well.
I also tried several times catalog:resize:image with no effect
If I look directly in the media folder, the cache folder of the store view EN is missing.
All images are correctly assigned in the backend.
Maybe someone knows where the hash is created, then you could switch off the distinction of the store views.
Thanks and best,
Solved! Go to Solution.
It seems also being resolved in 2.3.4 which was released today.
Make sure that you have ".htaccess" file in the pub/media folder.
It might be issue.
thanks for your respond. Yes the .htaccess is there, I tried it without and then all the images are gone, so I could rule that out.
For me it sounds like you got stuck at the same point like me. It's a magento 2 issue and only workarounds are present. No real solution - at least nothing was working for me.
Are you still dealing with it?
I solved it now.
The solution was posted here today: https://github.com/magento/magento2/issues/19710
Rename the file from .txt to .patch
patch -p1 < FILE_NAME.patch
(If the above command does not work, then try using -p2 in place of the -p1)
The commit for the patch can be found below
1. php bin/magento deploy:mode:set developer
2. patch -p1 < FILE_NAME.patch
3. php bin/magento setup:upgrade
Thanks a thousand times, tried your solution and it worked immediately and after the update as well
Hi try this Setting.
Admin panel > Stores > Settings > Configuration > GENERAL > Web > Url Options > Catalog media URL format
this setting is working on my website.