After upgrading blog items stop rendering and throwing an error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "n" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 150 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).
Drupal\Core\Entity\EntityTypeManager->getHandler('n', 'storage') (Line: 208)
Drupal\Core\Entity\EntityTypeManager->getStorage('n') (Line: 80)
Drupal\Core\Entity\EntityManager->getStorage('n') (Line: 108)
Drupal\page_manager\PageManagerHelper->fixContexts(Array) (Line: 82)
Drupal\page_manager\PageManagerHelper->getTitle('[node:title]', Array) (Line: 65)
Drupal\page_manager\PageManagerHelper->getVariantTitle(Object)
call_user_func_array(Array, Array) (Line: 58)
Drupal\Core\Controller\TitleResolver->getTitle(Object, Object) (Line: 752)
token_tokens('current-page', Array, Array, Array, Object)
call_user_func_array('token_tokens', Array) (Line: 403)
Drupal\Core\Extension\ModuleHandler->invokeAll('tokens', Array) (Line: 304)
Drupal\Core\Utility\Token->generate('current-page', Array, Array, Array, Object) (Line: 196)
Drupal\Core\Utility\Token->replace('[current-page:title] | [site:name]', Array, Array, Object) (Line: 66)
Drupal\metatag\MetatagToken->replace('[current-page:title] | [site:name]', Array, Array) (Line: 553)
Drupal\metatag\MetatagManager->generateRawElements(Array, Object) (Line: 475)
Drupal\metatag\MetatagManager->generateElements(Array, Object) (Line: 499)
metatag_get_tags_from_route() (Line: 126)
metatag_page_attachments(Array) (Line: 297)
Drupal\Core\Render\MainContent\HtmlRenderer->invokePageAttachmentHooks(Array) (Line: 273)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 67)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 49)
Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Comments

jedgar1mx created an issue. See original summary.

jedgar1mx’s picture

It seems that I can render the items in views and even embed them but when going to the blog item the error shows.

rajab natshah’s picture

Thank you Edgar for reporting !! <3

I think it's from the patch for the Page Manager module
#2665328: Fix Variants take entity label, not the variant title

rajab natshah’s picture

Please try to replace the with patches-ignore for testing only
This should be a quick fix and release in Varbase Core module

    "patches-ignore": {
      "drupal/varbase_core": {
        "drupal/page_manager": {
          "Issue #2665328: Variants take entity label not the variant title":
          "https://www.drupal.org/files/issues/2020-06-03/2665328-102.patch"
        }
      }
    },
    "patches": {
      "drupal/page_manager": {
        "Issue #2665328: Variants take entity label not the variant title":
        "https://www.drupal.org/files/issues/2020-06-09/2665328-106.patch"
      }
    }
rajab natshah’s picture

Project: Varbase Blog (Corporate Blog) » Varbase Core

Moving to this issue to Varbase Core

rajab natshah’s picture

Title: The "n" entity type does not exist. » Fix The "n" entity type does not exist issue for Page Manager on the patch for Variants take entity label not the variant title
Version: 8.x-8.3 » 8.x-8.x-dev
rajab natshah’s picture

  • RajabNatshah committed cce8dc6 on 8.x-8.x
    Issue #3150648 by jedgar1mx: Fix The "n" entity type does not exist...

  • RajabNatshah committed cbcd85a on 9.0.x
    Issue #3150648 by jedgar1mx: Fix The "n" entity type does not exist...
rajab natshah’s picture

Assigned: Unassigned » mohammed j. razem
Status: Active » Fixed
Issue tags: +varbase-8.8.6, +varbase-9.0.0
rajab natshah’s picture

Status: Fixed » Needs review
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Status: Needs review » Fixed
jedgar1mx’s picture

Yup 👍 it works

Status: Fixed » Closed (fixed)

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