ERROR 0 - Class 'FieldsHelper' not found in ...

Everything to do with Joomla! 4.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
frdt
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Sep 04, 2006 8:55 am

ERROR 0 - Class 'FieldsHelper' not found in ...

Post by frdt » Fri Sep 24, 2021 2:43 pm

Hi,
On a new fresh installation of joomla 4.0.3 and with astroid template (last version) I use cutsom fields and a joomla override for customization.
When launching a page where some custom fields are used I get :

Code: Select all

"ERROR 0 - Class 'FieldsHelper' not found in /var/www/fdth/data/www/www.floreffe900.be/templates/astroid_template_zero/html/mod_articles_category/upcoming-events.php:35"

The 35 line is bellow

Code: Select all

<?php $customFields = FieldsHelper::getFields('com_content.article', $item, true);
There no extensions installed, this is a only original joomla.
I try to use the default template casiopea and get the same error
Any ideas ?
Thx
Last edited by toivo on Fri Sep 24, 2021 9:49 pm, edited 1 time in total.
Reason: mod note: moved from 4.x Administration

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 28223
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: ERROR 0 - Class 'FieldsHelper' not found in ...

Post by Per Yngve Berg » Fri Sep 24, 2021 6:45 pm

This looks like Joomla 3.x code.

Report it to the Template Developer.

carlitorweb
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Tue May 08, 2018 9:03 pm

Re: ERROR 0 - Class 'FieldsHelper' not found in ...

Post by carlitorweb » Sat Sep 25, 2021 7:11 am

Just add this to the top of that file, and should fix the issue. Is recommend though you contact the developer:

Code: Select all

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


Post Reply

Return to “Templates for Joomla! 4.x”