Error: Class "Drupal\options\Plugin\Field\FieldType\ListItemBase" not found in include() (line 23 of modules/contrib/field_image_style/src/Plugin/Field/FieldType/ImageStyleItem.php).

Created on 19 August 2022, over 2 years ago
Updated 19 October 2023, about 1 year ago

Problem/Motivation

After Enable the module, if you try to add a field you will see an error:

Error: Class "Drupal\options\Plugin\Field\FieldType\ListItemBase" not found in include() (line 23 of modules/contrib/field_image_style/src/Plugin/Field/FieldType/ImageStyleItem.php).

The reason for the error is that field_image_style is not a required option module.

Steps to reproduce

1- Install Drupal vanilla
2- Install field_image_style module
3- Try to add field for node via admin/structure/types/manage//fields/add-field

You will see an error Error: Class "Drupal\options\Plugin\Field\FieldType\ListItemBase" not found.

Proposed resolution

Add option module as a dependency in the module info file.

Remaining tasks

Create patch.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇩🇪Germany majdi

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024