Problem/Motivation

After an update of modules i end up with this error when i try to see a page with paragraphs :

ArgumentCountError: Too few arguments to function Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget::__construct(), 5 passed in /var/www/html/web/modules/contrib/consent_support/modules/consent_support_paragraphs/src/Plugin/Field/FieldWidget/CsParagraphsWidgetTrait.php on line 47 and exactly 6 expected in Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget->__construct() (line 123 of modules/contrib/paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php).

Steps to reproduce

Not entirely sure, using this module with paragraphs and open a node.

Proposed resolution

Fix CsParagraphsWidgetTrait to use the right number of parametter as described in the paragraphsWidget : web/modules/contrib/paragraphs/src/Plugin/Field/FieldWidget/ParagraphsWidget.php

Here is a patch that solves it.

CommentFileSizeAuthor
paragrap-entity-field-manager.patch4.66 KBarwillame
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

arwillame created an issue. See original summary.

andreasderijcke made their first commit to this issue’s fork.

andreasderijcke’s picture

Assigned: arwillame » andreasderijcke

Ah, this is a result of new feature in paragraphs 1.18 from 2 weeks ago.

andreasderijcke’s picture

Assigned: andreasderijcke » Unassigned
Status: Active » Fixed
andreasderijcke’s picture

Title: Too few arguments to function Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget::__construct() » Compatibility with Paragraphs 1.18

Status: Fixed » Closed (fixed)

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