You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#117485 JCE Editor Error: "Class 'JObject' not found" in Joomla 5.4.1

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Tuesday, 02 December 2025 14:25 GMT

Alamarte

# JCE Editor Error: "Class 'JObject' not found" in Joomla 5.4.1

## PROBLEM DESCRIPTION

When attempting to edit or insert a link using JCE Editor in Joomla 5.4.1, the following error appears:
```
An error has occurred.
Class "JObject" not found
```

This error occurs in:
- Joomla article editing (com_content)
- jDownloads category editing (com_jdownloads)
- Any context where JCE link functionality is used

## ENVIRONMENT

- **Joomla:** 5.4.1
- **JCE Editor:** 2.9.96
- **PHP:** 8.4
- **Server:** Apache + Cloudflare

## ROOT CAUSE

JCE Editor 2.9.96 still uses the obsolete `JObject` class that was deprecated in Joomla 3.x and removed in Joomla 4.0+.

In Joomla 5.x, this class is only available if the **"Behaviour - Backward Compatibility"** plugin is enabled.

## TEMPORARY SOLUTION

Enable the backward compatibility plugin:
```
System → Plugin → Behavior - Backward Compatibility → Enable - It was disabled for possible migration to J6
```

This resolves the error immediately.

## REQUEST

**Update JCE Editor to remove legacy code dependencies (JObject and other obsolete classes) and achieve native compatibility with Joomla 5.x without requiring the backward compatibility plugin.**

### Justification:
1. The "Backward Compatibility" plugin will be removed in Joomla 6.x
2. Best practices: use `Joomla\CMS\Object\CMSObject` instead of `JObject`
3. Ensure future compatibility with Joomla 6.x

## LIKELY AFFECTED FILES

Search suggestion for the developer:
```bash
grep -r "extends JObject" /administrator/components/com_jce/
grep -r "new JObject" /plugins/editors/jce/
grep -r "JObject" /administrator/components/com_jce/ --include="*.php"
```

## SUGGESTED REPLACEMENT
```php
// BEFORE (obsolete)
class MyClass extends JObject

// AFTER (Joomla 4/5/6)
use Joomla\CMS\Object\CMSObject;
class MyClass extends CMSObject
```

## IMPACT

- **Severity:** Medium-High
- **Affected users:** All JCE users on Joomla 5.x without the compatibility plugin
- **Workaround:** Available (enable compatibility plugin)
- **Urgency:** High (preparation for Joomla 6.x)

## ADDITIONAL INFORMATION

- Error reproducible on clean Joomla 5.4.1 + JCE 2.9.96 installation
- Does not occur with TinyMCE (Joomla's native editor)
- The compatibility plugin solves the problem but is an undesirable long-term dependency

Attachments

Ryan

- Error reproducible on clean Joomla 5.4.1 + JCE 2.9.96 installation

JCE Pro 2.9.96 does not use JObject anywhere in any code. I have checked this in fresh installations for JCE Pro 2.9.96 in Joomla 5.4 and Joomla 6

Both versions are running without the compatability plugin, without error.

## LIKELY AFFECTED FILES

Search suggestion for the developer:
```bash
grep -r "extends JObject" /administrator/components/com_jce/
grep -r "new JObject" /plugins/editors/jce/
grep -r "JObject" /administrator/components/com_jce/ --include="*.php"
```

If you can find the location of the file that is generating the error on your site, please let me know.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Alamarte

Hi Ryan,

Thanks for your kind reply,

I've managed to isolate the problem and find the culprits. It does indeed have to do with JCE Editor, especially the pro plugins. In this case, I've found that JCE WidgetKit Popups, JCE WidgetKit2 Popups, and JCE RokBox Popups are causing this issue. They require the backward compatibility plugin.

Temporary solution: disable/uninstall plugins

I have them all installed for verification of the Spanish translation.

With these three JCE plugins and the backward compatibility plugin disabled, the editor works perfectly!

 

Kindest Regards,

Alamarte

Here's the analysis

Attachments

JCE_Editor-plugins-error.zip

Ryan

In this case, I've found that JCE WidgetKit Popups, JCE WidgetKit2 Popups, and JCE RokBox Popups are causing this issue.

I will update JCE WidgetKit2 Popups, but the other 2 will be discontinued and removed from download.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.