Forums / Templates, Stylesheets, Page Layout / search box now appearing as non SSL causing warning from Chrome

search box now appearing as non SSL causing warning from Chrome

Views: 1,566

Results 1 to 4 of 4
29 Sep 2014, 5:16 PM
#1
wootoot1234 avatar

wootoot1234

New Zenner

Join Date:
Dec 2008
Posts:
44
Plugin Contributions:
0

search box now appearing as non SSL causing warning from Chrome

Hello,

My checkout pages have been fine for years and now suddenly Chrome is giving warnings on secure pages that all of the page is fine except for the form submission of the search side box. Here is the warning;

The page at 'https://www.mysite.com/store/index.php?main_page=checkout_payment' was loaded over HTTPS, but is submitting data to an insecure location at 'http://www.mysite.com/store/index.php?main_page=advanced_search_result': this content should also be submitted over HTTPS.

Any help on how to resolve this would be great as I have searched for hours and am lost :(

Thanks!

29 Sep 2014, 6:33 PM
#2
wootoot1234 avatar

wootoot1234

New Zenner

Join Date:
Dec 2008
Posts:
44
Plugin Contributions:
0

Re: search box now appearing as non SSL causing warning from Chrome

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

works fine now

22 Feb 2015, 4:39 PM
#3
calljj avatar

calljj

Zen Follower

Join Date:
Mar 2007
Posts:
253
Plugin Contributions:
2

Re: search box now appearing as non SSL causing warning from Chrome

wootoot1234:

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

works fine now

Thanks for the heads up, i can across this error myself by accident and this response ranked well in google.
To further help others the file is :

**/public_html/includes/templates/YOUR_TEMPLATE/sideboxes/tpl_search_header.php

change this

**```
$content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');

**
for above.

Was present in my 1.5 version

**
22 Feb 2015, 4:59 PM
#4
calljj avatar

calljj

Zen Follower

Join Date:
Mar 2007
Posts:
253
Plugin Contributions:
2

Re: search box now appearing as non SSL causing warning from Chrome

i also had to change my template as i had a "buy both now" button

tpl_shopping_cart_default.php
from

$action = zen_href_link(zen_get_info_page((int)$product['id']),  zen_get_all_get_params(array('action')) .  'action=multiple_products_add_product');

to:

$action = zen_href_link(zen_get_info_page((int)$product['id']), zen_get_all_get_params(array('action')) . 'action=multiple_products_add_product',$request_type);

to get rid of that ssl error too.