redcraf Posted November 14, 2019 Share Posted November 14, 2019 Hola tengo el siguiente problema, el error_log de prestashop esta registrando el siguiente mensaje: [13-Nov-2019 22:17:09 America/Santiago] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home1/lepetito/public_html/sitio.cl/var/cache/prod/smarty/compile/layouts_layout_left_column_tpl/9c/e8/bd/9ce8bdd6b78f26915aee31f998ca407a3ad3f2c8_2.file.product.tpl.php on line 329 Alguien me podría ayudar a encontrar la causa. Muchas Gracias. Link to comment Share on other sites More sharing options...
redcraf Posted November 14, 2019 Author Share Posted November 14, 2019 Estoy usando Prestashop 1.7.5.2 y PHP 7.0 Link to comment Share on other sites More sharing options...
eshizero Posted November 21, 2019 Share Posted November 21, 2019 mismo error en versión 1.7.6.1 + PHP 7.2.25 [21-Nov-2019 13:43:15 America/Santiago] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in ...\prestashop\htdocs\var\cache\prod\smarty\compile\57\6f\18\576f18de3c465a5463b217035d5eae913860da79_2.file.product.tpl.cache.php on line 475 [21-Nov-2019 13:43:15 America/Santiago] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in ...\prestashop\htdocs\var\cache\prod\smarty\compile\57\6f\18\576f18de3c465a5463b217035d5eae913860da79_2.file.product.tpl.cache.php on line 472 [21-Nov-2019 13:43:15 America/Santiago] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in ...\prestashop\htdocs\var\cache\prod\smarty\compile\57\6f\18\576f18de3c465a5463b217035d5eae913860da79_2.file.product.tpl.cache.php on line 475 Link to comment Share on other sites More sharing options...
Prestafan33 Posted November 21, 2019 Share Posted November 21, 2019 Apostaría algo a que el problema es que se está aplicando la función htmlspecialcharts a un campo multiidioma, y que por tanto es un array en vez de un string. 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