Fatal error in SimpleWysiwygSummaryWidget due to conflicting $isWysiwyg property (Manage Form Display in Media)

Created on 27 February 2025, 4 months ago

Problem/Motivation

PHP Fatal error: Drupal\\colored_field_counter\\Plugin\\Field\\FieldWidget\\SimpleWysiwygSummaryWidget and Drupal\\colored_field_counter\\Plugin\\Field\\FieldWidget\\BaseSimpleTrait define the same property ($isWysiwyg) in the composition of Drupal\\colored_field_counter\\Plugin\\Field\\FieldWidget\\SimpleWysiwygSummaryWidget. However, the definition differs and is considered incompatible. Class was composed in /srv/app/drupal/web/modules/contrib/colored_field_counter/src/Plugin/Field/FieldWidget/SimpleWysiwygSummaryWidget.php on line 21"}

Steps to reproduce

Open manage form display with a field using the widge

Proposed resolution

BaseSimpleTrait {
- /**
- * Is text field a wysiwyg.
- *
- * @var boolean
- */
- protected $isWysiwyg = false;

SimpleLinkWidget, SimpleStringTextareaWidget, SimpleStringTextfieldWidget {

+ /**
+ * Is text field a wysiwyg.
+ *
+ * @var boolean
+ */
+ protected $isWysiwyg = false;

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024