Zen Cart Logo
Forums / General Questions / whynopadlock shows aform ssl error

whynopadlock shows aform ssl error

Views: 2,297

Results 1 to 15 of 15
16 Feb 2015, 5:05 PM
#1
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

whynopadlock shows aform ssl error

Hi,
I checked my website ourceforherb.com with whynopadlock and one of the problems was (* is an s):


Insecure <form> call.
Found on line # 80 in file: https://www.sourceforherbs.com/index.html

(Note: Chrome will show a security error for any secure page with an insecure <form> call on the page)

Line 80 is:

<div id="searchContent" class="sideBoxContent centeredContent"><form name="quick_find" action="http://www.*ourceforherbs.com/index.php?main_page=advanced_search_result" method="get"><input type="hidden" name="main_page" value="advanced_search_result" /><input type="hidden" name="search_in_description" value="1" /><input type="text" name="keyword" size="18" maxlength="100" style="width: 120px" value="Enter keywords here" onfocus="if (this.value == 'Enter keywords here') this.value = '';" /><br /><input type="submit" value="Search" style="width: 50px" /><br /><a href="http://www.*ourceforherbs.com/index.php?main_page=advanced_search">Advanced Search</a></form></div></div> ---------------------------------

How do I fix this and in what file???

Thanks
Marvin S.

16 Feb 2015, 5:12 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: whynopadlock shows aform ssl error

Well there are several issues it seems. One, why do you have a index.html and not index.php as provided by ZC?
Two, why is the index/main_page encrypted, and three, probably going to get a lot of those type chrome issues if not mistaken, because the majority of form calls are representative of the need for the next form more than the current...

Though it would also help to know what version of ZC you are using, and possibly what template is installed as things like this are/can be template specific.

16 Feb 2015, 5:35 PM
#3
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: whynopadlock shows aform ssl error

Thanks for your quick reply.

Take my answers as coming from a slightly technical novice.
1- Zen version is 1.3.9h, Template is Sophie Blue.
2- Where do you see index.html?
3- I can't answer the encryption question as I did not do anything specifically that would have encrypted this page
3- This is the only form problem found by whynopadlock

Thanks,

Marvin S.

16 Feb 2015, 5:56 PM
#4
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: whynopadlock shows aform ssl error

marvin:

Thanks for your quick reply.

Take my answers as coming from a slightly technical novice.
1- Zen version is 1.3.9h, Template is Sophie Blue.
2- Where do you see index.html?
3- I can't answer the encryption question as I did not do anything specifically that would have encrypted this page
3- This is the only form problem found by whynopadlock

Thanks,

Marvin S.

Insecure <form> call.
Found on line # 80 in file: https://www.sourceforherbs.com/index.html

It may be a "generic" response from the program doing the search/test, but it didn't seem right.

So did you send whynopadlock to only investigate the main page or several other pages? Such as the login page, or the checkout page?

16 Feb 2015, 6:05 PM
#5
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: whynopadlock shows aform ssl error

Main page only.

16 Feb 2015, 6:07 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: whynopadlock shows aform ssl error

Simple solution: edit your /includes/configure.php file and set ENABLE_SSL to 'true' instead of 'false'.
Also make sure HTTPS_SERVER is defined to start with 'https://' and not 'http://'

16 Feb 2015, 6:43 PM
#7
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: whynopadlock shows aform ssl error

Dr. Byte,

Still getting this error - Insecure <form> call. Found on line # 80 in file: - after I made the changes you recommended.

Thanks

16 Feb 2015, 7:07 PM
#8
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: whynopadlock shows aform ssl error

Main page only.

Marvin

17 Feb 2015, 1:33 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: whynopadlock shows aform ssl error

What happens if you fix the call to:
http://www.sourceforherbs.com/images/cot_black.gif

to know when and when not to use secure?

17 Feb 2015, 1:43 AM
#10
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: whynopadlock shows aform ssl error

How do I "fix the call"? please.

17 Feb 2015, 1:47 AM
#11
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,844
Plugin Contributions:
0

Re: whynopadlock shows aform ssl error

you need to change the src calls for the cot image to call secure at all times. So your looking for this

src="http://www.sourceforherbs.com/images/cot_black.gif"

and change too

src="https://www.sourceforherbs.com/images/cot_black.gif"
17 Feb 2015, 2:35 AM
#12
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: whynopadlock shows aform ssl error

I made the change and whynopadlock found no new problems aside from line 80.

Should I change the urls in line 80 to https?

Thnks,

Marvin S.

17 Feb 2015, 2:42 AM
#13
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: whynopadlock shows aform ssl error

Unless you are planning on running your entire site in secure then why are you running whynopadlock on a page thats designed to NOT have a padlock, IF you want to run your site completely secure then make the change in your config files, making the define for http and https use the secure URL

17 Feb 2015, 2:53 AM
#14
marvin avatar

marvin

Zen Follower

Join Date:
Feb 2006
Posts:
222
Plugin Contributions:
0

Re: whynopadlock shows aform ssl error

Merlinpa1969,

Thanks,

Now I think I understand what whynopadlock is for.

Subject closed!!

Thanks

17 Feb 2015, 3:08 AM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: whynopadlock shows aform ssl error

barco57:

you need to change the src calls for the cot image to call secure at all times. So your looking for this

src="http://www.sourceforherbs.com/images/cot_black.gif"

> 
> and change too
> 
> ```
src="https://www.sourceforherbs.com/images/cot_black.gif"

Even better would be to specify no protocol, so it auto-detects:

src="//www.sourceforherbs.com/images/cot_black.gif"

... or even better still would be to leave out the domain altogether:

src="/images/cot_black.gif"