JSMin: Unterminated String at byte 840: «

[PrestaShopException]

Invalid address

at line 362 in file classes/Address.php

 

356. if ($id_address)

357. {

358. $address = new Address((int)$id_address);

359. 

360. if (!Validate::isLoadedObject($address))

361. throw new PrestaShopException(‘Invalid address’);

362. }

363. else

364. {

365. // set the default address

366. $address = new Address();

    AddressCore::initialize – [line 200 – classes/tax/Tax.php] – [1 Arguments]

    TaxCore::getProductEcotaxRate – [line 407 – controllers/front/ProductController.php] – [1 Arguments]

    ProductControllerCore->assignPriceAndTax – [line 236 – controllers/front/ProductController.php]

    ProductControllerCore->initContent – [line 180 – classes/controller/Controller.php]

    ControllerCore->run – [line 373 – classes/Dispatcher.php]

    DispatcherCore->dispatch – [line 28 – index.php]

 

 

El error ocurre si nuestro cliente tiene una dirección inesistente y encima tiene un carrito abandonado para resolverlo desde la base de datos debemos ejecutar.

 

delete  FROM ps_cart WHERE id_address_delivery not in (select id_address from ps_address);

delete  FROM ps_cart_product where id_Cart not in (select id_Cart from ps_cart)

Por admin

Deja una respuesta

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
Best Wordpress Adblock Detecting Plugin | CHP Adblock