sirvova Posted December 20, 2018 Share Posted December 20, 2018 Hey Guys, I have a problem on my site , version 1.7.1.1 When user tries to add an address pressing the button it throws on 500 error page with this " order?id_address=0 " How can I fix this problem? Thx 1 Link to comment Share on other sites More sharing options...
joseantgv Posted December 20, 2018 Share Posted December 20, 2018 2 hours ago, sirvova said: Hey Guys, I have a problem on my site , version 1.7.1.1 When user tries to add an address pressing the button it throws on 500 error page with this " order?id_address=0 " How can I fix this problem? Thx If you get error 500 or blank page, always turn on errors Link to comment Share on other sites More sharing options...
sirvova Posted December 21, 2018 Author Share Posted December 21, 2018 THANK YOU.. This is the problem: [PrestaShopException] Property Address->id_country is empty.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 683 - classes/ObjectModel.php] ObjectModelCore->update - [line 202 - classes/Address.php] - [1 Arguments] AddressCore->update - [line 219 - classes/Address.php] AddressCore->delete - [line 73 - classes/form/CustomerAddressPersister.php] CustomerAddressPersisterCore->save - [line 163 - classes/form/CustomerAddressForm.php] - [2 Arguments] CustomerAddressFormCore->submit - [line 58 - controllers/front/AddressController.php] AddressControllerCore->postProcess - [line 194 - classes/controller/Controller.php] ControllerCore->run - [line 369 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] ANY ADVICE? Link to comment Share on other sites More sharing options...
sirvova Posted December 21, 2018 Author Share Posted December 21, 2018 19 hours ago, joseantgv said: If you get error 500 or blank page, always turn on errors THANK YOU.. This is the problem: [PrestaShopException] Property Address->id_country is empty.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 683 - classes/ObjectModel.php] ObjectModelCore->update - [line 202 - classes/Address.php] - [1 Arguments] AddressCore->update - [line 219 - classes/Address.php] AddressCore->delete - [line 73 - classes/form/CustomerAddressPersister.php] CustomerAddressPersisterCore->save - [line 163 - classes/form/CustomerAddressForm.php] - [2 Arguments] CustomerAddressFormCore->submit - [line 58 - controllers/front/AddressController.php] AddressControllerCore->postProcess - [line 194 - classes/controller/Controller.php] ControllerCore->run - [line 369 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] Link to comment Share on other sites More sharing options...
Ayush Gupta Posted July 5, 2022 Share Posted July 5, 2022 I have a same problem with the address submission. After clicking on continue it redirects to /order?id_address=0 and never submitted the address. Link to comment Share on other sites More sharing options...
Prestachamps Posted July 5, 2022 Share Posted July 5, 2022 Hi,@Ayush Gupta Is the error the same? If so, the country that is required is not selected and therefore does not allow the address to be saved. But in order to help more, please send us a screenshot about error with debug mode. Have a nice day Kind regards, Leo Link to comment Share on other sites More sharing options...
Ayush Gupta Posted July 5, 2022 Share Posted July 5, 2022 1 hour ago, Prestachamps said: Hi,@Ayush Gupta Is the error the same? If so, the country that is required is not selected and therefore does not allow the address to be saved. But in order to help more, please send us a screenshot about error with debug mode. Have a nice day Kind regards, Leo Here's the screenshot which shows after click on continue...... It never goes to the shipping method Link to comment Share on other sites More sharing options...
toutenhoofd Posted August 23, 2022 Share Posted August 23, 2022 On 7/5/2022 at 4:53 AM, Ayush Gupta said: Here's the screenshot which shows after click on continue...... It never goes to the shipping method We are having EXACTLY this same issue. After entering the address we get redirected to order?id_address=0 and it never saves. Did you resolve this? I'd love to know your solution. Thank you. Link to comment Share on other sites More sharing options...
Igbarah Posted February 27, 2023 Share Posted February 27, 2023 Hi, we have this issue also in our shop https://shop.osakasolutions.com/ where can I solve it?, thanks in advanced. Link to comment Share on other sites More sharing options...
Andrejkov Posted June 2, 2023 Share Posted June 2, 2023 Hello. I have same problem, When placing the first order as a guest, in step 2. Addresses, when a country other than Poland is chosen the address is not saved (the url becomes order?id_address=0), but if the first address added is an address in Poland, then additional addresses in other countries can be added. What might be causing this problem, which prevents adding an address in a country other than Poland as a guest's first address? Can sombody help me? Link to comment Share on other sites More sharing options...
Nickz Posted June 2, 2023 Share Posted June 2, 2023 49 minutes ago, Andrejkov said: Hello. I have same problem, When placing the first order as a guest, in step 2. Addresses, when a country other than Poland is chosen the address is not saved (the url becomes order?id_address=0), but if the first address added is an address in Poland, then additional addresses in other countries can be added. What might be causing this problem, which prevents adding an address in a country other than Poland as a guest's first address? Can sombody help me? All of sudden or do we deal here with a newly set up shop? Link to comment Share on other sites More sharing options...
Igbarah Posted June 2, 2023 Share Posted June 2, 2023 You must make sure that in International / Countries you have the same fields for all countries, I think there is one that you have put too much in other countries and that is why it gives an error. Best regards Link to comment Share on other sites More sharing options...
Andrejkov Posted June 2, 2023 Share Posted June 2, 2023 3 hours ago, Nickz said: All of sudden or do we deal here with a newly set up shop? Its a newly set up shop, PS. 1.7.8. 2 hours ago, Igbarah said: You must make sure that in International / Countries you have the same fields for all countries, I think there is one that you have put too much in other countries and that is why it gives an error. I checked and i have same fields there. Here is video shows my problem: https://www.youtube.com/watch?v=3dkSUV-gSzY Regards. Link to comment Share on other sites More sharing options...
Igbarah Posted June 2, 2023 Share Posted June 2, 2023 ok, you must go to Clients / Adress and below click in the button set the required fields for this section, if you disable some options your form must work again Link to comment Share on other sites More sharing options...
Andrejkov Posted June 3, 2023 Share Posted June 3, 2023 15 hours ago, Igbarah said: ok, you must go to Clients / Adress and below click in the button set the required fields for this section, if you disable some options your form must work again required fields: postcode, phone - I Have added this fields in countries. Link to comment Share on other sites More sharing options...
Igbarah Posted June 3, 2023 Share Posted June 3, 2023 Try deactivating the phone option, if it still doesn't work, I wouldn't know how to help you anymore. 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