Error applying User Permission
Posted: Thu Mar 14, 2024 8:23 am
Just upgraded to make use of the new user permission feature, I can create a new permission just fine, but trying to assign a user to the newly created permission results in an error message every time: "Items on row 1 must be both unique and not blank (User Permission Items)".
I'd only created one permission, and only tried to assign it to one user. The search found it just fine, so the line is not blank.
I'm sure it's something minor but would sure like this feature to work. It solves a big problem of mine.
This error is appearing in the log:
[0] : ===PDO MESSAGE===
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mysite_data.sys_zzzzsys_permission_item' doesn't exist
===SQL===========
REPLACE INTO zzzzsys_permission_item SELECT * FROM sys_zzzzsys_permission_item
===BACK TRACE====
/home1/mysite/data.mysite.org/core/nusystemupdatelibs.php - line 368 (nuRunQuery)
/home1/mysite/data.mysite.org/core/nusystemupdate.php - line 103 (nuAppendToSystemTables)
/home1/mysite/data.mysite.org/core/nusystemupdate.php - line 23 (nuRunUpdate)
UPDATE WITH SOLUTION: For anyone running across this problem in the future, kev1n solved the problem. It was the validation setting on the upe_ident object of the edit form. It was set to something other than 'None' and for some reason, perhaps PHP version related, was not being correctly changed by the update script.
I'd only created one permission, and only tried to assign it to one user. The search found it just fine, so the line is not blank.
I'm sure it's something minor but would sure like this feature to work. It solves a big problem of mine.
This error is appearing in the log:
[0] : ===PDO MESSAGE===
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mysite_data.sys_zzzzsys_permission_item' doesn't exist
===SQL===========
REPLACE INTO zzzzsys_permission_item SELECT * FROM sys_zzzzsys_permission_item
===BACK TRACE====
/home1/mysite/data.mysite.org/core/nusystemupdatelibs.php - line 368 (nuRunQuery)
/home1/mysite/data.mysite.org/core/nusystemupdate.php - line 103 (nuAppendToSystemTables)
/home1/mysite/data.mysite.org/core/nusystemupdate.php - line 23 (nuRunUpdate)
UPDATE WITH SOLUTION: For anyone running across this problem in the future, kev1n solved the problem. It was the validation setting on the upe_ident object of the edit form. It was set to something other than 'None' and for some reason, perhaps PHP version related, was not being correctly changed by the update script.