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





Share this post

Link to post
Share on other sites


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 1

Share this post

Link to post
Share on other sites

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)

Share this post

Link to post
Share on other sites

hello guys  
i have the same issue how can i fix it when user going to complete the purchase  i get these error  


Share this post

Link to post
Share on other sites

I have the same problem.

In debug mode, I got this:


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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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