Jump to content

No SSL enable/disable radio buttons - Pages not working when SSL enabled. - Please can someone help


glennlawre

Recommended Posts

When I select to enable ssl in my Preferences I don't see an "Enable or Disable" check-box. This is my first Prestashop so I am not even sure if there should be one. But from reading the Prestashop documentation it states that:

 

Enable SSL. Providing a SSL connection to your shop is a great way

to reassure your customers about the safety of their data

(authentication, credit card, etc.) on your shop. If your hosting

provider does support SSL, make sure to activate PrestaShop's SSL

support, by clicking on the link. This will reveal a selector. Choose

"Yes".

 

When I select "Please click here to use HTTPS protocol before enabling SSL." it does something as it refreshes the page.

 

Does anyone know of this as an issue?

 

I am using Prestashop 1.4.8.3. After clicking this I can use https in my address and it works, well kind of. I am having other issues with not all content displaying securely, but that's for a different post!

 

Thanks in advance...

Edited by glennlawre (see edit history)
Link to comment
Share on other sites

I have been looking at the file "admin\tabs\AdminPreferences.php" and on lines 113 & 114, I found that "PS_SSL_ENABLED" was set to disabled. When I change this to enabled I can now see the radio buttons to enable SSL in Preferences. They look a bit funny but they are there.

 

When I set to enabled it seems to enable ssl for the correct pages, i.e. contact, checkout, login etc. When I go to my login or contact page in the Front Office, it does redirect to https! However the page does not display.

 

I get the below error from Firefox:

 

"The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

 

In IE8 the page just goes nowhere.

 

When you set the SSL to enabled, essentially what this does is change a setting in the database from 0 to 1 for "PS_SSL_ENABLED". So even if you don't get the radio buttons, you can probably just modify the database via phpMyAdmin and set this value to 1 to enable.

 

Can anyone advise what might be going on with my pages not working when ssl is enabled?

 

I was hoping it was going to be easy to setup this SSL!

Link to comment
Share on other sites

  • 3 weeks later...

I've got the same problem with 1.4.7.0 - I click on "Please click here to use HTTPS protocol before enabling SSL" and the page refreshes and changes to the https version but no checkboxes appear.

 

I've had to make so many modifications to get around different problems that upgrading isn't really an option. I've seen other posts documenting the same problem but none of the solutions help.

 

These look promising but don't end up helping...

http://forge.prestashop.com/browse/PSCFI-2485

http://www.prestashop.com/forums/topic/117254-solved-cannot-enable-ssl/

 

I suppose if people explained what they mean by the "Admin file tab" it would help though!! The only place I could find that seemed to make sense was in the login.php file in the admin folder (which of course is no longer called "admin")

 

Any help with this would be really appreciated.

Link to comment
Share on other sites

akingston,

 

I would actually just enable the setting via the database if you want to use SSL. See my note regarding setting SSL to enabled in the DB.

 

When you set the SSL to enabled, essentially what this does is change a setting in the database from 0 to 1 for "PS_SSL_ENABLED". So even if you don't get the radio buttons, you can probably just modify the database via phpMyAdmin and set this value to 1 to enable.

 

If you open phpMyAdmin and do a search for entry PS_SSL_ENABLED, you can edit the value for this to 1 and this will enable SSL for you. You should then see the radio options to enable/disable SSL in your BO.

 

Hope this helps...

Link to comment
Share on other sites

Thanks glennlawre - I tried that yesterday though and the pages wouldn't redirect correctly. Also the radio buttons still didn't show up!

 

I also changed PS_SSL_ENABLED to "enabled" as you mentioned but that just showed me a text box in the BO with "1" in it but it had the same problem as changing it in the DB.

 

I thought from your comments above, it didn't work for you either though. Did you actually manage to get it working in the end?

Link to comment
Share on other sites

I actually had to hire a PHP developer to sort the issue! I played around with it for a few days and couldn't get it working. I posted a topic on the Prestsashop forum to see if I could hire someone to solve the issue, didn't get great responses though. The couple I did get could not sort the issue!

 

I managed to find a PHP developer on another site and he resolved the issue for me, and for half the cost of what I was quoted by the guys on here, and they couldn't even sort the issue!

 

If you want then PM me your email address and I will pass it on to the PHP developer who fixed it for me, and for a very reasonable price :)

 

Also, he had it sorted in the same day...

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Hi,

I have prestashop 1.4.9.0 website working properly. Now i bought and installed SSL to my apache server. However, I cannot enable SSL at BO. When I click "Please click here to use HTTPS protocole before enabling SSL" system turns http to https and gives error 107 (net::ERR_SSL_PROTOCOL_ERROR)

Do i have to do another settings after SSL installed to server and before enabling it at BO.

 

Please Help

Link to comment
Share on other sites

As advised above, I had to source a php developer to resolve this issue for me. I did not seen this issue you have seen though. But in my BO I could not enable SSL by using that button.

 

Try enabling it via your database. If you can access phpMyAdmin do a search on the db for string "PS_SSL_ENABLED" and modify the value on this from 0 to 1. This should enable SSL for you. However I think you may still have the same issue as I did when trying to use SSL.

Link to comment
Share on other sites

  • 6 months later...

Quite a handy thread this; I'm having similar problems in not being able to enable SSL even though my admin shows https in the browser having clicked the link to "use the protocol". No option to "Enable"...

 

I was going to give the database activation method a go, but there is no SSL_ENABLED entry in the database (same 'ps_' prefix by the way). Curious... ?

 

EDIT: Errr... Ok, my bad! I did a search, and should have read the thread more carefully. Found it!

Edited by FranksBank (see edit history)
Link to comment
Share on other sites

In my database the value 0 can not be changed.

 

I had to download the table, change it and upload it. But it is working now, sort of. My hosting company uses cpanel and my secure domain needs a / at the end of a url when using friendly urls.

Edited by mdius (see edit history)
Link to comment
Share on other sites

  • 5 weeks later...

SOLUTION INCLUDED

 

I just had similar problem with my presta 1.4.10 after SSL cert was added. Radio button to enable ssl never appeard in BO, but i could browse my page with https typing it manual.

 

I wrote e-mail to admin, saying what the problem is and it could be problem on HOSTING side. He responded me and soultion is to add following line at start of .htaccess in your root prestashop directory:

SetEnvIf X-Forwarded-Proto https HTTPS=on

 

I am aware that it is solution for their webserver specific configuration but atleast you can try with this one before you start to change things in prestashop core. Don't be afraid to ask your admins! Hope it helps someone, because i have really bad time searching for solution for this.

Edited by hootersam (see edit history)
  • Like 4
Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...

SOLUTION INCLUDED

 

I just had similar problem with my presta 1.4.10 after SSL cert was added. Radio button to enable ssl never appeard in BO, but i could browse my page with https typing it manual.

 

I wrote e-mail to admin, saying what the problem is and it could be problem on HOSTING side. He responded me and soultion is to add following line at start of .htaccess in your root prestashop directory:

SetEnvIf X-Forwarded-Proto https HTTPS=on
I am aware that it is solution for their webserver specific configuration but atleast you can try with this one before you start to change things in prestashop core. Don't be afraid to ask your admins! Hope it helps someone, because i have really bad time searching for solution for this.

 

 

THANK YOU , PROBLEM SOLVED WITH YOUR .HTACCESS RECOMMENDATION! YOU ROCK BUDDY!

PRESTA 1.6.0.9 LATEST ONE AUGUST 2014

  • Like 2
Link to comment
Share on other sites

  • 2 months later...

Thank you, it solved some of our porblems. (unfortunately not all)

 

If you want then PM me your email address and I will pass it on to the PHP developer who fixed it for me, and for a very reasonable price :)

Also, he had it sorted in the same day...

 

Could you PM me his details!? hopefully he will be able to help us :)

Link to comment
Share on other sites

  • 2 months later...

spdentalsupplies - I just sent you a PM with details of the person who helped both glennlawre and I.

 

I asked his permission to send this by PM to you.

 

NOTE: Anyone else looking for this, please note I don't monitor these forums or the email notifications often so it was by chance I saw this. If you are looking for the details however, hopefully spdentalsupplies will help you if glennlawre or I can't...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...