Problem/Motivation

On updgrading to version 8.x-5.0-beta 8 i ran into an error when i tried managing the display for one of my content types

Drupal\Component\Plugin\Exception\PluginException: Plugin (media_pdf_thumbnail_field_formatter) instance class "Drupal\media_pdf_thumbnail\Plugin\Field\FieldFormatter\MediaPdfThumbnailFieldFormatter" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of /home/598648.cloudwaysapps.com/bqacupzfcd/public_html/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php)

Steps to reproduce

Attempt to upgrade from8.x-5.0-beta 7 to 8.x-5.0-beta 8

Proposed resolution

I rolled back to 8.x-5.0-beta 7 for the time being and everything looks fine. This needs to be looked into.

Am running Drupal 9.3.3

Comments

Thomas Kaisuka created an issue. See original summary.

sgostanyan’s picture

That plugin has been removed since it is no more used.

Actually the error you get is because you are using Media Pdf Thumbnail formatter in a media entity reference field in nodes (or other entity types) instead of using it in media entity thumbnail field.

1- Setup a Media entity view mode which uses Media Thumbnail Pdf as formatter for the thumbnail field.
2- In node/entity view mode where you are using a Media field, set "Rendered entity" and choose the Media view mode you've configured in step 1.
3- Update to beta8

thomas kaisuka’s picture

Am using none of those. Actually for the current project am building i can install the module and uninstall without breaking the website.

So its not being use as a formatter anywhere. And no PDF either on the website. The existing PDF field uses PDF JS to format displays but it has zero content for now

thomas kaisuka’s picture

beta-9 releases seems to have fixed this issue. The error is gone.

thomas kaisuka’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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