Cannot add field: Plugin (youtube) instance class "Drupal\youtube\Plugin\Field\FieldType\YouTubeItem" does not exist.

Created on 8 February 2022, over 3 years ago
Updated 30 May 2025, about 2 months ago

Problem/Motivation

Cannot add a field to a given content type:
Plugin (youtube) instance class "Drupal\youtube\Plugin\Field\FieldType\YouTubeItem" does not exist.

Steps to reproduce

On Drupal 9.2.11

composer require drupal/youtube:^1.2
[..]
drush pm:enable youtube
[success] Successfully enabled: youtube
drush cr

Installation works as expected.

When trying to add a field to some content type, I get the mentioned error.

Nothing more in the error logs.

Trying to visit the config page results in an HTTP 500 and the following in the error log:
[Tue Feb 08 14:28:41.463737 2022] [php7:notice] [pid 964571] [client x.x.x.x:yyyyy] Uncaught PHP Exception InvalidArgumentException: "Class "\\Drupal\\youtube\\Form\\YoutubeSettingsForm" does not exist." at /z/web/core/lib/Drupal/Core/DependencyInjection/ClassResolver.php line 24, referer: https://domain.com/admin/modules

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.2

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria tgoeg

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