Using ‘livelink’ the same error happens here: Uncaught TypeError: Cannot access offset of type string on string in xxx/app/public/wp-includes/class-wp-roles.php on line 290
Changing the ‘roles’ in the DB by copying a previous DB entry I had was the only way to fix it. Quite an annoying bug.