Problem/Motivation
PHP error: Drupal\Component\Plugin\Exception\PluginException: Plugin (entity_bundle:node) instance class "Drupal\ctools\Plugin\Condition\EntityBundleConstraint" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of /code/web/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).
Steps to reproduce
Update from ctools 4.0.0 to 4.0.1. Update database. Attempt to add article.
Update was concurrent with updates to Core 9.4.5, admin_toolbar 3.1.1, pantheonadvancedpagecache 1.3, pathauto 1.11, token 1.11.
Update.php was run, but returned with no updates required
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#7 | 3302732-6.patch | 1.04 KB | japerry |
Comments
Comment #2
nkraftI just encountered this same error.... ugh.
Comment #3
nkraftComment #4
japerryClear cache should fix this issue.
Comment #5
mistergroove CreditAttribution: mistergroove as a volunteer commentedStill get the error after cache clear (on /admin/reports/updates page). Had to downgrade to 4.0.1 for now.
Comment #6
DigitalFrontiersMediaI was going to report this last night as well but thought I must just be tired. However, it happened with the 4.0.1 -> 4.0.2 update for me. Rebuilding cache does no good. I think running the database update does something bad. Whole site is hosed. Reverting to 4.0.1 did not fix for me. Will update if I find out anything more.
Comment #7
japerryAhh I think I see the issue. I've added a check to remap the plugin for EntityBundleConstraint to EntityBundle instead. Try to update to the latest version of ctools and apply this patch.
Comment #8
DigitalFrontiersMediaReverting to 4.0.1, restoring database from backup, re-updating to CTools 4.0.2, applying patch, and running database updates seems to have site back running. Thank you, @japerry! Will report if I see anything else.
Maybe someone else can confirm this fixes problem before RTBC since I also worry there may be other factors with my particular site.
Comment #9
japerryAwesome! This is probably being caused by those who upgraded to 8.x-3.10 / 4.0 which created the use of the plugin. If you didn't upgrade to 3.10 and went from 3.09 straight to 4.0.1 or later then you'd be fine.
I'll push this up for the next release. It should work with both use cases.
Comment #10
DigitalFrontiersMediaBad timing with the updates/upgrades on my part, I guess. I can confirm that none of the sites still on the 3.x branch were affected (for those interested).
Comment #12
japerryComment #14
Parashram CreditAttribution: Parashram commentedI am getting same issue while creating node.
Drupal\Component\Plugin\Exception\PluginException: Plugin (node_type) instance class "EntityBundle" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).
Using drupal core version 10.1.2 & tries ctools ver 4.0.2 & 4.0.4
Above patch is already included in 4.0.4 but not able to fix the issue. Any suggestion would be appreciated.
Comment #15
SocialNicheGuru CreditAttribution: SocialNicheGuru commented