Admin27 Posted January 11, 2016 Share Posted January 11, 2016 (edited) Hola buenos días,Desde que actualice a la versión 1.6.1.4 he comenzado a tener problemas y errores con el cache smarty señalándome este error. PHP Warning: Division by zero in /hosting/www/dhtextil.es/public/cache/smarty/compile/c4/b1/d8/c4b1d8fdaf6b05529fbcad010b4f9848f3ee2da4.file.product.tpl.php on line 830 Alguien me puede ayudar para dar solución a este problema? Muchas gracias. Esta es mi web: https://www.dhtextil.es/ Edited January 11, 2016 by Admin27 (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted January 11, 2016 Share Posted January 11, 2016 Necesitamos ver ese archivo *.product.tpl. We need to see that *.product.tpl file. Link to comment Share on other sites More sharing options...
FranIFS Posted January 11, 2016 Share Posted January 11, 2016 ¿Probaste forzando la recompilación? Link to comment Share on other sites More sharing options...
Admin27 Posted January 11, 2016 Author Share Posted January 11, 2016 (edited) Aquí esta adjunto el archivo del product.tpl He forzado compilación y he probado de todo. product.txt Edited January 11, 2016 by Admin27 (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted January 11, 2016 Share Posted January 11, 2016 Me refería a la /hosting/www/dhtextil.es/public/cache/smarty/compile/c4/b1/d8/c4b1d8fdaf6b05529fbcad010b4f9848f3ee2da4.file.product.tpl.php (o real). Sólo para que podamos ver lo que está en la línea 830. I meant the /hosting/www/dhtextil.es/public/cache/smarty/compile/c4/b1/d8/c4b1d8fdaf6b05529fbcad010b4f9848f3ee2da4.file.product.tpl.php (or actual). Only so we can see what is on line 830. Link to comment Share on other sites More sharing options...
Admin27 Posted January 11, 2016 Author Share Posted January 11, 2016 Saludos tuk66 Aquí te mando el archivo solicitado. En la línea 830 aparece esto: <li class="ajax_block_product col-xs-12 col-sm-6 col-md-4 <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLine']->value==0) {?> last-in-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLine']->value==1) {?> first-in-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total']-$_smarty_tpl->tpl_vars['totModulo']->value)) {?> last-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value==0) {?> last-item-of-tablet-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLineTablet']->value==1) {?> first-item-of-tablet-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLineMobile']->value==0) {?> last-item-of-mobile-line<?php } elseif ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']%$_smarty_tpl->tpl_vars['nbItemsPerLineMobile']->value==1) {?> first-item-of-mobile-line<?php }?><?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['iteration']>($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['total']-$_smarty_tpl->tpl_vars['totModuloMobile']->value)) {?> last-mobile-line<?php }?>"> Muchas gracias, espero su respuesta. c4b1d8fdaf6b05529fbcad010b4f9848f3ee2da4.file.product.tpl.php Link to comment Share on other sites More sharing options...
tuk66 Posted January 11, 2016 Share Posted January 11, 2016 Extraño. No puedo ver ninguna división en esa línea. Strange. I can't see any divison on that line. Link to comment Share on other sites More sharing options...
Admin27 Posted January 11, 2016 Author Share Posted January 11, 2016 También tengo este error al desactivar cache smarty. PHP Warning: Division by zero in /hosting/www/dhtextil.es/public/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 830 Adjunto archivo smarty_internal_templatebase.php Link to comment Share on other sites More sharing options...
Recommended Posts