Drupal\Component\Plugin\Exception\PluginException: Plugin (node_type) instance class "EntityBundle" does not exist. Class 'NodeType' is deprecated

Created on 10 September 2023, about 1 year ago
Updated 8 April 2024, 8 months ago

Problem/Motivation

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)

Steps to reproduce

Using drupal core version 10.1.2 & tries ctools ver 4.0.2 & 4.0.4

Proposed resolution

Tried patch ๐Ÿ› WSOD - Plugin\Condition\EntityBundleConstraint does not exist Fixed but still facing same issue.

Any suggestion would be appreciated.

๐Ÿ› Bug report
Status

Closed: duplicate

Version

4.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Parashram

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Parashram
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Shreya_98

    Shreya_th โ†’ made their first commit to this issueโ€™s fork.

  • Open on Drupal.org โ†’
    Core: 9.5.5 + Environment: PHP 7.4 & MySQL 8
    last update about 1 year ago
    Not currently mergeable.
  • @deasly opened merge request.
  • Status changed to Needs review 12 months ago
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 9.5.5 + Environment: PHP 7.4 & MySQL 8
    last update 12 months ago
    56 pass
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia viren18febS

    Hi @Parashram
    I have resolved the issue & added patch, please review.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany Rar9

    patch not workring for 10.1.15

  • ๐Ÿ‡ฆ๐Ÿ‡ทArgentina tguerineau

    Hi,

    I've been investigating the issue on a new Drupal 10.1.2 environment with the `ctools` module version 4.0.4.

    During my testing no errors were encountered. I also checked the Drupal logs and did not find any related error messages.

    I would like to request more detailed steps to reproduce this issue. The current steps provided mention using Drupal core version 10.1.2 and `ctools` versions 4.0.2 & 4.0.4, but further information on specific configurations or actions that trigger the error would be greatly helpful.

    I'd like to bring to attention a related issue I recently worked on, which had a similar context regarding the deprecation of NodeType. In that issue, a patch was successfully applied and tested, resolving the deprecation warning without causing any new problems. The patch involved updating references from NodeType::class to EntityBundle::class in the ctools.module file.

    Given the similarity in the nature of the deprecations and the components involved, I am wondering if the patch from the previous issue might also be relevant here, or if the issues could be connected in some way. The previous issue can be found at Deprecated class Drupal\ctools\Plugin\Condition\NodeType ๐Ÿ› Deprecated class Drupal\ctools\Plugin\Condition\NodeType RTBC .

  • Status changed to Closed: duplicate 8 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States japerry KVUO
Production build 0.71.5 2024