Zen Cart Logo
Forums / General Questions / SSL warning in Chrome

SSL warning in Chrome

Views: 1,709

Results 1 to 7 of 7
10 Oct 2014, 1:27 AM
#1
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

SSL warning in Chrome

So I noticed on SSL pages on one of my sites, Chrome would show the X through the https in the address bar. No such issue in FF or IE.

After digging around, it turns out Chrome does not like the form action for the advanced search in the header,

action="http://www.mysite.com/index.php?main_page=advanced_search_result

The fix I employed was editing
/includes/templates/MY_TEMPLATE/templates/tpl_search_header.php

I change line 14 from:
$content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');

to:
$content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'SSL', false), 'get');

Feel free to chime in if there is a better way to go about this, but wanted to share in case others saw this same error or never noticed it in the first place.

10 Oct 2014, 2:20 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: SSL warning in Chrome

jeking:

So I noticed on SSL pages on one of my sites, Chrome would show the X through the https in the address bar. No such issue in FF or IE.

After digging around, it turns out Chrome does not like the form action for the advanced search in the header,

action="http://www.mysite.com/index.php?main_page=advanced_search_result

The fix I employed was editing
/includes/templates/MY_TEMPLATE/templates/tpl_search_header.php

I change line 14 from:
$content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');

to:
$content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'SSL', false), 'get');

Feel free to chime in if there is a better way to go about this, but wanted to share in case others saw this same error or never noticed it in the first place.

What if instead of either 'SSL' or 'NONSSL' instead the variable $request_type was used?

10 Oct 2014, 2:26 AM
#3
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: SSL warning in Chrome

That's a better approach than I had. Thanks for the suggestion.

10 Oct 2014, 2:34 AM
#4
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: SSL warning in Chrome

jeking:

That's a better approach than I had. Thanks for the suggestion.

Glad it worked out!

24 Nov 2014, 7:23 PM
#5
kyle_rogers avatar

kyle_rogers

New Zenner

Join Date:
Nov 2013
Posts:
26
Plugin Contributions:
0

Re: SSL warning in Chrome

mc12345678:

Glad it worked out!

I'm having the same issue. Can you explain how the line of code should be written with the variable "$request_type" used? Thanks.

24 Nov 2014, 7:32 PM
#6
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: SSL warning in Chrome

$content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get');

If that doesn't do it, there may be something else causing the warning. If so, post your url.

24 Nov 2014, 9:56 PM
#7
kyle_rogers avatar

kyle_rogers

New Zenner

Join Date:
Nov 2013
Posts:
26
Plugin Contributions:
0

Re: SSL warning in Chrome

jeking:

$content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get');

If that doesn't do it, there may be something else causing the warning. If so, post your url.

Thanks,