You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set up a multi language Joomla 5.1 website
Enable User Registration
In Com User.
Set compontent option 'Frontend Language' to hide.
Set compoonent option 'New User Account Activation' to yes.
Try to register a new user in Frontend.
Expected result
User is registered and mail with activation link is send
Actual result
Fatal Error: Joomla\Registry\Registry::loadArray(): Argument #1 ($array) must be of type array, stdClass given, called in libraries/src/User/User.php on line 666
System information (as much as possible)
Joomla 5, php 8.2
Additional comments
I think the problem is as follows.
In this case, the submitted form does not contain params
In this case components/com_users/src/Model/RegistrationModel.php function getData() adds params to the data array.
This params are of type stdClass
On this data array, components/com_users/src/Model/RegistrationModel.php function function register($temp) calls $user->bind($data) which expects the params to by of type array.
If params are submitted with the registration form, they are of type array.
The text was updated successfully, but these errors were encountered:
Steps to reproduce the issue
Set up a multi language Joomla 5.1 website
Enable User Registration
In Com User.
Set compontent option 'Frontend Language' to hide.
Set compoonent option 'New User Account Activation' to yes.
Try to register a new user in Frontend.
Expected result
User is registered and mail with activation link is send
Actual result
Fatal Error: Joomla\Registry\Registry::loadArray(): Argument #1 ($array) must be of type array, stdClass given, called in libraries/src/User/User.php on line 666
System information (as much as possible)
Joomla 5, php 8.2
Additional comments
I think the problem is as follows.
In this case, the submitted form does not contain params
In this case components/com_users/src/Model/RegistrationModel.php function getData() adds params to the data array.
This params are of type stdClass
On this data array, components/com_users/src/Model/RegistrationModel.php function function register($temp) calls $user->bind($data) which expects the params to by of type array.
If params are submitted with the registration form, they are of type array.
The text was updated successfully, but these errors were encountered: