Bugfix - Magento 1: PHP5.6 - Deprecated functionality: iconv_set_encoding(): Use of iconv.internal_encoding is deprecated Print

  • 1

This is an issue usually caused after applying the SUPEE-8788 patch bundle, and where the php version has been upgraded to PHP5.6. More information regarding this issue is outlined in 

http://magento.stackexchange.com/questions/34015/magento-1-9-php-5-6-use-of-iconv-internal-encoding-is-deprecated. You may see something like the following that is filling up your system.log:

ERR (3): Deprecated functionality: iconv_set_encoding(): Use of iconv.internal_encoding is deprecated in /var/www/vhosts/example.co.nz/httpdocs/lib/Zend/Locale/Format.php on line 1050
ERR (3): Deprecated functionality: iconv_set_encoding(): Use of iconv.internal_encoding is deprecated in /var/www/vhosts/example.co.nz/httpdocs/lib/Zend/Validate/Hostname.php on line 553


There is a patch available for >= Magento 1.7 to address this. See https://gist.github.com/renttek/29beaaa1e90909639501. Some simple SSH commands to download and execute the patch from within your Magento directory:

wget https://gist.githubusercontent.com/renttek/29beaaa1e90909639501/raw/be5df0b33b72cdc2ab037d374802c53ccba066df/0001-BUGIFX-Magento-Zend-Framework-1-PHP5.6.patch
patch -p1 < 0001-BUGIFX-Magento-Zend-Framework-1-PHP5.6.patch



If you are a Create Hosting customer on the Magento Hosting Plan, feel free to submit a support ticket and we can assist you with this.


Was this answer helpful?

« Back