Skip to main content

SSL error in checkout due to product images

More
14 years 4 months ago #50466 by IP3
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.

More
14 years 4 months ago #50526 by nicolas
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.

More
14 years 4 months ago #50547 by IP3
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.

More
14 years 4 months ago #50591 by nicolas
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.

More
14 years 4 months ago #50932 by IP3
Nicolas,
Great, that fixed it.
Thank you very much.
Paul

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

More
14 years 3 months ago - 14 years 3 months ago #55380 by jbozaan
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: 14 years 3 months ago by jbozaan. Reason: Left out a word.

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

More
14 years 3 months ago #55381 by jbozaan
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.

More
14 years 3 months ago #55388 by jbozaan
I found the fix, someone else posted it here.
Code:
$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.203 seconds
Powered by Kunena Forum