php-htmltruncator icon indicating copy to clipboard operation
php-htmltruncator copied to clipboard

Fatal error when deprecated iconv extension is no longer available

Open FritzTGreen opened this issue 6 years ago • 3 comments

Usages of HtmlTruncator, which is apparently no longer maintained, result in a fatal PHP error when the deprecated PHP extension iconv is no longer available. This is because the HTML5Lib sub-dependency, which is also not maintained, relies on iconv.

Fatal error: Uncaught Error: Class 'HTML5Lib\Exception' not found in /.../vendor/electrolinux/php-html5lib/src/HTML5Lib/InputStream.php:81

FritzTGreen avatar Nov 18 '19 20:11 FritzTGreen

Fixed in v1.2.0 by switching the dependency to https://github.com/Masterminds/html5-php instead of php-html5lib

judev avatar Nov 19 '19 10:11 judev

Oh, that's great news! I thought we were on the latest and last. Thanks for your reply.

FritzTGreen avatar Nov 19 '19 15:11 FritzTGreen

I'm unable to install v1.2.0 via composer. Packagist only shows 1.1.0

FritzTGreen avatar Nov 20 '19 21:11 FritzTGreen