Jump to content

[solved[ PHP Warning: htmlentities () - Can you help me ?


Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...