PHP Compatibility Index

Is HTML Import 2 compatible with PHP 8?

Version 2.6 · 5,000+ active installs

Breaks on PHP 8.0

HTML Import 2 2.6 uses PHP features that were removed in PHP 8.0. Sites running this version on PHP 8.0 or newer can show errors when that code runs.

PHP 8.0
✗ 3
PHP 8.1
✗ 3
PHP 8.2
✗ 3
PHP 8.3
✗ 3
PHP 8.4
✗ 3
PHP 8.5
✗ 3

✓ no problems · ⚠ deprecation notices only (still works) · ✗ uses something removed in that PHP version

Not updated for 8.9 years. Nobody seems to maintain this plugin, so problems found here are unlikely to be fixed. If your site uses it, look for a maintained alternative before upgrading PHP.
Check your whole site, not just one plugin. The free PHP Upgrade Check plugin scans every plugin and theme you have installed (including premium and custom ones) and explains each problem. It runs on any host.

What breaks on PHP 8.0

File:lineWhat
html-importer.php:209Passing the encoding to mb_strrpos() as third parameter is soft deprecated since PHP 5.2, hard deprecated since PHP 7.4 and removed since PHP 8.0. Use an explicit 0 as the offset in the third parameter.
html-importer.php:227Function create_function() is deprecated since PHP 7.2 and removed since PHP 8.0; Use an anonymous function instead
html-importer.php:237Function create_function() is deprecated since PHP 7.2 and removed since PHP 8.0; Use an anonymous function instead

Plugin page on WordPress.org: import-html-pages