🇺🇸United States @rwsimmo

Account created on 8 March 2010, over 14 years ago
#

Recent comments

🇺🇸United States rwsimmo

I suspected that this issue was caused by I conflict with the theme that we use on our websites. So, I tested creating a responsive Brandfolder image on a brand new Drupal site built from scratch and everything worked fine.

🇺🇸United States rwsimmo

Thank you for the suggestion to use image styles. Unfortunately, when I set up a responsive image style with the “Focal Point Crop” effect, the resulting Brandfolder CDN URL does not have any query parameters added to it to control the image size. The URL looks like this whether or not I am using the responsive image style:

https://cdn.bfldr.com/X5ZUFVLL/at/8nrmfccm6b6vb59qmk9hmmsf/phone_mockupv62x.jpg

Here is what I tried:

  1. Enabled the Responsive Image module.
  2. Installed and enabled the Focal Point module.
  3. Created image styles using the “Focal Point Crop” effect.
  4. Created a Responsive Image style that uses my image styles at different breakpoints.
  5. In manage display (“Full Content” view mode) for my brandfolder_image media type, I changed the “Format” for the Brandfolder image field to “Responsive Image” and configured it to use my Responsive Image style.
  6. In my content entity, I have a “Brandfolder Image” entity reference field for the “Brandfolder Image” media type.
  7. In “Manage Display” for my content entity, the “Formatter” for the Brandfolder image field is set to “Referenced Entity” and it is configured to use the “Full Content” view mode.

Note that when I step through the code in BrandfolderStreamWrapper.php and I get to “Handle Image Styles” section, the preg_match test in line 315 returns no matches.

 if (preg_match("/^styles\/([^\/]+)\/bf\/(.*)$/", $uri_sans_scheme, $matches)) {

$uri_sans_scheme contain the value: "X5ZUFVLL/at/s9fgbjp9vpjkf7p8st26jfn5/Background-oversized-2560x646.png"

🇺🇸United States rwsimmo

I am seeing this behavior as well and yes, if I click the black arrow the select button does become visible.

Note that I did not see the behavior where you lose all page formatting after selecting an image in version 5.0.0. I noticed it after updating to version 5.0.1 of the module. I wonder if the version on this issue should be changed to 5.0.1?

🇺🇸United States rwsimmo

I am now getting images in the Brandfolder Media Browser. I had to adjust the Brandfolder collection and section in my Brandfolder Image Media Type to something with image types supported on the Drupal site.

🇺🇸United States rwsimmo

I forgot to add that I am testing the module using Drupal 9.5.10 and PHP 8.1. However, we are using Drupal 10 and PHP 8.1 on all of our production sites.

🇺🇸United States rwsimmo

Thanks for the reply Nathanael! I made the form display change you suggested. Now the node edit form displays an "Add Media" button and when the button is pressed, an "Add or select" dialog is displayed. The dialog displays some labels from Brandfolder but it says "No Brandfolder assets found."

I have detailed logging turned on and I am seeing 3 API calls made to Brandfolder for labels, collections, and assets. All 3 API calls are returning a status of 200.

In addition, I have tested the API calls in Postman the best I can and all 3 calls are returning data. However, I am not using the complex search parameter because I have not yet figured out how to enter that in Postman. For example:

"search":"(collection_key:(\"redacted\")) AND (section_key:(\"redacted\")) AND (filetype:(\"jpg\" OR \"png\" OR \"gif\" OR \"tiff\" OR \"svg\" OR \"webp\"))"

🇺🇸United States rwsimmo

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.

Production build 0.71.5 2024