desactivado Posted July 3, 2015 Share Posted July 3, 2015 Saludos; He actualizado de la 1.6.0.14 a la 1.6.1 y de golpe me he encontrado el primer bug .......... Desde el back intentas mirar los carros de compra y sale este mensaje: [PrestaShopException]Invalid address #1502at line 393 in file classes/Address.php 388. if ($id_address)389. {390. $address = new Address((int)$id_address);391. 392. if (!Validate::isLoadedObject($address))393. throw new PrestaShopException('Invalid address #'.(int)$id_address);394. 395. }396. elseif ($with_geoloc && isset($context->customer->geoloc_id_country))397. {398. $address = new Address(); AddressCore::initialize - [line 195 - classes/tax/Tax.php] - [1 Arguments] TaxCore::getProductEcotaxRate - [line 594 - classes/Cart.php] - [1 Arguments] CartCore->getProducts - [line 1450 - classes/Cart.php] CartCore->getOrderTotal - [line 1354 - classes/Cart.php] - [2 Arguments] CartCore::getTotalCart - [line 836 - controllers/admin/AdminCartsController.php] - [3 Arguments] AdminCartsControllerCore->getOrderTotalUsingTaxCalculationMethod - [line - ] - [2 Arguments] call_user_func_array - [line 329 - classes/helper/HelperList.php] - [2 Arguments] HelperListCore->displayListContent - [line 157 - classes/helper/HelperList.php] HelperListCore->generateList - [line 891 - controllers/admin/AdminCartsController.php] - [2 Arguments] AdminCartsControllerCore->renderList - [line 2015 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] ALGUNA SOLUCION? Link to comment Share on other sites More sharing options...
clicky Posted July 3, 2015 Share Posted July 3, 2015 Has activado el modo dev? Link to comment Share on other sites More sharing options...
desactivado Posted July 3, 2015 Author Share Posted July 3, 2015 ein?¿ Que cualo? Si me dices que es eso por favor o como se activa si es la solucion te lo agradezco Link to comment Share on other sites More sharing options...
clicky Posted July 3, 2015 Share Posted July 3, 2015 Lo siento debí ponértelo, para que prestashop te genere una explicación del error debes irte al archivo config/defines.inc.php y dentro de él cambiar esto define('_PS_MODE_DEV_', false); sustituirlo por: define('_PS_MODE_DEV_', true); Link to comment Share on other sites More sharing options...
desactivado Posted July 3, 2015 Author Share Posted July 3, 2015 Pero si el error ya lo ha puesto en el primer post Link to comment Share on other sites More sharing options...
clicky Posted July 3, 2015 Share Posted July 3, 2015 Es por si te devuelve algo mas Link to comment Share on other sites More sharing options...
desactivado Posted July 3, 2015 Author Share Posted July 3, 2015 No dice nada. 0 errores Link to comment Share on other sites More sharing options...
desactivado Posted July 4, 2015 Author Share Posted July 4, 2015 (edited) Este error lo he solucionado haciendo un truncate de la base de datos en la columna cart. Edited July 4, 2015 by Grudes (see edit history) 2 Link to comment Share on other sites More sharing options...
ypellerin Posted July 28, 2015 Share Posted July 28, 2015 (edited) Bonjour, J’ai le meme probleme, que dois je faire pour regler ce probleme ? PrestaShopException] Invalid address #8 at line 393 in file classes/Address.php 388. if ($id_address) 389. { 390. $address = new Address((int)$id_address); 391. 392. if (!Validate::isLoadedObject($address)) 393. throw new PrestaShopException('Invalid address #'.(int)$id_address); 394. 395. } 396. elseif ($with_geoloc && isset($context->customer->geoloc_id_country)) 397. { 398. $address = new Address(); AddressCore::initialize - [line 195 - classes/tax/Tax.php] - [1 Arguments] TaxCore::getProductEcotaxRate - [line 594 - classes/Cart.php] - [1 Arguments] CartCore->getProducts - [line 1450 - classes/Cart.php] CartCore->getOrderTotal - [line 1354 - classes/Cart.php] - [2 Arguments] CartCore::getTotalCart - [line 836 - controllers/admin/AdminCartsController.php] - [3 Arguments] AdminCartsControllerCore->getOrderTotalUsingTaxCalculationMethod - [line - ] - [2 Arguments] call_user_func_array - [line 329 - classes/helper/HelperList.php] - [2 Arguments] HelperListCore->displayListContent - [line 157 - classes/helper/HelperList.php] HelperListCore->generateList - [line 891 - controllers/admin/AdminCartsController.php] - [2 Arguments] AdminCartsControllerCore->renderList - [line 2015 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Merci Edited July 28, 2015 by ypellerin (see edit history) Link to comment Share on other sites More sharing options...
guillevm Posted August 1, 2015 Share Posted August 1, 2015 Este error lo he solucionado haciendo un truncate de la base de datos en la columna cart. Hola Grudes, Perdón por mi ignorncia, pero podrias poner los datos a seguir para hacer un truncate de la base de datos en la columna cart? Gracias! Link to comment Share on other sites More sharing options...
trace Posted August 16, 2015 Share Posted August 16, 2015 Hola Grudes, Perdón por mi ignorncia, pero podrias poner los datos a seguir para hacer un truncate de la base de datos en la columna cart? Gracias! Delete all strings in your DB column: [your prefix for DB]_cart. In MySQL (phpMyAdmin). Link to comment Share on other sites More sharing options...
guillevm Posted August 17, 2015 Share Posted August 17, 2015 Thanks, it is solved now! Link to comment Share on other sites More sharing options...
moises.cooking Posted December 1, 2015 Share Posted December 1, 2015 Buenas tardes. Me ha acaba de suceder, y me ha resultado muy útil. Muchas gracias. Link to comment Share on other sites More sharing options...
justshop Posted December 10, 2015 Share Posted December 10, 2015 Thanks, it is solved now! Puedes poner los pasos? estoy delante de la tabla _cart y no se qué hacer con ella, borrar todas las filas y dejarla vacía? Link to comment Share on other sites More sharing options...
rdngrafico Posted December 16, 2015 Share Posted December 16, 2015 Hola a todos. A mi también me aparece este error. Como dijo Clicky cambié define('_PS_MODE_DEV_', false); y lo sustituí por: define('_PS_MODE_DEV_', true); Ahora me aparece este mensaje: Warning on line 2066 en archivo /home/rinatout/domains/rinat-outlet.com/public_html/classes/Tools.php[2] curl_exec() has been disabled for security reasons ¿Que tengo que hacer ahora para solucionarlo? Link to comment Share on other sites More sharing options...
joseantgv Posted February 17, 2016 Share Posted February 17, 2016 Hola a todos. A mi también me aparece este error. Como dijo Clicky cambié define('_PS_MODE_DEV_', false); y lo sustituí por: define('_PS_MODE_DEV_', true); Ahora me aparece este mensaje: Warning on line 2066 en archivo /home/rinatout/domains/rinat-outlet.com/public_html/classes/Tools.php [2] curl_exec() has been disabled for security reasons ¿Que tengo que hacer ahora para solucionarlo? Pues buscar un poco https://www.google.es/search?q=curl_exec()+has+been+disabled+for+security+reasons Link to comment Share on other sites More sharing options...
kornwaikas Posted May 31, 2017 Share Posted May 31, 2017 Este error lo he solucionado haciendo un truncate de la base de datos en la columna cart. grandísimo!!! La solución funciona perfectamente Link to comment Share on other sites More sharing options...
VíctorSur Posted August 3, 2017 Share Posted August 3, 2017 Buenas_ Para hacer un truncate de la tabla carts ¡OJO SE BORRÁN TOODOS LOS DATOS DE LOS CARRITOS ANTERIORES!. Recomiendo hacer una copia de seguridad. en mysl pincha en SQL y escribe sin las comillas "TRUNCATE TABLE ps_cart" así de sencillo . Si quieres hacer antes una copia de seguridad escribe: "create table ps_cart_backup select * from ps_cart". Saludos 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