Jump to content

Error 500 al cambiar un dato de ap page builder - Product List Builder


sara11

Recommended Posts

Hola, buenas tardes, vengo a preguntar otra questión, resulta que mi cliente me ha pedido si podía hacer los textos mas largos en la lista de productos, como tenemos ap page builder, me metí en la sección Product List builder y intente cambiar la longitud de product name:

{* 
* @Module Name: AP Page Builder
* @Website: apollotheme.com - prestashop template provider
* @author Apollotheme <apollotheme@gmail.com>
* @copyright Apollotheme
* @description: ApPageBuilder is module help you can build content for your shop
*}
<!-- @file modules\appagebuilder\views\templates\front\products\file_tpl -->
{block name='product_name'}
  <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:30:'...'}</a></h3>
{/block}

de esto la cambié a esto otro (el numero se ha cambiado por 60):

{* 
* @Module Name: AP Page Builder
* @Website: apollotheme.com - prestashop template provider
* @author Apollotheme <apollotheme@gmail.com>
* @copyright Apollotheme
* @description: ApPageBuilder is module help you can build content for your shop
*}
<!-- @file modules\appagebuilder\views\templates\front\products\file_tpl -->
{block name='product_name'}
  <h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:60:'...'}</a></h3>
{/block}

Desde entonces todos los usuarios registrados (con los visitantes no hay problema) han dejado de ver la página y da error 500 del servidor. He pasado el modo depuración sin resultado alguno.

Cuando elijo una plantilla, le marco el tick verde y sin problema se muestra correctamente. Si me meto en esta plantilla y la guardo y actualizo al intentar acceder desde la web da error 500 nuevamente, da igual que plantilla coja que si se actualiza arroja este error.

 

A alguien mas le ha pasado?

 

Link to comment
Share on other sites

11 hours ago, Luisejo said:

Hola Sara, dices que has pasado el modo depuración? ... Por favor, actívalo y drinks que error te aparece.

no aparece ningun error, todo parece estar correcto, esto es lo que me lleva de cabeza.

Link to comment
Share on other sites

13 hours ago, Luisejo said:

Hola Sara, dices que has pasado el modo depuración? ... Por favor, actívalo y drinks que error te aparece.

(1/1) SmartyException
Unable to load template 'file:catalog/_partials/product-unit-price.tpl' in '/var/www/vhosts/web/httpdocs/themes/at_movic/modules/appagebuilder/views/templates/front/profiles/plist2461526345.tpl'

in smarty_internal_template.php line 195
at Smarty_Internal_Template->render()
in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender()
in 2daf7a0f18d5b70bd9664eef398f292615a5c405_2.file.plist2461526345.tpl.php line 320
at Block_110588094761a745485cd332_50683808->callBlock()
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock()
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process()
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock()
in 2daf7a0f18d5b70bd9664eef398f292615a5c405_2.file.plist2461526345.tpl.php line 382
at Block_55101655861a745485c7907_63801654->callBlock()
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock()
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process()
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock()
in 2daf7a0f18d5b70bd9664eef398f292615a5c405_2.file.plist2461526345.tpl.php line 97
at content_61a745485d1e93_03510131()
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode()
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render()
in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()
in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute()
in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch()
in SmartyDev.php line 40
at SmartyDev->fetch()
in appagebuilder.php line 2606
at APPageBuilder->hookDisplayLeoProfileProduct()
in Hook.php line 997
at HookCore::coreCallHook()
in Hook.php line 421
at HookCore::callHookOn()
in Hook.php line 934
at HookCore::exec()
in smarty.config.inc.php line 167
at smartyHook()
in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call()
in c9f9ecec75d467bc4d98b99b92c78e15a521f4b1_2.file.leo_col_products.tpl.php line 195
at Block_182896770761a4cafff154f2_59503978->callBlock()
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock()
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process()
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock()
in c9f9ecec75d467bc4d98b99b92c78e15a521f4b1_2.file.leo_col_products.tpl.php line 140
at content_61a4cafff19e62_37056026()
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode()
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render()
in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()
in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender()
in d78a69eab030c1f76be8b33aa8caaebb3b385d44_2.file.products.tpl.php line 32
at content_61a4caffedf741_77777655()
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode()
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render()
in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()
in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender()
in 9dcde0c8a9e0e6016bcf0cb69a99c9ea25ce740e_2.file.product-list.tpl.php line 83
at Block_188417750061a4caffaed487_57754866->callBlock()
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock()
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process()
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock()
in 9dcde0c8a9e0e6016bcf0cb69a99c9ea25ce740e_2.file.product-list.tpl.php line 157
at Block_11926888761a4caffaeb641_29057410->callBlock()
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock()
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process()
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process()
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock()
in 7dee6cd2dd63b64c999ba3be2dd1355e32a8e346_2.file.layout-left-column.tpl.php line 84
at Block_70437602761a4caffafd2d8_88699752->callBlock()
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock()
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process()
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process()
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock()
in 3b2da168ce4a543cf973a6a6a0dbfcb40da5d181_2.file.layout-both-columns.tpl.php line 94
at content_61a4caffb18fb2_08512188()
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode()
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render()
in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()
in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender()
in smarty_internal_runtime_inheritance.php line 116
at Smarty_Internal_Runtime_Inheritance->endChild()
in 7dee6cd2dd63b64c999ba3be2dd1355e32a8e346_2.file.layout-left-column.tpl.php line 38
at content_61a4caffafe081_51043657()
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode()
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render()
in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()
in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender()
in smarty_internal_runtime_inheritance.php line 116
at Smarty_Internal_Runtime_Inheritance->endChild()
in 9dcde0c8a9e0e6016bcf0cb69a99c9ea25ce740e_2.file.product-list.tpl.php line 37
at content_61a4caffaefe57_85185440()
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode()
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render()
in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()
in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender()
in smarty_internal_runtime_inheritance.php line 116
at Smarty_Internal_Runtime_Inheritance->endChild()
in 2aa529f6e37d448b7244a5d0d8be6bab56fc2d91_2.file.category.tpl.php line 34
at content_61a4caffae2711_09650461()
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode()
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render()
in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()
in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute()
in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch()
in SmartyDev.php line 40
at SmartyDev->fetch()
in FrontController.php line 727
at FrontControllerCore->smartyOutputContent()
in FrontController.php line 709
at FrontControllerCore->display()
in Controller.php line 326
at ControllerCore->run()
in Dispatcher.php line 518
at DispatcherCore->dispatch()
in index.php line 28

Vale he encontrado el error en el modo depuracion 

Link to comment
Share on other sites

Nada ya me respondo yo, después de darle vueltas el error era el siguiente.

En el generador de codigo en product and shipping se habia creado un codigo que no estaba correcto, nose si ha sido resultado de algun modulo, al eliminar este trozo de código ya no arroja el error 500

{$product.unit_price_full2}

      {hook h='displayProductPriceBlock' product=$product type='unit_price'}

      {hook h='displayProductPriceBlock' product=$product type='weight'}
	  
	        {block name='product_prices'}
            {include file='catalog/_partials/product-unit-price.tpl'}
      {/block}

Siendo el codigo correcto

     {hook h='displayProductPriceBlock' product=$product type='unit_price'}

      {hook h='displayProductPriceBlock' product=$product type='weight'}

Tenia una copia en limpia de una de las vistas cuando colocaba el codigo limpio funcionaba, si pulsaba guardar daba el error asi que compare el archivo limpio con el del error mostrandome que estas lineas eran distintas.

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