Problem/Motivation

Uncaught PHP Exception Exception: "You must configure an API key and select a Brandfolder, even if I have configure api keys

Steps to reproduce

composer create-project drupal/recommended-project:^9 demo-brandfolder && cd demo-brandfolder
composer require drush/drush
composer require drupal/brandfolder
./vendor/bin/drush si --account-pass admin
./vendor/bin/drush en brandfolder

- Login into the site and visit page '/admin/config/media/brandfolder' add all api keys, set collection and save the form.
- Try to create new media type 'Brandfolder DAM' and select media source as Brandfolder image, click save. You will see this error in your log with WSOD.

Proposed resolution

Need to update logic use correct configuration key.

Comments

imran1217 created an issue. See original summary.

rwsimmo’s picture

I had this same issue with the 2.0.0-beta1 release on Drupal 9.5.10. However, I did not see the issue with the Dev version of the module on the same version of Drupal.

ndewhurst’s picture

Hi imran1217, thanks for using the issue queue. In keeping with what rwsimmo said, this bug was fixed in dev, and has now been incorporated into stable releases starting with 2.0.0.
Have a look at the currently available releases, and note that we are also preparing a D10 release.

ndewhurst’s picture

Assigned: Unassigned » ndewhurst
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.