Jump to content

Address Problem


sirvova

Recommended Posts

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

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. 

 

 

 

ANY ADVICE?

Link to comment
Share on other sites

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. 
Link to comment
Share on other sites

  • 3 years later...
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 

 

image.thumb.png.d7e77e2496aec2ff0b41e9a66dcc5207.png

Link to comment
Share on other sites

  • 1 month later...
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 

 

image.thumb.png.d7e77e2496aec2ff0b41e9a66dcc5207.png

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

  • 6 months later...
  • 3 months later...

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

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

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

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

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

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