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
at least when using the REDIS cache as distributed cache the cached users are first encoded to JSON, and decoded from JSON to an array when read back. This results in error messages like:
| Error: Attempt to read property "uid" on array at /var/www/orgacloud/nextcloud/apps/user_sql/lib/Backend/UserBackend.php#432 /var/www/orgacloud/nextcloud/lib/private/Log/ErrorHandler.php:95
-- | --
I have also added some diagnostic log messages in the UserBackend.php, and indeed
A workaround is to disable the cache. However, this should be fixed. The affected function is getUser(). There around line 457
the cache value is just used as is, but it is an array created by json_decode(..., true) and not an object.
The text was updated successfully, but these errors were encountered:
Hi,
at least when using the REDIS cache as distributed cache the cached users are first encoded to JSON, and decoded from JSON to an array when read back. This results in error messages like:
I have also added some diagnostic log messages in the UserBackend.php, and indeed
A workaround is to disable the cache. However, this should be fixed. The affected function is
getUser()
. There around line457
the cache value is just used as is, but it is an array created by
json_decode(..., true)
and not an object.The text was updated successfully, but these errors were encountered: