and unexpected error is thrown:
The used versions are CiviCRM 5.32.2 and Drupal 7.77
CiviCRM Stack Exchange is a question and answer site for administrators and users of the CiviCRM Constituent Relationship Management software. It only takes a minute to sign up.Sign up to join this community
This is caused by a bug that prevents users that configure multiple languages to use the kcfinder plugin. So check if there are more available languages are configured at https:////civicrm/admin/setting/localization?reset=1
Restrict it to one, and try again.
At the moment a patch is available at https://github.com/civicrm/civicrm-core/pull/19245. And the PR is accepted so in later versions of CiviCRM you should not see this.