Jump to content

Error: The delivery address country is not active.


Recommended Posts

Hi,

i use eBay  module ver. 1.9.2. 

without having done anything, I have this error and the website is blocked.
Can you help?
website is www.piaggiovespa.it
 
Thank you

 

[PrestaShopException]
 
The delivery address country is not active.
at line 248 in file classes/PaymentModule.php
 
242. if (Configuration::get('PS_TAX_ADDRESS_TYPE') == 'id_address_delivery')
243. {
244. $address = new Address($id_address);
245. $this->context->country = new Country($address->id_country, $this->context->cart->id_lang);
246. if (!$this->context->country->active)
247. throw new PrestaShopException('The delivery address country is not active.');
248. }
249. 
250. $carrier = null;
251. if (!$this->context->cart->isVirtualCart() && isset($package['id_carrier']))
252. {
PaymentModuleCore->validateOrder - [line 423 - modules/ebay/classes/EbayOrder.php] - [10 Arguments]
EbayOrder->validate - [line 832 - modules/ebay/ebay.php] - [2 Arguments]
Ebay->importOrders - [line 621 - modules/ebay/ebay.php] - [1 Arguments]
Ebay->hookHeader - [line 509 - classes/Hook.php] - [1 Arguments]
HookCore::exec - [line 447 - classes/controller/FrontController.php] - [1 Arguments]
FrontControllerCore->initContent - [line 37 - controllers/front/IndexController.php]
IndexControllerCore->initContent - [line 180 - classes/controller/Controller.php]
ControllerCore->run - [line 373 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 28 - index.php]

 

 

Share this post


Link to post
Share on other sites
  • 6 months later...

How did you fix this? Have just had the same error occur.

Someone bought on eBay from Russia, and we normally do not ship to Russia on Prestashop, so when the system has imported it, it has come up with an error (the same as above - see below).

 

I have tried renaming the ebay module folder to "ebay2" to disable it (the site then works). I have then 'enabled' Russia as a country which is shipped to, but when I renable the ebay module (renaming it back to "ebay") the same error occurs. Please advise.

 

[PrestaShopException]

The delivery address country is not active.
at line 272 in file classes/PaymentModule.php

267. 268.                     if (Configuration::get('PS_TAX_ADDRESS_TYPE') == 'id_address_delivery') {269.                         $address = new Address($id_address);270.                         $this->context->country = new Country($address->id_country, $this->context->cart->id_lang);271.                         if (!$this->context->country->active) {272.                             throw new PrestaShopException('The delivery address country is not active.');273.                         }274.                     }275. 276.                     $carrier = null;277.                     if (!$this->context->cart->isVirtualCart() && isset($package['id_carrier'])) {

Share this post


Link to post
Share on other sites
  • 5 months later...

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

Important Information

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