Jump to content

error viewing active carts


Recommended Posts

hi,

 

i've just runed prestashop, and i've a theme supershop and when in admin panel i goes to active carts in last 30 minutes, i've this error

 

 sombebody can tell me wich is the error, thanks

 

 

Invalid address #3298

at line 401 in file classes/Address.php

396. // if an id_address has been specified retrieve the address
397. 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;
Link to comment
Share on other sites

  • 1 month later...

Same problem I think for me.

 

I have spent a couple of days on this. I have identified the id no 4 in php and made a new customer and changed it to no 4. But I still get the error.

 

I've had the shop live now for a couple of weeks and it really is great. Just cannot get to see my abandoned carts etc, as the show grows I need to see what the customers are doing.

 

Any help from anyone would be most appreciated.

 

Kind regards John.

 

Here is the error

[PrestaShopException]

 

Invalid address #4

at line 401 in file classes/Address.php

 

396. // if an id_address has been specified retrieve the address

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

Link to comment
Share on other sites

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