Error: Call to a member function getValue() on null in entity_embed_link_form_entity_embed_dialog_alter() (line 23 of /var/www/web/modules/contrib/entity_embed_link/entity_embed_link.module)

Created on 17 August 2022, over 2 years ago
Updated 9 March 2024, 9 months ago

Problem/Motivation

Getting the following error when adding entity embed node CKEDITOR widget.
Error: Call to a member function getValue() on null in entity_embed_link_form_entity_embed_dialog_alter() (line 23 of /var/www/web/modules/contrib/entity_embed_link/entity_embed_link.module)

Steps to reproduce

- Add Entity embed Media along with Entity embed node widgets to your CKEditor
- Add content to a body with the CKEditor that has entity embed node and entity embed media widgets
- Click the (E) icon for the entity embed node and search for a node
- Hit next
- Should not be able to proceed and get a ajax error in the browser console

Proposed resolution

The attached patch adds another check for $media_entity->bundle

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States andysipple

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024