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.

CommentFileSizeAuthor
#2 3304753-2.patch291 bytesflocondetoile

Comments

Majdi created an issue. See original summary.

flocondetoile’s picture

Status: Active » Needs review
StatusFileSize
new291 bytes

  • flocondetoile authored 551b5a09 on 8.x-1.x
    Issue #3304753 by flocondetoile, Majdi: Error: Class "Drupal\options\...
flocondetoile’s picture

Status: Needs review » Fixed

Thanks for reporting. Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.