Post by vtoshev » Wed Feb 28, 2018 8:07 pm

Hello,

I installed SSL on my whole store which is working on Opencart 1.5.5.1. After some configuration I managed to get the green padlock on all pages and everything is working fine except the forms - the contact form, the coupon code form and any other form for that matter that I cannot think at the moment. When checking in the Console the POST URL is http and it is then redirected by 301 ( this is set in the .htaccess file). I read more than 15 previous topics on the matter and tried multiple solutions but nothing seems to be working, I am not a developer so I cannot find the line in the code where the forms are controlled so that I can overwrite them to use https instead of http.
I would greatly appreciate it if anyone can help me out. This is my contact form https://zatelefona.bg/contact

Thanks,
Viktor

Newbie

Posts

Joined
Wed May 01, 2013 8:03 pm

Post by IP_CAM » Thu Mar 01, 2018 4:23 am

Well, after counting up to about 200 http:// Links on your https:// Contact Page,
I stopped further searching...
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by vtoshev » Mon Mar 05, 2018 7:44 pm

Hello,

The contact page has green padlock, all http links are redirected to https, this was done following the guide to edit the contact.php and all the other files. As I stated this is not overriding the form pages for some reason on Opencart 1.5.5.1. In addition I cannot change the quantity of a product in the shopping cart because again the information is send through some sort of form. I am not a developer, if someone could help fix this issue I would very much appreciate it.

Thanks,
Viktor

Newbie

Posts

Joined
Wed May 01, 2013 8:03 pm

Post by IP_CAM » Tue Mar 06, 2018 11:29 am

Image

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by vtoshev » Tue Mar 06, 2018 7:05 pm

Hello,

Yes I checked the https://www.whynopadlock.com/ website multiple times when I was fixing my other pages that had mixed content. I have seen the message that the form is pointing to http instead of https. I tried searching in the code how the forms are controlled and why they are forcing http instead of https but I wasn't able to find this information. I thought there should be some kind of hard coded http link but it seems that the links are build in another way. This is why I opened this thread explaining that the forms are not working so if anyone can point me to the specific part of the code where the forms are controlled or let me know how to check this and fix this on my own I will very much appreciate it. Its just that this troubleshooting is way over my understanding of code and troubleshooting it.

Regards,
Viktor

Newbie

Posts

Joined
Wed May 01, 2013 8:03 pm

Post by IP_CAM » Wed Mar 07, 2018 1:28 am

Well as I wrote, you have hundreds of http:// linkings on this page.
But if you are unable, to find out, why this happen, you'll need a Pro.
Good Luck!
Ernie
---

Code: Select all

<div id="header_menu">
	<a href="http://zatelefona.bg/"><img src="https://zatelefona.bg/image/data/LOGO_ON_SITE.png" alt="Контакт с нас"/></a>

Code: Select all

div class="box mobile-menu" style="display: none;">
  <div class="box-content">
    <div class="box-category">
      <ul>
                <li>
          <a href="http://zatelefona.bg/samsung">Samsung</a>
                    <ul>
                        <li>
              <a href="http://zatelefona.bg/samsung/samsung-galaxy-note-8">Galaxy Note 8</a>
            </li>
                        <li>
              <a href="http://zatelefona.bg/samsung/samsung-galaxy-s8">Galaxy S8</a>
</li>

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by vtoshev » Wed Mar 07, 2018 6:47 pm

Hello Ernie,

All of these links are successfully redirected to https, you can check this by opening them in a new browser window, this is why there is a green padlock on the page, otherwise it would have been mixed content or something else. As I explained for the 4th time the issue seems to be with the form action, possibly with this line
<form action="http://zatelefona.bg/contact" method="post" enctype="multipart/form-data">
so if anyone who knows opencart 1.5.5.1 can tell me where the form is controlled or with which line of code I will appreciate it.
If anyone is willing to fix this and be paid for it please feel free to send me a PM.

Newbie

Posts

Joined
Wed May 01, 2013 8:03 pm

Post by ADD Creative » Fri Mar 09, 2018 7:13 pm

What are HTTP_SERVER, HTTPS_SERVER, HTTP_CATALOG and HTTPS_CATALOG set to in your config.php and admin/config.php?

www.add-creative.co.uk


Expert Member

Posts

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

Post by vtoshev » Tue Mar 13, 2018 6:47 pm

Hello ADD Creative,

Thank you for your response. The issue has been fixed. As I explained because all the forms were not working i.e. I could not change product quantity in the basket, the contact form was not working, I could not apply promo code at the basket etc I tried to disable the SSL until I find any solution. Last night I disabled it from the Admin Panel but since it didn't work I re-enable it so that I can continue fixing it in the config files in the morning. This morning I wasn't able to log in to the admin panel because the SSL warning message from Firefox ( a known issue) so I started editing the config files in order to have http instead of https and the .htaccess file, I still not able to log in to the admin panel so I put the https back on in the config files and oh a miracle I logged in the the admin panel and much to my amazement the forms are now working, I am not sure why they started working from just disabling/enabling the ssl in the admin panel and editing the config files. I wrote this whole explanation so that if anyone encounters similar issue it can maybe help solve it.

Regards,
Viktor

Newbie

Posts

Joined
Wed May 01, 2013 8:03 pm
Who is online

Users browsing this forum: No registered users and 378 guests