massimiliano_c Posted March 1, 2018 Share Posted March 1, 2018 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 1 Link to comment Share on other sites More sharing options...
massimiliano_c Posted March 1, 2018 Author Share Posted March 1, 2018 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. 2 Link to comment Share on other sites More sharing options...
Smuga Posted March 13, 2018 Share Posted March 13, 2018 (edited) 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 March 13, 2018 by Smuga (see edit history) 1 Link to comment Share on other sites More sharing options...
Johana Posted March 20, 2018 Share Posted March 20, 2018 (edited) This was help helpful. Edited March 20, 2018 by Johana (see edit history) Link to comment Share on other sites More sharing options...
saad elalfy Posted May 1, 2018 Share Posted May 1, 2018 hello guys i have the same issue how can i fix it when user going to complete the purchase i get these error Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted July 13, 2018 Share Posted July 13, 2018 Same question here. Wtf with this bug... Link to comment Share on other sites More sharing options...
cpuin Posted October 11, 2019 Share Posted October 11, 2019 (edited) 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 October 11, 2019 by cpuin (see edit history) Link to comment Share on other sites More sharing options...
b3drik Posted December 8, 2020 Share Posted December 8, 2020 Thanks a lot! this was very helpful!Pour les francophones, j'ai trouvé une explication claire ici = https://www.matthieu-jalbert.fr/error-address-phone-mobile-prestashop-1-7/ Link to comment Share on other sites More sharing options...
mfmcb Posted March 8, 2021 Share Posted March 8, 2021 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now