Problem/Motivation
When I start Cron manually I get a WSOD with the following warning:
The website encountered an unexpected error. Please try again later.
Error: Call to a member function getMimeType() on null in Drupal\pdf\Plugin\Field\FieldFormatter\PdfDefault->viewElements() (line 168 of modules/contrib/pdf/src/Plugin/Field/FieldFormatter/PdfDefault.php).
Steps to reproduce
Upgraded site from D7 to D9
I Guess there is some data missing in the database but can not figure out what it is exactly.
Otherwise it seems that the module PDF is working fine but it bothers me that I get a WSOD when I run Cron Manually!
Is there a fix or workaround?
Comments
Comment #2
bart lambert commentedHi,
I resolved this problem by uninstalling and reinstalling the pdf module.
This solved the problem (for now?)
Comment #3
shenzhuxi commentedComment #4
zubair-rana commentedHere is a ptch to fix the error.