Error: Call to a member function bundle() on null

Created on 21 October 2021, over 3 years ago
Updated 27 January 2023, about 2 years ago

Problem/Motivation

Error: Call to a member function bundle() on null in /code/web/modules/composer/paragraphs_sets/paragraphs_sets.module on line 293 #0 /code/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(539): paragraphs_sets_field_widget_multivalue_form_alter(Array, Object(Drupal\Core\Form\FormState), Array)

Steps to reproduce

This happens when I choose the Paragraphs Experimental widget and specific to a field only in the form. Other fields have the experimental widget and it works fine

I tried to use the latest Paragraphs DEV version, still used the (Paragraphs (stable)) widget and I still see the error.

Removing or using another widget fixes the issue.

Weirdly, this happens only to a few nodes or specific ones

Proposed resolution / Workaround

To try and fix, I deleted orphaned entities (for Paragraphs), cache rebuild and that seem to have helped

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

3.0

Component

Code

Created by

🇵🇭Philippines eabquina Manila

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