SSL error in checkout due to product images

  • Posts: 30
  • Thank you received: 0
12 years 6 months ago #50466

Hikashop,
I searched the forum but found no answer.
My checkout pages do not report complete SSL encryption. The chrome inspect element report indicates that it is due to the product image not being an ssl source;
The page at www.mysite.com/index.php/cloud/checkout displayed insecure content from www.mysite.com/media/com_hikashop/upload/cloud_security.jpg .

How can the image be referenced correctly?

Thanks,
Paul

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
12 years 6 months ago #50526

Hi,

No one reported such problem. As far as we know the images displayed by HikaShop are always with HTTPS if the current URL has HTTPS.

Can you give a link to your website so that we can see that ?

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
12 years 6 months ago #50547

Nicolas,
Thank you for looking in to this.
You can see the error on any product on our site with an image, such as:
www.ip3inc.com/index.php/cissp-online

Paul

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
12 years 6 months ago #50591

You have something which is not configured properly in Joomla as Joomla is returning the non SSL URL of the website although the website is in SSL mode.

Change the line:
$this->uploadFolder_url = JURI::base().$this->uploadFolder_url;
to:
$this->uploadFolder_url = JURI::base(true).$this->uploadFolder_url;

in the file administrator/components/com_hikashop/helpers/image.php and that should circumvent the problem.

The following user(s) said Thank You: IP3

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
12 years 6 months ago #50932

Nicolas,
Great, that fixed it.
Thank you very much.
Paul

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
12 years 4 months ago #55380

Hi, I'm having this same issue and I tried this fix from Nicolas which worked, but when I use products that have more than one thumbnail I lose the larger image when you roll over the thumbnail. How do I fix this issue? You can see an example here.

nicolas wrote: You have something which is not configured properly in Joomla as Joomla is returning the non SSL URL of the website although the website is in SSL mode.

Change the line:
$this->uploadFolder_url = JURI::base().$this->uploadFolder_url;
to:
$this->uploadFolder_url = JURI::base(true).$this->uploadFolder_url;

in the file administrator/components/com_hikashop/helpers/image.php and that should circumvent the problem.

Last edit: 12 years 4 months ago by jbozaan. Reason: Left out a word.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
12 years 4 months ago #55381

The problem seems to stem from a dropped / in the beginning of the URL, like this:
media/com_hikashop/upload/thumbnail_234x190/image.jpg

should be:
/media/com_hikashop/upload/thumbnail_234x190/image.jpg

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 0
12 years 4 months ago #55388

I found the fix, someone else posted it here.

$this->uploadFolder_url = JURI::base(true).'/'.$this->uploadFolder_url;

Please Log in or Create an account to join the conversation.

Time to create page: 0.089 seconds
Powered by Kunena Forum