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

Error while creating a new user or updating password in V1.6 #508

Open
lawvisiondev opened this issue Feb 24, 2023 · 4 comments
Open

Error while creating a new user or updating password in V1.6 #508

lawvisiondev opened this issue Feb 24, 2023 · 4 comments

Comments

@lawvisiondev
Copy link

What steps will reproduce the problem?

After the update to v1.6 creating a new user or updating a password using the webinterface causes 500 internal server errors.
Create User: (using new valid e-mail-address, new unique username, password
Open new form - /index.php?r=user/admin/create
After entering the username, password the console shows an 500 internal server error (jquery.js)

Console shows error:
try {
// Do send the request (this may raise an exception)
xhr.send( options.hasContent && options.data || null );
} catch ( e ) { ... }

Log:
2023-02-24 21:08:09 [IP-ADDRESS][3][63kvbvmu2shmsb4aqsl05pb0jv][error][yii\base\UnknownPropertyException] yii\base\UnknownPropertyException: Getting unknown property: Da\User\Model\User::auth_tf_type in /var/www/html/WEBSITE/htdocs/advanced/vendor/yiisoft/yii2/base/Component.php:154

In Database field auth_tf_type is available (no value)

Update User.
Same problem when updating a password/username of an existing user. (index.php?r=user/admin/update&id=5)
Updating Profile-Data (f.ex. index.php?r=user/admin/update-profile&id=5) is working without problems

What is the expected result?

Create: New User is created
Update: Updated Data (Username, Password, e-mail) is saved.

What do you get instead?

500 internal server error
Getting unknown property: Da\User\Model\User::auth_tf_type

@maxxer
Copy link
Collaborator

maxxer commented Feb 25, 2023

Did you override the user model? Can you post module config?

@lawvisiondev
Copy link
Author

No, there is no override for the user model.
fyi: We use the yii2 advanced template with frontend and backend - usuario works with no problems until the update to v1.6

Here is my module config:

'modules' => [        
	'user' => [
        'class' => Da\User\Module::class,
        "administratorPermissionName" => 'admin',
        'enableGdprCompliance' => true,
        'enableRegistration' => false,
        'enableTwoFactorAuthentication' => false,
	], ...

Thank you!

@maxxer
Copy link
Collaborator

maxxer commented Feb 25, 2023

how long ago did you run the migration? could it be you still have schema cached to the old version? can you try from cli

./yii cache/flush-schema

@lawvisiondev
Copy link
Author

You are right. Now it works - m000000_000010_add_auth_tf_type_auth_tf_mobile_phone_columns_to_user_table.php caused the problem. Thank you!

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

No branches or pull requests

2 participants