PHP-UTF8-LIB-001
jimport('phputf8.utils.unicode')
libraries/phputf8 copy
Joomla 4 removed the bundled phputf8 tree. String work goes through the String package.
jimport('phputf8.utils.unicode') → Joomla\String\StringHelper
What you will see
- Failed opening required .../phputf8
- Call to undefined function utf8_strtolower
Symptoms people search
phputf8 missing · utf8_strtolower
Replace this code
Swap jimport('phputf8.utils.unicode') for Joomla\String\StringHelper.
Joomla 3
Remove or stop calling this
jimport('phputf8.utils.ascii');
utf8_strtolower($s);Joomla 4 / 6
Use this instead
use Joomla\String\StringHelper;
StringHelper::strtolower($s);How to fix it
- 1Replace utf8_* helpers with StringHelper.
- 2Do not jimport phputf8.
Also known as
phputf8 · utf8_strtolower · utf8_strlen
Related issues
- Joomla 3 → 4PHP
jimport() autoloader calls
jimport('joomla.filesystem.file') → use Joomla\CMS\Filesystem\File;
- Joomla 3 → 4PHP
DS path constant
DS → DIRECTORY_SEPARATOR or /
- Joomla 3 → 4PHP
JPATH_PLATFORM
JPATH_PLATFORM → Do not use — autoload instead
- Joomla 3 → 4Manifest / installer
Updater client 0 / 1 integers
<client>0</client> → site / administrator strings
- Joomla 3 → 4PHP
mysql_* PHP functions
mysql_query() → Joomla DatabaseInterface / mysqli / PDO
- Joomla 3 → 4PHP
each() / create_function() / ereg / split
each($array) → foreach / closures / preg_*