Thanks for your reply. UserHelper should be loaded from the rigth path, i dont have error in finding it. I think the problem is what happend after it is loaded.JUserHelper is an alias for UserHelper and you have not give its full path. I think it should be:
\Joomla\CMS\User\UserHelper
Edit:
I also tried your suggestion with the following modification:
$userProfile = JUserHelper::getProfile( $userId );
replaced by
$userProfile = \Joomla\CMS\User\UserHelper::getProfile( $userId );
With the same result (same error)
Statistics: Posted by cacaominutro — Thu Feb 29, 2024 11:48 am