Post by mikeinterserv » Sat Dec 19, 2020 11:10 pm

Hello
I have an error from chrome saying the submit of the contact form is insecure.
I have done everything required for the entire site to be SSL enabled.
I see someone else has this same error with no adequate response so far.
Version 3.0.3.6
Last edited by mikeinterserv on Sun Dec 20, 2020 4:21 am, edited 1 time in total.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by Cue4cheap » Sun Dec 20, 2020 12:44 am

mikeinterserv wrote:
Sat Dec 19, 2020 11:10 pm
Hello
I have an error from chrome saying the submit of the contact form is insecure.
I have done everything required for the entire site to be SSL enabled.
I see someone else has this same error with no adequate response so far.
Version 3.0.3.6
Do you have a site url we can look at? Did you check all your configs? Does it only happen in chrome? is this a new install without modifications? What theme are you using?

cue4cheap not cheap quality


Active Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by mikeinterserv » Sun Dec 20, 2020 12:50 am

Yes new install
https://www.************.co.uk/Shop/index.php?route=information/contact
Also the success text does not display just the title Contact Us after the form is sent.
Feel free to test it
The email works correctly.
When you inspect the success page in chrome the url for the continue button that takes you back home is an http url and NOT https that is what chrome must be seeing to throw the error Also the image LOGO to take you to home page also has http url and NOT https
Last edited by mikeinterserv on Sun Dec 20, 2020 5:35 am, edited 2 times in total.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by Cue4cheap » Sun Dec 20, 2020 1:20 am

Check your configs. Including this line: HTTP_SERVER
If you look at your source you have a bunch of http:// links

Mike

cue4cheap not cheap quality


Active Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by mikeinterserv » Sun Dec 20, 2020 1:25 am

I checked those config files
http server has http
https server has https
etc
HTTPdefine('HTTP_SERVER', 'http://www.**********/Shop/');//
HTTPSdefine('HTTPS_SERVER', 'https://www.********/Shop/');//

Where do you think the http links are coming from as oppose to https
Last edited by mikeinterserv on Sun Dec 20, 2020 5:36 am, edited 1 time in total.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by ADD Creative » Sun Dec 20, 2020 1:30 am

It's the redirect that is wrong. Which is this line.
https://github.com/opencart/opencart/bl ... ct.php#L27

This points to a issue with congfig.php. Are both HTTP_SERVER and HTTPS_SERVER set to https?

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by mikeinterserv » Sun Dec 20, 2020 1:32 am

No http is http
https is https
do they BOTH need setting to https then

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by ADD Creative » Sun Dec 20, 2020 1:37 am

Yes, they both need to be https if you want your whole site to use https.

It comes from that older versions could have some pages http and some https. This was broken in version 2 onward. So you just have so set both to https.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by mikeinterserv » Sun Dec 20, 2020 1:39 am

OK thank you very much for your help
I will do this and report back
Thanks again I didn't know you had to do that

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by mikeinterserv » Sun Dec 20, 2020 1:44 am

OK that worked perfectly for the chrome error
I still do not see success text that message has been sent to store owner
Just Contact Us title as you can see - any thoughts on that
Its working and the email comes through but no success text

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by ADD Creative » Sun Dec 20, 2020 4:08 am

In catalog/language/en-gb/information/contact.php

Try changing.

Code: Select all

$_['text_success']   = '<p>Your enquiry has been successfully sent to the store owner!</p>';
To.

Code: Select all

$_['text_message']   = '<p>Your enquiry has been successfully sent to the store owner!</p>'; 

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by mikeinterserv » Sun Dec 20, 2020 4:18 am

Thank you so much, worked PERFECT
How is such a simple error there in a brand new install.
Do you know why the email shows as having an attachment in the inbox

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by ADD Creative » Sun Dec 20, 2020 4:59 am

Probably the use of Content-Type: multipart/mixed.

This was changed here for some reason. You could try changing it back to multipart/related in the mail/mail.php and mail/wmtp.php files.
https://github.com/opencart/opencart/co ... cbfb105033

Both are probably wrong for a plain text only email.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by mikeinterserv » Sun Dec 20, 2020 5:29 am

OK that fixed that issue also
Thanks again for all your help it is much appreciated

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales
Who is online

Users browsing this forum: No registered users and 25 guests