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

Issue fork acquia_dam-3550116

Command icon 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

shubhamgoel created an issue. See original summary.

shubhamgoel’s picture

Hi Team,

This MR is available for review. Please review the issue fix.

shubhamgoel’s picture

Status: Active » Needs review
steven jones’s picture

We're also seeing this issue.

steven jones’s picture

Status: Needs review » Reviewed & tested by the community

We 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 getImageDimensions can return NULL in lots of scenarios, this module really should check for that!

Code in MR!203 seemed to work fine.

japerry made their first commit to this issue’s fork.

japerry’s picture

Status: Reviewed & tested by the community » Fixed

Merged!

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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