Problem/Motivation

Having a look at our logs, i found an uncaught PHP exception, which may lead to other errors while execution.

Uncaught PHP Exception TypeError: "Drupal\paragraphs_sets\ParagraphsSets::getWidgetState(): Argument #1 ($parents) must be of type array, null given, called in /var/www/html/docroot/modules/contrib/paragraphs_sets/paragraphs_sets.module on line 318"

This error is proceeded by a warning:
Warning: Undefined array key "#field_parents" in paragraphs_sets_field_widget_complete_form_alter() (line 318 of /var/www/html/docroot/modules/contrib/paragraphs_sets/paragraphs_sets.module)

Steps to reproduce

  • create a paragraph set
  • try to add the paragraph set within an existing paragraphs field
  • adding of paragraph set is not possible and fails with error Oops, something went wrong. Check your browser's developer console for more details.
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

steffenr created an issue. See original summary.

steffenr’s picture

Status: Active » Needs review

  • stborchert committed d8ea4d0d on 3.0.x authored by steffenr
    fix: #3596331 Fix TypeError in getWidgetState() when #field_parents is...
stborchert’s picture

Status: Needs review » Fixed

Thank you! Merged.

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

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

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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