Fatal error on creating script type field

Created on 4 July 2024, 3 months ago
Updated 11 September 2024, 17 days ago

Problem/Motivation

I have tried to create a script field to a custom content type but I am getting the following error:

TypeError: Drupal\javascript_scripting\Plugin\Field\FieldWidget\ScriptWidget::cleanParameters(): Argument #1 ($parameters) must be of type array, string given, called in /home/mvisioni/public_html/drupal/modules/javascript_scripting/src/Plugin/Field/FieldWidget/ScriptWidget.php on line 163 in Drupal\javascript_scripting\Plugin\Field\FieldWidget\ScriptWidget->cleanParameters() (line 144 of modules/javascript_scripting/src/Plugin/Field/FieldWidget/ScriptWidget.php).

Steps to reproduce

1. Go to Structure
2. Select Content type and Manage fields
3. Add new field
4. Select "Script"
5. On the next step write a name of the field and submit

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇬Bulgaria MPetkovFFW

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

Comments & Activities

Production build 0.71.5 2024