soterios Posted April 17, 2018 Share Posted April 17, 2018 [PrestaShopException] Invalid address #327at line 444 in file classes/Address.php 439. // if an id_address has been specified retrieve the address 440. if ($id_address) { 441. $address = new Address((int)$id_address); 442. 443. if (!Validate::isLoadedObject($address)) { 444. throw new PrestaShopException('Invalid address #'.(int)$id_address); 445. } 446. } elseif ($with_geoloc && isset($context->customer->geoloc_id_country)) { 447. $address = new Address(); 448. $address->id_country = (int)$context->customer->geoloc_id_country; 449. $address->id_state = (int)$context->customer->id_state; AddressCore::initialize - [line 197 - classes/tax/Tax.php] - [1 Arguments] TaxCore::getProductEcotaxRate - [line 739 - classes/Cart.php] - [1 Arguments] CartCore->getProducts - [line 3903 - classes/Cart.php] CartCore->isVirtualCart - [line 1836 - classes/Cart.php] CartCore->getOrderTotal - [line 1753 - classes/Cart.php] - [2 Arguments] CartCore::getTotalCart - [line 862 - controllers/admin/AdminCartsController.php] - [3 Arguments] AdminCartsControllerCore->getOrderTotalUsingTaxCalculationMethod - [line 335 - classes/helper/HelperList.php] - [2 Arguments] HelperListCore->displayListContent - [line 164 - classes/helper/HelperList.php] HelperListCore->generateList - [line 922 - controllers/admin/AdminCartsController.php] - [2 Arguments] AdminCartsControllerCore->renderList - [line 2073 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 253 - classes/controller/Controller.php] ControllerCore->run - [line 428 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 96 - admin/index.php] Iemand ook deze melding bij het openen van de winkelwagens? Uw huidige PrestaShop versie : 1.7.3.1 Gr Bas Link to comment Share on other sites More sharing options...
sancarroch Posted May 17, 2018 Share Posted May 17, 2018 I have too that problem Link to comment Share on other sites More sharing options...
sancarroch Posted May 17, 2018 Share Posted May 17, 2018 On 4/17/2018 at 11:29 AM, soterios said: [PrestaShopException] Invalid address #327at line 444 in file classes/Address.php 439. // if an id_address has been specified retrieve the address 440. if ($id_address) { 441. $address = new Address((int)$id_address); 442. 443. if (!Validate::isLoadedObject($address)) { 444. throw new PrestaShopException('Invalid address #'.(int)$id_address); 445. } 446. } elseif ($with_geoloc && isset($context->customer->geoloc_id_country)) { 447. $address = new Address(); 448. $address->id_country = (int)$context->customer->geoloc_id_country; 449. $address->id_state = (int)$context->customer->id_state; AddressCore::initialize - [line 197 - classes/tax/Tax.php] - [1 Arguments] TaxCore::getProductEcotaxRate - [line 739 - classes/Cart.php] - [1 Arguments] CartCore->getProducts - [line 3903 - classes/Cart.php] CartCore->isVirtualCart - [line 1836 - classes/Cart.php] CartCore->getOrderTotal - [line 1753 - classes/Cart.php] - [2 Arguments] CartCore::getTotalCart - [line 862 - controllers/admin/AdminCartsController.php] - [3 Arguments] AdminCartsControllerCore->getOrderTotalUsingTaxCalculationMethod - [line 335 - classes/helper/HelperList.php] - [2 Arguments] HelperListCore->displayListContent - [line 164 - classes/helper/HelperList.php] HelperListCore->generateList - [line 922 - controllers/admin/AdminCartsController.php] - [2 Arguments] AdminCartsControllerCore->renderList - [line 2073 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 253 - classes/controller/Controller.php] ControllerCore->run - [line 428 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 96 - admin/index.php] Iemand ook deze melding bij het openen van de winkelwagens? Uw huidige PrestaShop versie : 1.7.3.1 Gr Bas I've already looked for the solution in a more rude way ... I think that you have eliminated the customer test data that it brings when installing prestashop, and the system has lost the address or rather the data of the client, the only thing that should do is go to your database and look for an example: ps10n_cart, you select all the data and you delete, then you follow where it says: ps10n_cart_product and select the data that is in the tables and you delete ... I hope you have solved ... 1 Link to comment Share on other sites More sharing options...
soterios Posted June 4, 2018 Author Share Posted June 4, 2018 I cleaned table in the database and it works ;-) Link to comment Share on other sites More sharing options...
centoasa Posted June 8, 2018 Share Posted June 8, 2018 (edited) On 4/6/2018 at 2:21 PM, soterios dice: I cleaned table in the database and it works ;-) Which table? Just found on forge==> truncate table ps_cart Edited June 8, 2018 by centoasa trovata soluzione (see edit history) Link to comment Share on other sites More sharing options...
mma87 Posted July 19, 2018 Share Posted July 19, 2018 I had the same problem, go to your database and open ps_cart table search id_address_delivery = 327 (the invalid address number) and delete the row backup the database first! 7 Link to comment Share on other sites More sharing options...
DanielaPetkova Posted July 18, 2019 Share Posted July 18, 2019 On 7/19/2018 at 6:31 PM, mma87 said: I had the same problem, go to your database and open ps_cart table search id_address_delivery = 327 (the invalid address number) and delete the row backup the database first! Hello, i just had the same issue and that fixed the problem. I had several entries so had to delete them all by looking for that exact number in search id_address_delivery column. I think the problem is appearing when user had added product to the basket and he had valid address in his/her profile. After that during checkout he decide to delete his address for some reason and did not finish the order. I was recently doing this before the problem appears and the user id is the same as my user. You can try to re-create it. I'm running Prestashop with default theme v.1.7.3, PHP 5.6.40, MySql 5.6.44 Thank you for your solution ! Link to comment Share on other sites More sharing options...
mma87 Posted July 20, 2019 Share Posted July 20, 2019 hello, yes this error can appears when the user delete his address. I suggest you to upgrade your prestashop version to the last version and php version to php 7.2 or 7.3 Matteo Link to comment Share on other sites More sharing options...
Franck_77 Posted October 30, 2019 Share Posted October 30, 2019 Hi, Same problem still exist with PS 1.7.4.2, PHP 7.1.26, MariaDB 10.1. Same way to "fix" the problem works. Thanks for the tips. Bye Link to comment Share on other sites More sharing options...
joseantgv Posted November 6, 2019 Share Posted November 6, 2019 Already fixed from PS 1.7.5.0: https://github.com/PrestaShop/PrestaShop/pull/11416 1 Link to comment Share on other sites More sharing options...
Delart Posted April 1, 2021 Share Posted April 1, 2021 Hi, Anyone tried to apply this fix to PS 1.6 ? Thanks! Link to comment Share on other sites More sharing options...
joseantgv Posted April 2, 2021 Share Posted April 2, 2021 Related post: Link to comment Share on other sites More sharing options...
Freddykhoury Posted August 13, 2021 Share Posted August 13, 2021 Hello I am using 1.7.6.8 nand i had the same problem. i fixed the issue as told but how to fix this issue so it won't happen thanks 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