• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: error when try th show custom Fields in joomla 4

error when try th show custom Fields in joomla 4 3 years 4 weeks ago #41956

hi
when i try to use the following code to show users custom fields

//<code>
$userfields = FieldsHelper::getFields('com_users.user', JFactory::getUser(), true);
return $customFields[1]->value;
//</code>

i faced this error
Class 'FieldsHelper' not found
this error with joomla 4 only
its work with joomla 3 :(
The administrator has disabled public write access.

error when try th show custom Fields in joomla 4 3 years 1 week ago #41983

  • sintcorp
  • sintcorp's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
Seguinte, não é uma solução definitiva, mas fiz um teste aqui:
No RSForms no item Form Properties > Script called before form is generated
Adicionei essas linhas:
defined('_JEXEC') or die;
class FieldsHelper extends \Joomla\Component\Fields\Administrator\Helper\FieldsHelper
{
}
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!