JMiC Posted August 28, 2020 Share Posted August 28, 2020 (edited) Hello, I'm new user of PrestaShop and just appointed webmaster of an existing PtrestaShop site (non-profit). I get an error message from the backoffice of PrestaShop when clicking on details for a specific customers. I do not get the same error for other customer. I have 2 questions where should I start looking to solve this issue ? How could I avoid loosing the (real) customer info. It's not a test account. Thanks JMiC Config: Version de PrestaShop : 1.7.1.2 Thème actif : classic Informations du serveur : Linux #1 SMP Debian 5.5.17-1~bpo10+1 (2020-04-23) x86_64 Version du logiciel serveur : Apache/2.4.25 (Debian) Version de PHP : 5.6.40 Version de MySQL : 10.3.22-MariaDB-0+deb10u1 Edited August 31, 2020 by JMiC Issue solved - title adapted (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted August 30, 2020 Share Posted August 30, 2020 What is the error message? Link to comment Share on other sites More sharing options...
JMiC Posted August 30, 2020 Author Share Posted August 30, 2020 Hi JBW, Here is the error message received: [PrestaShopException] Invalid address #155 at line 439 in file classes/Address.php 434. // if an id_address has been specified retrieve the address 435. if ($id_address) { 436. $address = new Address((int)$id_address); 437. 438. if (!Validate::isLoadedObject($address)) { 439. throw new PrestaShopException('Invalid address #'.(int)$id_address); 440. } 441. } elseif ($with_geoloc && isset($context->customer->geoloc_id_country)) { 442. $address = new Address(); 443. $address->id_country = (int)$context->customer->geoloc_id_country; 444. $address->id_state = (int)$context->customer->id_state; AddressCore::initialize - [line 197 - classes/tax/Tax.php] - [1 Arguments] TaxCore::getProductEcotaxRate - [line 722 - classes/Cart.php] - [1 Arguments] CartCore->getProducts - [line 3861 - classes/Cart.php] CartCore->isVirtualCart - [line 1791 - classes/Cart.php] CartCore->getOrderTotal - [line 3638 - classes/Cart.php] - [1 Arguments] CartCore->getSummaryDetails - [line 746 - controllers/admin/AdminCustomersController.php] AdminCustomersControllerCore->renderView - [line 2072 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 209 - controllers/admin/AdminCustomersController.php] AdminCustomersControllerCore->initContent - [line 205 - classes/controller/Controller.php] ControllerCore->run - [line 369 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 95 - admin/index.php] Kind regards, JMiC Link to comment Share on other sites More sharing options...
JBW Posted August 31, 2020 Share Posted August 31, 2020 There werer cases reported here in the forum where e.g. the email adress was invalid but saved anyway. So check the customer data for ID155 in the database and try to find and fix any inconsitencies there Link to comment Share on other sites More sharing options...
JMiC Posted August 31, 2020 Author Share Posted August 31, 2020 Thanks JBW In the meantime, I found a solution with the help of Eolia. For an unknown reason the record 155 in the table ps_address was missing. I duplicated an existing adress record of the customer. I took an adress with the flag deleted active to avoid creating and adress visble to the customer I have given this record the ID 155 (during duplication) and it works... no error anymore 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