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
Trying to add a new users results in error-message:
Integrity constraint violation: 1062 Duplicate entry '' for key unique_user_id'
This happens after adding a first initial user.
Inspecting the database (users-table) it occurs that the user_id column is not initiated with a value other than an empty string ''.
Inspecting the code in /path/to/matomo/plugins/UsersManager/Model.php function 'addUser' no proper initialization op the user_id property has taken place:
Using a Matomo fresh install from matomo:latest (ie. 3.13.3) but database is migrated from a PiwikPro database and afterwards upgraded. So maybe that is a issue.
I'am new to both products so I am not familiar with what is legacy and what not and maybe that user_id-col is related to old PiwikPro-stuff :-)
For the record: Host is a redhat 7.3 machine with PHP 7.3.11 installed and using MariaDB 10.2.22 as a backend.
Trying to add a new users results in error-message:
Integrity constraint violation: 1062 Duplicate entry '' for key unique_user_id'
This happens after adding a first initial user.
Inspecting the database (users-table) it occurs that the user_id column is not initiated with a value other than an empty string ''.
Inspecting the code in /path/to/matomo/plugins/UsersManager/Model.php function 'addUser' no proper initialization op the user_id property has taken place:
changing this code to:
results in expected behaviour.
The text was updated successfully, but these errors were encountered: