I have a product page which using panel page. When I updated ctools, panel, page manager modules to latest version. I have the issue when I go to:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "entity_type:commerce_product_type" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 52 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Module version:
Commerce: 8.x-2.x-dev
Page manager: 8.x-1.0-alpha24
Ctools: 8.x-3.0-alpha27
Drupal core: 8.1.7

Comments

tamnv created an issue. See original summary.

bojanz’s picture

Status: Needs work » Active
Issue tags: -Commerce (duplicate)

Setting to "active", there's no patch there.

I won't have time to look into this bug in the next 2 weeks due to the beta sprint, if you need a fix before then you'll need to supply a patch.

mglaman’s picture

Status: Active » Postponed (maintainer needs more info)

Did you try clearing caches? I've had these issues where the plugin manager cache doesn't get cleared properly on install. I think this might be fixed in 8.2, even.

Marking for more info. Let us know if cache clear was enough. And if you could try with the 8.2.0-rc1 that'd help, too!

tamnv’s picture

Hi @mglaman,

I tried to clear cache by drush cr, it still has this issue. I have a product type using panel page, and after I updated ctools, and page manager, I got this issue. The product page still works normal with old version of ctools and page manager. This is full error message:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "entity_type:commerce_product_type" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 52 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Drupal\Core\Plugin\DefaultPluginManager->getDefinition('entity_type:commerce_product_type') (Line: 16)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('entity_type:commerce_product_type', Array) (Line: 50)
Drupal\Core\Condition\ConditionManager->createInstance('entity_type:commerce_product_type', Array) (Line: 81)
Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin('8f8d44ee-3b02-4996-b800-0fae35a25727') (Line: 80)
Drupal\Component\Plugin\LazyPluginCollection->get('8f8d44ee-3b02-4996-b800-0fae35a25727') (Line: 26)
Drupal\Core\Condition\ConditionPluginCollection->get('8f8d44ee-3b02-4996-b800-0fae35a25727') (Line: 148)
Drupal\Component\Plugin\LazyPluginCollection->getIterator() (Line: 75)
Drupal\page_manager\Entity\PageVariantAccess->checkAccess(Object, 'view', Object) (Line: 93)
Drupal\Core\Entity\EntityAccessControlHandler->access(Object, 'view', Object, ) (Line: 334)
Drupal\Core\Entity\Entity->access('view') (Line: 160)
Drupal\page_manager\Routing\VariantRouteFilter->checkPageVariantAccess('product_collection_product') (Line: 94)
Drupal\page_manager\Routing\VariantRouteFilter->filter(Object, Object) (Line: 95)
Drupal\Core\Routing\LazyRouteFilter->filter(Object, Object) (Line: 149)
Symfony\Cmf\Component\Routing\NestedMatcher\NestedMatcher->matchRequest(Object) (Line: 258)
Symfony\Cmf\Component\Routing\DynamicRouter->matchRequest(Object) (Line: 185)
Symfony\Cmf\Component\Routing\ChainRouter->doMatch('/medical/products/panels-menu', Object) (Line: 155)
Symfony\Cmf\Component\Routing\ChainRouter->matchRequest(Object) (Line: 84)
Drupal\Core\Routing\AccessAwareRouter->matchRequest(Object) (Line: 154)
Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest(Object, 'kernel.request', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.request', Object) (Line: 125)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 98)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 77)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 628)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
bojanz’s picture

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

Sounds like the breakage is coming from page_manager or ctools then, you should report the problem in those issue queues.
We provide no page_manager/ctools integration of our own, so there's nothing to break on our side.

Status: Fixed » Closed (fixed)

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