After upgrading a site to the latest Drupal (8.6.14) and then installing ckeditor_uploadimage, we experienced some errors.
When editing any media or when configuring a text format that use CKEditor.
The site just shows the following error message:
The website encountered an unexpected error. Please try again later.
In the log messages I find this message:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "media" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 133 of /srv/www/vhosts/newbroken.trusoft.co.za/core/lib/Drupal/Core/Entity/EntityTypeManager.php).
When I uninstall the module, the site works fine again.
Initially, I thought it was the Drupal upgrade to v 8.6.14 that caused the problem and after trying all the upgrade fixes, I decided to do a new installation, but then as soon as I enabled the ckeditor_uploadimage module, the new, clean site has the same problem.
Andre Truter
Comments
Comment #2
andretr commentedOK, I am going to close this myself.
I just realised that in Drupal 8.6.14, the standard CKeditor already have an image upload option built in. You just need to enable it and there you go!
So this module is not needed anymore for the latest Drupal.
Thanks
Comment #3
arpeggio commentedFyi:
You will not need this module if you only want the conventional way which is browsing the image file in computer's or device's file system to upload it.
Comment #5
arpeggio commentedI have already fixed this issue. Thank you for reporting this issue @andretr.