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
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2022-01-28 at 6.21.13 AM.png | 78.03 KB | thomas kaisuka |
Comments
Comment #2
sgostanyan commentedThat 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
Comment #3
thomas kaisuka commentedAm 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
Comment #4
thomas kaisuka commentedbeta-9 releases seems to have fixed this issue. The error is gone.
Comment #5
thomas kaisuka commented