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
After updating Pimcore from version 11.0.12 to 11.1.6 by following the instructions I am not able to use the Admin UI due to an error when retriving the current user.
The update process went through without any noticeable problems. Symfony, Pimcore and Browser Cache were cleared.
Actual Behavior
This error is returned from /admin/user/get-current-user after successful login:
UncaughtError: Pimcore\Model\User\Permission\Definition::setCategory(): Argument#1 ($category) must be of type string, null given, called in /projectFolder/vendor/pimcore/pimcore/lib/Model/AbstractModel.php on line 186
Additionally the admin UI is not rendered properly, but this might be just a reaction to the user not being loaded correctly:
Expected Behavior
No error when retrieving the current user.
The text was updated successfully, but these errors were encountered:
Weird, there are no migrations related to that and no recent changes that would suggest this error.
I'd double-check if the table users_permission_definitions is still is not nullable and sets empty string as default, it seems coming from that.
Thanks for looking into it! You were right, inside the users_permission_definitions table there was a single entry selectoptions with NULL instead of '' as the category. After updating the entry the admin UI worked again. Thanks a lot for the hint! ❤️
I then looked into the schema and saw that the category column allows NULL values and sets NULL as a default. Is it possible that this migration has been skipped somewhere in between?
Pimcore version
11.1.6
Steps to reproduce
Using PHP 8.2.15.
After updating Pimcore from version 11.0.12 to 11.1.6 by following the instructions I am not able to use the Admin UI due to an error when retriving the current user.
The update process went through without any noticeable problems. Symfony, Pimcore and Browser Cache were cleared.
Actual Behavior
This error is returned from
/admin/user/get-current-user
after successful login:Additionally the admin UI is not rendered properly, but this might be just a reaction to the user not being loaded correctly:
![image](https://private-user-images.githubusercontent.com/6862218/315245270-1a1f0879-06eb-4e34-bce5-94584c6a3dfe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0MTkzNjYsIm5iZiI6MTcyMTQxOTA2NiwicGF0aCI6Ii82ODYyMjE4LzMxNTI0NTI3MC0xYTFmMDg3OS0wNmViLTRlMzQtYmNlNS05NDU4NGM2YTNkZmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTlUMTk1NzQ2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Njc0MGE5NjYwNmNmMTdhYmM1ZWM2NTFiZTU2MzQ4ZThmNzZkNjY2ODVmMDNkZTM1NmM3OWRhZGJmMWE4YTkxMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.IlBgS0QWH8BqENCq2gu--0LtiXZtnAUqI_uKEYbTuE4)
Expected Behavior
No error when retrieving the current user.
The text was updated successfully, but these errors were encountered: