JSTRING-CLASS-001

JString

JString / StringHelper

JString was removed in Joomla 4. There is no reliable class alias. UTF-8 string helpers live in the joomla/string package.

JStringJoomla\String\StringHelper

Dies at Joomla 3 → 4J3: Works nativelyJ4: Removed — fatalJ6: Removed — fatalBC plugin: no — already dead on J4Mechanical renamePHP

What you will see

  • Class "JString" not found
  • Call to undefined method JString::

Symptoms people search

utf8 strlen broken · JString after Joomla 4

Replace this code

Swap JString for Joomla\String\StringHelper.

Joomla 3

Remove or stop calling this

echo JString::strtoupper($name);
$len = JString::strlen($utf8);

Joomla 4 / 6

Use this instead

use Joomla\String\StringHelper;

echo StringHelper::strtoupper($name);

How to fix it

  1. 1Replace JString with StringHelper.
  2. 2Add use Joomla\String\StringHelper.

Also known as

JString · StringHelper · phputf8

Related issues

Get in touch

Have a project in mind? Let's talk about it.

Tell us what you're building. Whether it's a new site, an online store, a mobile app, or something that needs AI under the hood, we'll get back to you within a business day.

Free consultation
No commitment, no pressure
Reply within 24 hours
Usually much faster

Prefer a direct conversation?

Request a project quote

Tell us about your project

Fill out the quick form and we'll reach out.