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.
| Comment | File | Size | Author |
|---|---|---|---|
| paragrap-entity-field-manager.patch | 4.66 KB | arwillame |
Issue fork consent_support-3469233
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
Comment #3
andreasderijckeAh, this is a result of new feature in paragraphs 1.18 from 2 weeks ago.
Comment #6
andreasderijckeComment #7
andreasderijcke