Compatibility with Paragraphs 1.18

Created on 20 August 2024, 3 months ago
Updated 4 September 2024, 2 months ago

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.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium arwillame

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024