yesiam Posted June 17, 2013 Share Posted June 17, 2013 Hi all, see if someone can help me because this has me mad and I have not been able to solve, the problem is that when I access http://www.viniloscasa.com/sitemap.php appears empty and apache errors shows this: PHP Warning: htmlentities () expects parameter 1 to be string, array given in / tools / smarty / plugins / modifier.escape.php on line 30 I have reviewed and modifier.scape.php that line appears this: case 'htmlall': return htmlentities ($ string, ENT_QUOTES, $ char_set); tools.php and this: public static function htmlentitiesUTF8 ($ string, $ type = ENT_QUOTES) { if (is_array ($ string)) return array_map (array ('Tools', 'htmlentitiesUTF8'), $ string); return htmlentities ($ string, $ type, 'utf-8'); } public static function htmlentitiesDecodeUTF8 ($ string) { if (is_array ($ string)) return array_map (array ('Tools', 'htmlentitiesDecodeUTF8'), $ string); return html_entity_decode ($ string, ENT_QUOTES, 'utf-8'); } That is what can be happening? Greetings and thanks for the help. Link to comment Share on other sites More sharing options...
yesiam Posted June 17, 2013 Author Share Posted June 17, 2013 I tried with this solution and I could not solve this problem. Solution bug that could not solve my problem: https://github.com/PrestaShop/PrestaShop-1.4/commit/0a9f2bc375805abc852bcc7a27a69ae907051cb9 Link to comment Share on other sites More sharing options...
yesiam Posted June 17, 2013 Author Share Posted June 17, 2013 SOLVED ! Link to comment Share on other sites More sharing options...
vekia Posted June 17, 2013 Share Posted June 17, 2013 thanks for information, can you share solution? Link to comment Share on other sites More sharing options...
yesiam Posted June 17, 2013 Author Share Posted June 17, 2013 Sorry, the problem arose when deleting all languages (including English), and the solution is to edit and modify these lines sitemap.php: / * Self :: $ smarty-> assign ('categoriesTree' Category :: getRootCategory () -> recurseLiteCategTree (0)) * / / * Self :: $ smarty-> assign ('categoriescmsTree' CMSCategory :: getRecurseCategory (_USER_ID_LANG_, 1, 1, 1)) * / self :: $ smarty-> assign ('categoriesTree' Category :: getRootCategory (Context :: getContext () -> language-> id) -> recurseLiteCategTree (3, 0, Context :: getContext () -> language-> id)); self :: $ smarty-> assign ('categoriescmsTree' CMSCategory :: getRecurseCategory (Context :: getContext () -> language-> id, 1, 1, 1)); Greetings and thanks. 1 Link to comment Share on other sites More sharing options...
vekia Posted June 17, 2013 Share Posted June 17, 2013 many thanks! im convined that this will be really helpful for other community members! now i can mark this thread as [solved] regards Link to comment Share on other sites More sharing options...
Recommended Posts