Web-To-Lead Capture Stopped Working - Unknown SSL Issue

We’re on an early version of SuiteCRM, 7.10.15, and have had no issues for the last seven years, or so, with Web-To-Lead Capture.

Recently, the lead forms stopped working and, when trying to submit, says it’s trying to send over an unsecure connection.

However, the URL and index.php page of SuiteCRM both have & show valid SSL certificates as do all the pages of the lead capture forms.

In addition, there’s a working rewrite on all .htaccess files that automatically redirects anyone attempting to access via “http://” to “https://”.

But, when attempting to submit the form, it now redirects somehow to this insecure page:

http://[SUITECRM FOLDER]//index.php?entryPoint=WebToLeadCapture
(note the “http”)

And displays this error:

" The information you’re about to submit is not secure
Because this form is being submitted using a connection that’s not secure, your information will be visible to others."

I just can’t figure out why, after many years of no issues, this would suddenly start redirecting to an unsecure page and, with the way it’s setup, I don’t understand how it can even occur.

Anyone have any idea why this started happening and how to fix?

Thanks!

Check your site_url setting in config.php.

Check also the code you have in your page, the HTML snippet that SuiteCRM provided for you years ago, probably has the old “http” in it.

The site URL is set to https:// and the page snippet also references all secure URL’s:

<script type="text/javascript" src="[SuiteCRM Directory]/cache/include/javascript/sugar_grp1.js?v=Ol1_DuQYqRPx8RU6D6beOw"></script>
<script type="text/javascript" src="[SuiteCRM Directory]/cache/include/javascript/calendar.js?v=Ol1_DuQYqRPx8RU6D6beOw"></script>

NOTE: Somewhere in one of those scripts the page must be redirecting to a non-secure version of index.php but I can’t see that js script in the specified directory.

Also, on some browsers, when submitting the lead I am able to “Proceed Anyway” and the lead does successfully submit to the system.