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

CommentFileSizeAuthor
#7 3302732-6.patch1.04 KBjaperry
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hughmccracken created an issue. See original summary.

nkraft’s picture

Issue summary: View changes

I just encountered this same error.... ugh.

nkraft’s picture

Issue summary: View changes
japerry’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

Clear cache should fix this issue.

mistergroove’s picture

Still get the error after cache clear (on /admin/reports/updates page). Had to downgrade to 4.0.1 for now.

DigitalFrontiersMedia’s picture

I 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.

japerry’s picture

Category: Support request » Bug report
Status: Postponed (maintainer needs more info) » Needs review
FileSize
1.04 KB

Ahh 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.

DigitalFrontiersMedia’s picture

Version: 4.0.1 » 4.0.2

Reverting 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.

japerry’s picture

Awesome! 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.

DigitalFrontiersMedia’s picture

Bad 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).

  • japerry committed ac3dc3f on 8.x-3.x
    Issue #3302732 by japerry: Make sure those who used...
japerry’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Parashram’s picture

I 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.