Jump to content

Insecure Mixed content with SSL 1.5.4.1


barrystein2

Recommended Posts

On my category pages in my shop such as

https://www.homeschool-shelf.com/en/35-switched-on-schoolhouse

I am getting mixed content warnings that because the page is SSL it is pulling insecure content.

I think the problem is pagination.tpl but I am not sure and I do not know what code to change.

 

 

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

Guest, thanks for the input, but I'm not sure that is it.

When I go into tchrome inspect it says Resources - non-secure form This page includes a form with a non-secure "action" attribute.

When I look for action in the code and I find several with the class pagination so I wonder if I fixed the code in the template file pagination.tpl if I could get it to generate secure actions...

such as:

<form action="http://www.homeschool-shelf.com/en/35-switched-on-schoolhouse" class="pagination" method="get"><p> <input type="submit" class="button_mini" value="OK" />

I also get several error messages in the chrome inspect that say:

Mixed Content: The page at 'https://www.homeschool-shelf.com/en/35-switched-on-schoolhouse' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'http://www.homeschool-shelf.com/en/35-switched-on-schoolhouse'. This endpoint should be made available over a secure connection.35-switched-on-schoolhouse

I fixed the same problem on the product pages by adding the word true to this code in the product.tpl page - but I don't see anything similar in the pagination.tpl. file attached... any ideas

Going to <form id="buy_block" and replacing this part {$link->getPageLink('cart',true)|escape:'html':'UTF-8'}

It is only the pages that show categories listing several products that returns the mixed content message. 

pagination.tpl

Link to comment
Share on other sites

replace

<form action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get" class="pagination">

to

<form id="pagination_form" action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl|replace:"http:":"https:"}{/if}" method="get" class="pagination">

 

Link to comment
Share on other sites

54 minutes ago, Guest said:

replace


<form action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl}{/if}" method="get" class="pagination">

to


<form id="pagination_form" action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl|replace:"http:":"https:"}{/if}" metho

Guest.

Thank you for that, the pagination form action is now coming up https,

however, I still have 3 other form actions that are coming up http

<form action="http://www.homeschool-shelf.com/en/35-switched-on-schoolhouse" id="productsSortForm"><p class="select"> <label for="selectPrductSort">Sort by</label>

I believe this is from product-sort.tpl

<form action="http://www.homeschool-shelf.com/en/index.php?controller=products-comparison" method="post" onsubmit="true"><p> <input type="submit" id="bt_compare" class="button" value="Compare"

I believe this is from products-comparison.tpl

<form action="http://www.homeschool-shelf.com/en/35-switched-on-schoolhouse" class="nbrItemPage pagination" method="get"><p> <label for="nb_item">Show</label> <input type="hidden" name="id_category" value="35" />

I believe this is from nbr-product-page.tpl

****I have attached all 3 files. How would I change them to bring up https instead of http?****

I also found this when I searched for action, with http, but since is it name="action" it doesn't seem to trigger a mixed content error, and the same is found on the product page which does *not* trigger a mixed content ssl error

 name="action" value="0" /></p></form></div></div><div class="block products_block exclusive blockspecials" id="special_block_right"><p class="title_block"><a href="http://www.homeschool-shelf.com/en/prices-drop" title="Specials">Specials</a></p><div class="block_content"><ul class="products clearfix"><li class

 

 

 

products-comparison.tpl nbr-product-page.tpl product-sort.tpl

Link to comment
Share on other sites

Are you serious ?
Can you compare the difference in the two texts I gave you?
What is extra in the second text?
You can use the difference wherever you want.
I also don't advise people who only use Ctrl + C and Ctrl + V and forget that they have their own brains.

 

Link to comment
Share on other sites

Guest, thank you for your help. 

I looked through product-sort.tpl, products-comparison.tpl and nbr-product-page.tpl

I don't find a string of code in any of them that is similar to

 <form id="pagination_form" action="{if !is_array($requestNb)}{$requestNb}{else}{$requestNb.requestUrl|replace:"http:":"https:"}{/if}" method="get" class="pagination">

I do see that the different code you inserted was 

|replace:"http:":"https:"

I just don't understand where to put it in the other three .tpl files.

 

 

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...