Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.1] : User Registration on multi language Webseite results in fatal error #43685

Open
avjoomla opened this issue Jun 20, 2024 · 1 comment
Open

Comments

@avjoomla
Copy link
Contributor

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.

@brianteeman
Copy link
Contributor

Unable to replicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants