Jump to content

No se agregan productos a mi carrito


Alexcarrillo

Recommended Posts

Hola buen dia, tengo un problema con mi tienda y es que trato de agregar productos a mi carrito y no aparecen, active el modo debug y me marca estos errores, espero que alguien pueda ayudarme, gracias

(1/1) UndefinedMethodException

Attempted to call an undefined method named "getMimeType" of class "ImageManager".
Did you mean to call "getMimeTypeByExtension"?

in ReassuranceActivity.php line 190

at ReassuranceActivity::getAllBlockByStatus(23, 1)in blockreassurance.php line 517

at blockreassurance->renderTemplateInHook('displayBlockProduct.tpl')in blockreassurance.php line 409

at blockreassurance->hookdisplayReassurance(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 970

at HookCore::coreCallHook(object(blockreassurance), 'hookdisplayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 355

at HookCore::callHookOn(object(blockreassurance), 'displayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 907

at HookCore::exec('displayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null)in smarty.config.inc.php line 167

at smartyHook(array('h' => 'displayReassurance'), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83

at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayReassurance'), object(SmartyDevTemplate)))in 325332409cbc27929d441c3ad7690029aefb2a2d_2.file.cart.tpl.php line 147

at Block_9984944115f19a88e798591_17491217->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_9984944115f19a88e798591_17491217), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_9984944115f19a88e798591_17491217))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_9984944115f19a88e798591_17491217', 'hook_reassurance', 1)in 325332409cbc27929d441c3ad7690029aefb2a2d_2.file.cart.tpl.php line 238

at Block_9241906565f19a88e7886b9_81177120->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_9241906565f19a88e7886b9_81177120), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 232

at Smarty_Internal_Runtime_Inheritance->callParent(object(SmartyDevTemplate), object(Block_3456261035f19a88e776a43_95083948), '\'{block append}\'')in smarty_internal_runtime_inheritance.php line 181

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_3456261035f19a88e776a43_95083948), object(Block_9241906565f19a88e7886b9_81177120))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_9241906565f19a88e7886b9_81177120), object(Block_19122716655f19a86d280282_85432165))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_19122716655f19a86d280282_85432165))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_19122716655f19a86d280282_85432165', 'content', 2)in 534c741a6d10126b3dcea8e3b8decb98d9b77da3_2.file.layout-full-width.tpl.php line 101

at Block_8085717405f19a86d27f774_16965809->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_8085717405f19a86d27f774_16965809), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_8085717405f19a86d27f774_16965809), object(Block_9208686015f19a86d2c49f7_84853979))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_9208686015f19a86d2c49f7_84853979))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_9208686015f19a86d2c49f7_84853979', 'content_wrapper')in d954f659a2b18c27ab33a1a22da28ae729eca619_2.file.layout-both-columns.tpl.php line 87

at content_5f19a86d2cbf86_88119594(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 534c741a6d10126b3dcea8e3b8decb98d9b77da3_2.file.layout-full-width.tpl.php line 42

at content_5f19a86d280fa6_90780395(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in 325332409cbc27929d441c3ad7690029aefb2a2d_2.file.cart.tpl.php line 36

at content_5f19a88e799b65_67491429(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('checkout/cart.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'checkout/cart.tpl')in 5dcf98696d7a8765e4219d5b57eead9e49057d27_2.file.cart-empty.tpl.php line 56

at content_5f19a88e7804c5_58787423(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch('checkout/cart-empty.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40

at SmartyDev->fetch('checkout/cart-empty.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683

at FrontControllerCore->smartyOutputContent('checkout/cart-empty.tpl')in FrontController.php line 667

at FrontControllerCore->display()in Controller.php line 312

at ControllerCore->run()in Dispatcher.php line 515

at DispatcherCore->dispatch()in index.php line 28

Link to comment
Share on other sites

Para empezar, desactiva el módulo "blockreassurance" ("Customer Reassurance" o "Información de seguridad y confianza para el cliente"), que parece ser el que está causando el problema. Luego pon versión de Prestashop y versión de PHP que estás usando, para intentar averiguar por qué falla, aunque @Luisejo ya te ha dado la pista.

Edited by Prestafan33 (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
On 7/23/2020 at 5:14 PM, Alexcarrillo said:

Hola buen dia, tengo un problema con mi tienda y es que trato de agregar productos a mi carrito y no aparecen, active el modo debug y me marca estos errores, espero que alguien pueda ayudarme, gracias

(1/1) UndefinedMethodException

Attempted to call an undefined method named "getMimeType" of class "ImageManager".
Did you mean to call "getMimeTypeByExtension"?

in ReassuranceActivity.php line 190

at ReassuranceActivity::getAllBlockByStatus(23, 1)in blockreassurance.php line 517

at blockreassurance->renderTemplateInHook('displayBlockProduct.tpl')in blockreassurance.php line 409

at blockreassurance->hookdisplayReassurance(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 970

at HookCore::coreCallHook(object(blockreassurance), 'hookdisplayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 355

at HookCore::callHookOn(object(blockreassurance), 'displayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 907

at HookCore::exec('displayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null)in smarty.config.inc.php line 167

at smartyHook(array('h' => 'displayReassurance'), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83

at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayReassurance'), object(SmartyDevTemplate)))in 325332409cbc27929d441c3ad7690029aefb2a2d_2.file.cart.tpl.php line 147

at Block_9984944115f19a88e798591_17491217->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_9984944115f19a88e798591_17491217), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_9984944115f19a88e798591_17491217))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_9984944115f19a88e798591_17491217', 'hook_reassurance', 1)in 325332409cbc27929d441c3ad7690029aefb2a2d_2.file.cart.tpl.php line 238

at Block_9241906565f19a88e7886b9_81177120->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_9241906565f19a88e7886b9_81177120), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 232

at Smarty_Internal_Runtime_Inheritance->callParent(object(SmartyDevTemplate), object(Block_3456261035f19a88e776a43_95083948), '\'{block append}\'')in smarty_internal_runtime_inheritance.php line 181

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_3456261035f19a88e776a43_95083948), object(Block_9241906565f19a88e7886b9_81177120))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_9241906565f19a88e7886b9_81177120), object(Block_19122716655f19a86d280282_85432165))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_19122716655f19a86d280282_85432165))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_19122716655f19a86d280282_85432165', 'content', 2)in 534c741a6d10126b3dcea8e3b8decb98d9b77da3_2.file.layout-full-width.tpl.php line 101

at Block_8085717405f19a86d27f774_16965809->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_8085717405f19a86d27f774_16965809), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_8085717405f19a86d27f774_16965809), object(Block_9208686015f19a86d2c49f7_84853979))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_9208686015f19a86d2c49f7_84853979))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_9208686015f19a86d2c49f7_84853979', 'content_wrapper')in d954f659a2b18c27ab33a1a22da28ae729eca619_2.file.layout-both-columns.tpl.php line 87

at content_5f19a86d2cbf86_88119594(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 534c741a6d10126b3dcea8e3b8decb98d9b77da3_2.file.layout-full-width.tpl.php line 42

at content_5f19a86d280fa6_90780395(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in 325332409cbc27929d441c3ad7690029aefb2a2d_2.file.cart.tpl.php line 36

at content_5f19a88e799b65_67491429(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('checkout/cart.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'checkout/cart.tpl')in 5dcf98696d7a8765e4219d5b57eead9e49057d27_2.file.cart-empty.tpl.php line 56

at content_5f19a88e7804c5_58787423(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch('checkout/cart-empty.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40

at SmartyDev->fetch('checkout/cart-empty.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683

at FrontControllerCore->smartyOutputContent('checkout/cart-empty.tpl')in FrontController.php line 667

at FrontControllerCore->display()in Controller.php line 312

at ControllerCore->run()in Dispatcher.php line 515

at DispatcherCore->dispatch()in index.php line 28

Hola,

 

El problema reside en el Módulo de bloque de reaseguros, que seguramente hayas cargado un SVG o icono PNG de forma manual al módulo y te esté dando el error. Para solucionarlo puedes probar a reemplazar el SVG de los packs que tiene el propio módulo por el que tu quieras reemplazando la imagen con el mismo nombre dentro de la carpeta que desees y seleccionarlo desde los iconos que hay en el propio módulo, de ésta forma no te surgirán errores.

On 7/23/2020 at 7:12 PM, ivasport.net said:

Hello!  I have the same problem.  Is it possible for someone to hire to pass this update and for me to pay for the work done?

 

Hello there, to solve the issue just replace manually and with the exact name as your old.svg with your new.svg in the same folder since the icons you upload by hand won't work, at least for the version 5.0.0

Link to comment
Share on other sites

  • 5 months later...

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