1

I have a strange problem with Magento 2.2.3. A few month ago we added some category images and they were shown correctly. Today we added some new category images and changes some of the old ones. But no new image is shown and also changed images are not shown. Category page always shows old images ... in admin new category image is correctly shown.

We run reindex, ran:

cd httpdocs && find var vendor pub/static pub/media app/etc -type f -exec chmod u+w {} \; \
&& find var vendor pub/static pub/media app/etc -type d -exec chmod u+w {} \; \
&& chmod u+x bin/magento

and also tried to set permissions to 777 of folder and files.

Anyone an idea what is wrong?

8

Go to System > Cache Management and scroll to the bottom of the page. Then click the Flush Catalog Images Cache button and the clear the other caches.


Update: After chat, it turned out that there were image upload at either the website or store scope that were preventing the newly uploaded images from showing.

  • I will try it .. but why are new images not shown? cache is cleared ... – matin May 3 '18 at 13:32
  • 1
    There is a specific button because catalog images do get cached. You may also need to reindex. php bin/magento indexer:reindex – Shawn Abramson May 3 '18 at 13:34
  • i allready reindexed several times ... – matin May 3 '18 at 13:42
  • is there a possibility to only clear category images and not product images too? because we have thousands of products with each 5 - 8 images ... – matin May 3 '18 at 13:43
  • What about checking store scope? Did you check your website view and store view to see if you uploaded an image in those lower scopes? If you did, it would override anything uploaded at the default scope. – Shawn Abramson May 3 '18 at 13:45
0

You can follow my way

  1. Remove old image (if exist)
  2. Save
  3. Upload new image
  4. Save
  5. Reindex everything about category
  6. clear and flush cache

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.