Error: Call to a member function getComponent() on null in ief_popup_inline_entity_form_entity_form_alter()

Created on 21 July 2024, 6 months ago

Problem/Motivation

Install the IEF module, IEF popup module, and layout paragraphs, select layout paragraphs in the display field of a content type. Add and edit a node through the form.
View logs

Error: Call to a member function getComponent() on null in ief_popup_inline_entity_form_entity_form_alter() (line 151 of /var/www/html/web/modules/contrib/ief_popup/ief_popup.module).

Proposed resolution

Just add a conditional before the code.

  if (!in_array('inline_entity_form', $form_state->getStorage(), TRUE)) {
    return;
  }
📌 Task
Status

Needs review

Version

2.2

Component

Code

Created by

🇻🇪Venezuela joseft40 Mérida

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

Comments & Activities

Production build 0.71.5 2024