desger99 Posted November 5, 2015 Share Posted November 5, 2015 Hello, Since 1 week I am experimenting a problem when I am trying to see my "Shopping Cart" list on prestashop. When I click on "Shopping cart" button the next text is been display: [PrestaShopException]Invalid address #75at line 401 in file classes/Address.php 396. // if an id_address has been specified retrieve the address397. if ($id_address) {398. $address = new Address((int)$id_address);399.400. if (!Validate::isLoadedObject($address)) {401. throw new PrestaShopException('Invalid address #'.(int)$id_address);402. }403. } elseif ($with_geoloc && isset($context->customer->geoloc_id_country)) {404. $address = new Address();405. $address->id_country = (int)$context->customer->geoloc_id_country;406. $address->id_state = (int)$context->customer->id_state; AddressCore::initialize - [line 197 - classes/tax/Tax.php] - [1 Arguments] TaxCore::getProductEcotaxRate - [line 610 - classes/Cart.php] - [1 Arguments] CartCore->getProducts - [line 1494 - classes/Cart.php] CartCore->getOrderTotal - [line 1392 - classes/Cart.php] - [2 Arguments] CartCore::getTotalCart - [line 854 - controllers/admin/AdminCartsController.php] - [3 Arguments] AdminCartsControllerCore->getOrderTotalUsingTaxCalculationMethod - [line - ] - [2 Arguments] call_user_func_array - [line 321 - classes/helper/HelperList.php] - [2 Arguments] HelperListCore->displayListContent - [line 156 - classes/helper/HelperList.php] HelperListCore->generateList - [line 914 - controllers/admin/AdminCartsController.php] - [2 Arguments] AdminCartsControllerCore->renderList - [line 2025 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 189 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 58 - admin/index.php] Does anyone know what is that mean and how can I solve it? Thanks! Link to comment Share on other sites More sharing options...
NemoPS Posted November 6, 2015 Share Posted November 6, 2015 I've seen that happening. It means the associated address has been deleted. What I did back then was checking the customer name, and assign another address id in the db if present Link to comment Share on other sites More sharing options...
desger99 Posted November 6, 2015 Author Share Posted November 6, 2015 But it says that the invalid address is the number 75, I have delete this address already and nothing happen. How can I know which of my customers is causing this problem? Thanks for the answer! @Nemo1 Link to comment Share on other sites More sharing options...
NemoPS Posted November 7, 2015 Share Posted November 7, 2015 No, the problem is that you deleted it. You need to change that 75 to something existing, in the database. There should be an associated customer id as well. Link to comment Share on other sites More sharing options...
desger99 Posted November 7, 2015 Author Share Posted November 7, 2015 Yes it was the problem, I just created another address with the ID that was having the problem. Thank so much! Link to comment Share on other sites More sharing options...
Recommended Posts