While I insert any media from Body field ckeditor, I get an error message as displayed in screenshot. On checking Logs, the error message is as follows:
TypeError: Drupal\acquia_dam\EmbedCodeFactory::getImageDimensions(): Argument #1 ($image_properties) must be of type array, null given, called in /var/www/html/docroot/modules/contrib/acquia_dam/src/EmbedCodeFactory.php on line 179 in Drupal\acquia_dam\EmbedCodeFactory::getImageDimensions() (line 220 of /var/www/html/docroot/modules/contrib/acquia_dam/src/EmbedCodeFactory.php).
I am facing this issue on inserting an image media intermittently
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2025-10-03 at 5.14.18 PM.png | 248.61 KB | shubhamgoel |
Issue fork acquia_dam-3550116
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
shubhamgoel commentedHi Team,
This MR is available for review. Please review the issue fix.
Comment #6
shubhamgoel commentedComment #7
steven jones commentedWe're also seeing this issue.
Comment #8
steven jones commentedWe had it where a video had somehow ended up being classified as an image, so the formatter was fetching the image dimensions, not the video dimensions.
Given that
getImageDimensionscan return NULL in lots of scenarios, this module really should check for that!Code in MR!203 seemed to work fine.
Comment #10
japerryMerged!