Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After I installed module on production server (drush en ultimate_cron), I received a fatal error and the following message in dblog:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "ultimate_cron_job" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 130 of ../core/lib/Drupal/Core/Entity/EntityTypeManager.php).
After quickly deactivated module, clear cache and installed module again, module is started normally, without errors.
Comment | File | Size | Author |
---|---|---|---|
#6 | ultimate_cron_job-2778357-06-8.x-2.x.patch | 1022 bytes | 17chances |
|
Comments
Comment #2
BerdirCan't reproduce and nobody else ever reported this, so closing.
Comment #3
stimalsina CreditAttribution: stimalsina as a volunteer and commentedI was able to reproduce this as well. Here are the steps to reproduce:
This seems to be a common error among many modules. A quick search for "The * entity type does not exist" reveals many such issues. Unfortunately, I have not found any core issues relating to this.
Comment #4
aangel CreditAttribution: aangel commentedWe are seeing this, too.
Comment #5
cristian100So sad, I'm having this same issue, once I install the module through the UI, it will go into a white page with the error mentioned:
The website encountered an unexpected error. Please try again later.Drupal\Component\Plugin\Exception\PluginNotFoundException: The "ultimate_cron_job" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 133 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).
Module Version 8.x-2.0-alpha2
PHP 7.1
Hosted in Pantheon
Drupal Version 8.4.2
Comment #6
17chances CreditAttribution: 17chances as a volunteer commentedEntity schema not instantiated while install process. On post update state entity definitions added by module are allowed to use. So job discovery should be moved into post update hook.
Comment #7
17chances CreditAttribution: 17chances as a volunteer commentedComment #8
BerdirThat fix doesn't make sense, that's now how update functions work. If you install then Drupal will never run any update or post update functions.
Using its own entity type in a hook_install() should work just fine, in fact core does that too if you have default configuration, even earlier than that.
Comment #9
Augusto182 CreditAttribution: Augusto182 commentedI have this issue, but, uninstall and reinstall via Druhs does not solve the situation.
Comment #10
simoneb CreditAttribution: simoneb commentedI've the same issue, sometimes ultimate cron stops to work and I see this error on cron page
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "ultimate_cron_job" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 150 of /var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php).
Only way to solve is uninstall and reinstall
Any idea?
Thanks
Modules:
- Drupal core 8.7.5
- Ultimate Cron 8.x-2.0-alpha4
Comment #11
simoneb CreditAttribution: simoneb commentedany news on this one? I need to uninstall and re-enable near daily.
Comment #12
lamp5Hi. I made the same error today. This is an instruction on how I did it and how to solve it.
Comment #13
BerdirI can't fix problems that I can't reproduce. non-defined or incomplete entity type definitions usually happen when there are other issues with a site that prevent full discovery or break alter hooks.