JSTRINGINFLECTOR-001
JStringInflector
JStringInflector / JStringNormalise
These JString satellites were obsolete in Joomla 4. Use the String package classes.
JStringInflector → Joomla\String\Inflector / Normalise
What you will see
- Class "JStringInflector" not found
- Class "JStringNormalise" not found
Symptoms people search
pluralize helper fatal
Replace this code
Swap JStringInflector for Joomla\String\Inflector / Normalise.
Joomla 3
Remove or stop calling this
JStringInflector::getInstance()->toPlural('item');
JStringNormalise::toDashSeparated($s);Joomla 4 / 6
Use this instead
use Joomla\String\Inflector;
use Joomla\String\Normalise;How to fix it
- 1Switch Inflector and Normalise to the Joomla\String namespace.
Also known as
JStringInflector · JStringNormalise
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 → 4Joomla API
JSubMenuHelper
JSubMenuHelper::addEntry() → HTMLHelper::_('sidebar.addEntry') plus the sidebar view placeholder
- Joomla 3 → 4SQL / schema
SQL Server driver
sqlsrv → MySQL / MariaDB / PostgreSQL
- Joomla 3 → 4PHP
mysql_* PHP functions
mysql_query() → Joomla DatabaseInterface / mysqli / PDO