getEntityType() on null error

Created on 24 January 2025, 2 months ago

Hi,

In ckeditor 5 , I have used 'Media Browser' option. Once media is selected, again it shows 'select entities' dialog rather than selecting media. I am getting this error.

Error: Call to a member function getEntityType() on null in Drupal\entity_embed\Form\EntityEmbedDialog->buildEmbedStep() (line 419 of /var/www/html/web/modules/contrib/entity_embed/src/Form/EntityEmbedDialog.php)

🐛 Bug report
Status

Active

Version

1.6

Component

Code

Created by

🇮🇳India KalaiyarasiThangavel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @KalaiyarasiThangavel
  • I’ve tested the Entity Embed module with the "Media Browser" option, but I couldn’t replicate the issue. To investigate further, could you provide additional details? any other module you're using, and ensure they are up to date.

    clarify what type of media you’re embedding (Image, Video, etc.) and its status (published or unpublished). It would also help to know your browser and whether you’ve tested this in incognito mode or a different browser. As for me its working expected..

  • 🇮🇳India shivam_tiwari

    @kalaiyarasithangavel Please provide steps to reproduce this issue.

Production build 0.71.5 2024