No Code Attached Yet
avatar bascherz
bascherz
25 Nov 2022

Steps to reproduce the issue

Try to modify or create and save a content (category or article) custom field.

Expected result

The field is correctly modified or created.

Actual result

An error has occurred.
Class 'FieldsHelper' not found.

System information (as much as possible)

Joomla! 4.2.5

Additional comments

There is a line missing from near the top of itemlist.php:

use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;

It can be added right after this one on line 10.

use Joomla\CMS\MVC\Model\BaseDatabaseModel;

Adding that line resolves the issue.

avatar bascherz bascherz - open - 25 Nov 2022
avatar joomla-cms-bot joomla-cms-bot - change - 25 Nov 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Nov 2022
avatar bascherz bascherz - change - 25 Nov 2022
The description was changed
avatar bascherz bascherz - edited - 25 Nov 2022
avatar bascherz bascherz - change - 25 Nov 2022
The description was changed
avatar bascherz bascherz - edited - 25 Nov 2022
avatar brianteeman
brianteeman - comment - 25 Nov 2022

There is no plugin at /plugins/fields/itemlist/itemlist.php in the core of Joomla. It must be an extension you have installed.

avatar bascherz
bascherz - comment - 25 Nov 2022

That's interesting since it is just a Joomla content custom field that is causing the issue. I will make an attempt to see what other extension might own this, but I am already surprised.

avatar richard67
richard67 - comment - 25 Nov 2022

@bascherz Check the sources here and you will see it is not in: https://github.com/joomla/joomla-cms/tree/4.2-dev/plugins/fields

avatar bascherz
bascherz - comment - 25 Nov 2022

I have already looked at the 4.2.5 distribution and confirmed it is not part of that. The extension manager reports that the author is "Joomla! Project" and it is version 3.9.0 of the Fields-Itemlist Site Plugin. Is this residue from before I migrated this site to Joomla! 4? I disabled the plugin and it doesn't appear to have made any difference (editing the field still works).

avatar richard67
richard67 - comment - 25 Nov 2022

When you use my link and then switch the branch from 4.2-dev to 3.10-dev, you will see it is also not part of Joomla 3.10. Sometimes extension devs just copy the copyright comments from the core.

avatar bascherz
bascherz - comment - 25 Nov 2022

Well, wherever it came from, it doesn't appear to be needed. It also was singled-out with a core-extensions filter in extension manager. Gone. Thanks guys!

avatar richard67
richard67 - comment - 26 Nov 2022

Closing as not a core issue.

avatar richard67 richard67 - change - 26 Nov 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-11-26 08:36:29
Closed_By richard67
avatar richard67 richard67 - close - 26 Nov 2022

Add a Comment

Login with GitHub to post a comment