mindas Posted May 3, 2017 Share Posted May 3, 2017 Hi, Could someone help me on this one? the prestashop version 1.7.0.6 /admin/index.php?controller=AdminCarts&token=58... When I click on Orders >Shopping Carts I get this error. [PrestaShopException]Invalid address #13at line 441 in file classes/Address.php 436. // if an id_address has been specified retrieve the address437. if ($id_address) {438. $address = new Address((int)$id_address);439. 440. if (!Validate::isLoadedObject($address)) {441. throw new PrestaShopException('Invalid address #'.(int)$id_address);442. }443. } elseif ($with_geoloc && isset($context->customer->geoloc_id_country)) {444. $address = new Address();445. $address->id_country = (int)$context->customer->geoloc_id_country;446. $address->id_state = (int)$context->customer->id_state; AddressCore::initialize - [line 197 - classes/tax/Tax.php] - [1 Arguments] TaxCore::getProductEcotaxRate - [line 721 - classes/Cart.php] - [1 Arguments] CartCore->getProducts - [line 3860 - classes/Cart.php] CartCore->isVirtualCart - [line 1790 - classes/Cart.php] CartCore->getOrderTotal - [line 1708 - classes/Cart.php] - [2 Arguments] CartCore::getTotalCart - [line 860 - controllers/admin/AdminCartsController.php] - [3 Arguments] AdminCartsControllerCore->getOrderTotalUsingTaxCalculationMethod - [line - ] - [2 Arguments] call_user_func_array - [line 333 - classes/helper/HelperList.php] - [2 Arguments] HelperListCore->displayListContent - [line 162 - classes/helper/HelperList.php] HelperListCore->generateList - [line 920 - controllers/admin/AdminCartsController.php] - [2 Arguments] AdminCartsControllerCore->renderList - [line 2067 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 201 - classes/controller/Controller.php] ControllerCore->run - [line 366 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 95 - admin/index.php] I installed this version, no upgrades or so. Theme classic Please help me if You can! Thanks! Link to comment Share on other sites More sharing options...
shokinro Posted May 4, 2017 Share Posted May 4, 2017 (edited) From the error message, there seems a problem with address used in the shopping cart. If it happens to specific shopping cart, then it might be problem of data, otherwise it could be bug of PrestaShop. Suggest you use the latest version of PrestaShop 1.7.1.1 if you are installing new store. Edited May 4, 2017 by shokinro (see edit history) Link to comment Share on other sites More sharing options...
mindas Posted May 4, 2017 Author Share Posted May 4, 2017 It is a live store with products, not new anymore. Upgrade? Was looking for instructions, did not find it yet. Error happens when I press in admin panel menu SELL > ORDERS > CARTS From the error message, there seems a problem with address used in the shopping cart. If it happens to specific shopping cart, then it might be problem of data, otherwise it could be bug of PrestaShop. Suggest you use the latest version of PrestaShop 1.7.1.1 if you are installing new store. Link to comment Share on other sites More sharing options...
shokinro Posted May 4, 2017 Share Posted May 4, 2017 then you will have to debug the code to find out which record of the data causes the issue. I guess the address might be empty or 0, or an ID that does not exist in some of the shopping cart records. 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