Jump to content

Website with "Unsecure content" SSL - problem images link to http and not https


rafadn

Recommended Posts

Hello everybody,

 

First, I would like to thank PrestaShop and all the users that make ecommerce a wonderful experience!

Then I would like to ask for a solution to a problem that I encountered. Please help me. My website is www.telmart.it. The problem is the following:

After installing and then activating SSL in my website's backoffice I get the "Unsecure Content" message from all browsers because there are two links on my website that don't convert the URL from http to https. The two links causing this problem are two images of the theme, namely bg_footer.png and bg_columns.png. The following is from the source code of my website:

 

#footer_wrapper { background: url("http://www.../themes/theme185/img/bg_columns.png") repeat scroll 0 0 transparent; }

 

#footer { background: url("http://www.../themes/theme185/img/bg_footer.png") no-repeat scroll left bottom transparent; padding-left: 6px; padding-bottom: 50px; }

 

I found the lines where the 2 images are in the global.css file:

from line 1433:

 

/* —————————————————————————————— footer styles —————————————————————————————— */

#footer_wrapper {clear:both; width:992px; margin:0 auto}

#footer {height:auto;clear:both;background:url(../img/bg_footer.png) 0 0 no-repeat;}

 

and from line 87:

 

/* —————————————————————————————— layout —————————————————————————————— */

div#wrapper1 {min-width:991px;min-height:100%;background:#e7e7e7;}

div#wrapper2 {height:100%;}

div#wrapper3 {width:991px;margin:0 auto;background:url(../img/bg_columns.png) 0 0 repeat-y;text-align:left; overflow:hidden;}

 

div#left_column,

div#center_column,

div#right_column {float:left;}

 

#columns {position:relative; zoom:1}

 

#left_column {clear:left;width:230px;padding:10px 0 0 20px;}

#center_column {width:470px;padding:20px 0 0 10px;}

#right_column {width:230px;padding:10px 0 0 10px;}

 

 

What should I modify so I don't get the "Unsecured Content" message anymore, thus making my SSL work properly?

I looked all over the forums, and the answers that I found say to modify the .tpl file. However, I looked at every .tpl file in my theme folder and I didn't find the URLs. Could anybody please help me?

 

Thanks in advance!

 

Raffaello

Link to comment
Share on other sites

It is not due to requesting those images but the actual CSS file over an HTTP connection. Notice that the links in the CSS file are relative links, not absolute. So if the CSS file is requested as https://...css than the those image links will resolve to https, if the CSS file is requested over http, then those links will resove the http. Solve why the CSS file is requested over http and you will have resolved your issue.

Link to comment
Share on other sites

  • 3 weeks later...
  • 5 months later...

I have found the problem in my case to be a tools.php file in override/classes folder. No idea how it got there, but i renamed it to some different name and now my problem is fixed.

 

A forum member pointed me here http://www.prestasho...776#entry835776

 

Same problem with the solution is posted by member nadie.

 

For me the problem was with new version 1.4.8.2 only. so your problem maybe different.

Edited by indus (see edit history)
Link to comment
Share on other sites

Your problem seems to be from a third party module. Will need to look into the tpl file probably. I dont know. But your entire site seems to be https. That slows down the site unnecessarily.

 

On which page does it break ssl btw?

Edited by indus (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...