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.
User is registered and mail with activation link is send
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
Joomla 5, php 8.2
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.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|
Labels |
Added:
Information Required
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-08-11 18:47:57 |
Closed_By | ⇒ | Quy |
Unable to replicate