- 🇫🇷France aiphes
Still on D9.5.3, need to stay on 1.2
require drupal/coffee:1.2
- 🇬🇧United Kingdom robcarr Perthshire, Scotland
I'm seeing this issue on a 9.5.7 site with 8.x-1.3 running (have also tried dev branch). It's clearly a module clash or site config issue, as I have Coffee running just fine on other D9.5.x sites.
I had noticed that the following errors were in the log:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "node_type" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of/EntityTypeManager.php).
After a bit of investigation, the site I'm having problems with only has custom entity types and it seems that there is an implicit dependency on the Node module being enabled in Coffee to work correctly. Looking through the code in src/Controller/CoffeeController.php there are a few implicit dependencies that are probably enabled on most Drupal sites by default, including Node and Menu. To be thorough, maybe the module should add the relevant dependencies in info.yml, or maybe split the 'Node' aspects of Coffee into a submodule.
Probably doesn't help many others following this issue...
- 🇷🇴Romania reszli Târgu Mureș
indeed, I ran into this issue on a project where node module is not enabled.
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "node_type" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of /var/www/html/docroot/core/lib/Drupal/Core/Entity/EntityTypeManager.php).