Jump to content

Order.php gives 500 Server Error when SSL is turned on in Prestashop


Recommended Posts

Hi. When I have SSL enabled in the Prestashop Admin panel, I am not able to access any of the typical "secured" pages, such as order.php and my-account.php etc. I get a 500 Internal Server Error.

Looking at the error log in cPanel, this is the error prompting the 500:
SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (543) of file "/home/[spam-filter]mydomain without.com[spam-filter]/public_html/shop2011/my-account.php", referer: http://[spam-filter]mydomain[spam-filter].com/shop2011/order.php

This only happens on https://[spam-filter]mydomain[spam-filter].com/shop2011/order.php (or my-account.php, etc.)
I don't get this on the regular http://[spam-filter]mydomain[spam-filter].com/shop2011/order.php (or my-account.php, etc.)

This error does not happen unless I have SSL turned on in PrestaShop.

The SSL key is installed and working correctly for the old shopping system that PrestaShop is replacing (which is located in the root of /public_html/). I'm working in /public_html/shop2011/ to get PrestaShop working while keeping the old system active.

Link to comment
Share on other sites

  • 1 year later...

Hi. When I have SSL enabled in the Prestashop Admin panel, I am not able to access any of the typical "secured" pages, such as order.php and my-account.php etc. I get a 500 Internal Server Error.

 

Looking at the error log in cPanel, this is the error prompting the 500:

SoftException in Application.cpp:422: Mismatch between target UID (99) and UID (543) of file "/home/[spam-filter]mydomain without.com[spam-filter]/public_html/shop2011/my-account.php", referer: http://[spam-filter]mydomain[spam-filter]....p2011/order.php

 

This only happens on https://[spam-filter]mydomain[spam-filter].com/shop2011/order.php (or my-account.php, etc.)

I don't get this on the regular http://[spam-filter]mydomain[spam-filter]....p2011/order.php (or my-account.php, etc.)

 

This error does not happen unless I have SSL turned on in PrestaShop.

 

The SSL key is installed and working correctly for the old shopping system that PrestaShop is replacing (which is located in the root of /public_html/). I'm working in /public_html/shop2011/ to get PrestaShop working while keeping the old system active.

 

I had the same problem, I eventually traced it down to a problem with my SSL certificate not being installed on the correct username on the server. My SSL was installed under the user account 'nobody' (UID 99) as instructed but once installed it needs to be updated to the user account of the website.

 

To resolve this issue you will need to edit the http.conf file on your server to update the user account name from 'nobody' to whatever your account name is (connected to UID 543) to then associate correctly with the SSL certificate. Once edited you will need to rebuild your server to push the changes live.

 

I hope this helps.

Cat

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...