Settings form generates error when webprofiler is active:
The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\media_pdf_thumbnail\Form\SettingsForm::__construct() must be an instance of Drupal\Core\Entity\EntityTypeManager, instance of Drupal\webprofiler\Entity\EntityManagerWrapper given, called in /app/web/modules/contrib/media_pdf_thumbnail/src/Form/SettingsForm.php on line 38 in Drupal\media_pdf_thumbnail\Form\SettingsForm->__construct() (line 27 of modules/contrib/media_pdf_thumbnail/src/Form/SettingsForm.php). Replacing the used EntityTypeManager with EntityTypeManagerInterface solved the issue for me.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | media_pdf_thumbnail-3105762.patch | 1.12 KB | johankleene |
Comments
Comment #2
johankleene commentedComment #3
sgostanyan commentedComment #4
sgostanyan commented