warning after updating php version from 5.6 to 7.0

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart Themewarning after updating php version from 5.6 to 7.0

This topic has been marked as not resolved.

i have this warning on my frond page banners and inside whherever i have custom text after converting to php 7.0 from 5.5 everything else is working perfectly.

website : http://www.letouch.net

Warning: htmlspecialchars(): charset `UTF-8;’ not supported, assuming utf-8 in /home/letouchadmin/public_html/system/vendor/BurnEngine/catalog/plugin/ProductPlugin.php on line 97

Current storeLeTouch (Default)
Current themePavilion v2.0.1 /installed on 23.04.2017 16:40/
BurnEngine version1.0.6 /installed on 04.05.2016 16:16/
OpenCart version2.2.0.0
vQmod version2.5.1
MySQL server version5.6.38
PHP version7.0.27
HTTP ServerApache

  • This reply was modified 2276 days ago by  jogz.
  • This reply was modified 2276 days ago by  jogz.
  • This reply was modified 2276 days ago by  jogz.
 jogz
January 31, 2018 at 6:59 pm #63385

Hi,

Most likely you have a wrong PHP configuration that is messing one of the built-in PHP functions. The solution would be to:

1) Open system/vendor/BurnEngine/catalog/plugin/ProductPlugin.php

2) Find this code line:

$description = substr(htmlspecialchars(strip_tags(html_entity_decode($product['description'], ENT_COMPAT, 'UTF-8'))), 0, 300);

and replace it with:

$description = substr(htmlspecialchars(strip_tags(html_entity_decode($product['description'], ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8'), 0, 300);

BR,
ThemeBurn team

February 13, 2018 at 5:24 pm #63552
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.