Multiple available languages disables kcfinder
Overview
In instances that have multiple languages available the kcfinder throws an error and cannot be used. I have described this on
Reproduction steps as done on the dmaster (5.34.alpha1)
- Login as demo/demo
- Go to Settings Localisations Settings - Localization (https://dmaster.demo.civicrm.org/civicrm/admin/setting/localization?reset=1)
- Add an extra language under available languages.
- Add a message template (https://dmaster.demo.civicrm.org/civicrm/admin/messageTemplates/add?action=add&reset=1)
- Click on the add image button.
- Click on the browse server button.
- An error shows up:
Expected behaviour
The number of available languages should not matter. The file browser must just show up.
Environment information
- CiviCRM: Master
- PHP: 7.3
- CMS: Drupal 7.77