Jump to content

Error "500 Server Error" on "/order" page for some specific users


Recommended Posts

Hi everyone,

I have a problem with my Prestashop website.

Only for some users, when the user tries to check-out his cart, and confirm the purchase, at the time he gets the page www.mywebsite.com/order , the server returns ERROR 500 SERVER ERROR, and the user can't complete the purchase. If the user goes back, he can change products in his cart, but as he tries to complete the purchase, this error occurs.

Has anyone the same problem?

I tried with different browsers, different IP's, different user accounts. And only for some users I have this problem.

I tried to disable Varnish. I disabled the Google Analytics Plugins by Prestashop because of it's problem with some character in the cookies. I cleared the cache, updated all plugins...

I'm running Prestashop 1.7.2 on Linux LAMP, on Google Cloud via Cloudways

Thanks!

Massimiliano

_blank_error.png

500_server_error.png

  • Like 1

Share this post


Link to post
Share on other sites

SOLVED!!!

A new "not NULL" required attribute was added to the user address db (ps_address).

All the "old" user had the value "NULL" for that attribute, so that was causing the Server Error.

Solved thanks to the prestashop application exception log.

  • Like 2

Share this post


Link to post
Share on other sites

  • 2 weeks later...

I had the same problem when I set attribute phone (in address) required. All old accounts without phone number got Server Exception 500 when placing order. Filling in phones in backoffice clients->addresses solved problem.

Edited by Smuga (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

  • 1 month later...
  • 2 months later...
  • 1 year later...

I have the same problem.

In debug mode, I got this:

[PrestaShopException]

Свойство Address->phone_mobile е празно.
at line 944 in file classes/ObjectModel.php

939.             }
940. 
941.             $message = $this->validateField($field, $this->$field);
942.             if ($message !== true) {
943.                 if ($die) {
944.                     throw new PrestaShopException($message);
945.                 }
946.                 return $error_return ? $message : false;
947.             }
948.         }
949. 
ObjectModelCore->validateFields - [line 272 - classes/ObjectModel.php]
ObjectModelCore->getFields - [line 48 - classes/AddressChecksumCore.php]
AddressChecksumCore->generateChecksum - [line 52 - classes/checkout/CartChecksum.php] - [1 Arguments]
CartChecksumCore->generateChecksum - [line 171 - controllers/front/OrderController.php] - [1 Arguments]
OrderControllerCore->restorePersistedData - [line 199 - controllers/front/OrderController.php] - [1 Arguments]
OrderControllerCore->initContent - [line 205 - classes/controller/Controller.php]
ControllerCore->run - [line 379 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 28 - index.php]

 

Edited by cpuin (see edit history)

Share this post


Link to post
Share on other sites

  • 1 year later...
  • 3 months later...
On 3/2/2018 at 2:23 AM, massimiliano_c said:

SOLVED!!!

A new "not NULL" required attribute was added to the user address db (ps_address).

All the "old" user had the value "NULL" for that attribute, so that was causing the Server Error.

Solved thanks to the prestashop application exception log.

HI I have same problem

can you give your Solution? Can you provide details on which file to modify?

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More