5

In my custom theme, I'm loading products images using this :

 <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(182) ?>" width="182" height="182" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" />

Unfortunatly, theses images are the only medias that are not loaded in https while the website is accessed in https. I double checked configuration.

Example of the resulting url :

http://mydomain.com/media/catalog/product/cache/1/small_image/182x/9df78eab33525d08d6e5fb8d27136e95/n/o/non_deco_mix_plus_1_candle_best.jpg

Note : I've also tried to flush the cache, no clue.

Is there anything else I should do or verify about that?

  • Tried Flush Catalog Images Cache? – B00MER Sep 9 '14 at 19:47
  • Yes, as noted in the question already. – Alexandre Lavoie Sep 9 '14 at 20:02
  • upvote............from me – Amit Bera Oct 21 '14 at 13:46
5

It admin>system>configuration>web> Secure tab and check Base Media URL contain https protocol.

That mean url should be start with https for media

  • Yes it is working, but is it the only way? – Alexandre Lavoie Sep 9 '14 at 20:07
  • yes,it only way.As your ssl pages base url is https so need all image call with https. when call https it port protecting to call http – Amit Bera Sep 10 '14 at 8:40
  • Well I mean the Secure tab was already in HTTPS but changing also the non secure to HTTPS fixed the issue... which should not be needed. – Alexandre Lavoie Sep 10 '14 at 12:38

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.