Hi together,

I can´t install/enable page_manager 8x.4.-
After update D8 core to version 3.x. and naively updating panels to v. 4.x., as well as updating panelizer, my site got messed up (wsod).
After realizing that panels4 needs layout_discovery instead of layout_plugin, I got panels4 and the site back running (by losing all my panels-pages).

But enabling page_manager leads to wsod again.

Drush throughs out this error:

...
exception 'Drupal\Component\Plugin\Exception\PluginNotFoundException'[error]
with message 'The "page_variant" entity type does not exist.' in
/var/www/interprace_cz/core/lib/Drupal/Core/Entity/EntityTypeManager.php:133...

I tried different 4.x-dev-versions.

There are a lot of discussions about the annoying issue with panels update, but I can´t find anything especially for page manager.

anybody out here to help me out?

regards
Vincent

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Vincent_Jo created an issue. See original summary.

vincent_jo’s picture

Hi,

I managed to get my site back again with page_manager 4 and panels 4 by applying the patch from this issue to panels:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist.

but ... again a "but" ....

I can´t add a page/page variant now:
/admin/structure/page_manager/add
leads to WSOD at the end. (admin/structure/page_manager/add/test/layout?js=nojs) ... no errors in dblog ... what does the "?js=nojs" mean?

My current setup:

Drupal version : 8.3.1
Chaos tool Chaos tools (ctools) Module Enabled 8.x-3.0
Layout Layout Plugin (layout_plugin) Module Not installed
Core Layout Discovery Module Enabled 8.3.1
Layout Panelizer (panelizer) Module Enabled 8.x-4.0
Panels Panels (panels) Module Enabled 8.x-4.1
Panels Panels IPE (panels_ipe) Module Enabled 8.x-4.1
Layout Page Manager UI (page_manager_ui) Module Enabled 8.x-4.0-beta2
...
I´m just discovering something strange when comparing drush list of enabled modules and the list from /admin/modules
drush pml: Page Manager (page_manager) - Not installed 8.x-4.0-beta2
Modules list: Page Manager (page_manager) - installed !!! 8.x-4.0-beta2

command "drush en page_manager" says: There were no extensions that could be enabled.

any idea?

regards
Vincent

b_sharpe’s picture

I'm having the same issue, I've narrowed it down to page_manager/src/Routing/VariantRouteFilter.php

In the construct it is calling getStorage('page_variant') but for some reason it is not in the definition cache yet during install.

Adding $entity_type_manager->clearCachedDefinitions(); before that call seems to work, but this should not be the fix as it's concerning that the cache isn't updating after the variant is created...

  public function __construct(EntityTypeManagerInterface $entity_type_manager, CurrentPathStack $current_path, RequestStack $request_stack) {
    $entity_type_manager->clearCachedDefinitions();
    $this->pageVariantStorage = $entity_type_manager->getStorage('page_variant');
    $this->currentPath = $current_path;
    $this->requestStack = $request_stack;
  }

I'm continuing to dig, but hopefully this helps someone with a little more knowledge get pointed in the right direction...

b_sharpe’s picture

Component: Miscellaneous » Code
Category: Support request » Bug report
vincent_jo’s picture

Hi,

thanks for digging into this ...
I for my part had to stop to develop the project in D8. My customer wasn´t willing to pay for so much additional time for bug fixing all around - this one wasn´t the only one. I started over again with D7 ... and am happy ;-)

just to mention .... regards

Vincent

b_sharpe’s picture

StatusFileSize
new1.02 KB

Still not convinced this is a permanent fix, as I think the bug is in the order of operation of config vs install, but here is a work around patch for now

b_sharpe’s picture

Title: Can´t install page_manager 8.x.4 - enabling brakes site » page_variant entity type does not exist when installing
b_sharpe’s picture

StatusFileSize
new1.29 KB

Submitted with wrong exception type. Fixed in this patch

arosboro’s picture

This fixed my broken build

mpotter’s picture

Title: page_variant entity type does not exist when installing » page_variant entity type does not exist when installing or enabling
Status: Active » Reviewed & tested by the community

I ran into this same issue, not during "install", but just during a "config-import" which was attempting to enable the page_manager and page_manager_ui modules at the same time.

Updated the issue title a bit. The patch in #8 fixed the problem for me, so marking this RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 8: 2876880-page-varient-cache-2.patch, failed testing. View results

alan d.’s picture

Priority: Normal » Critical

Another rtbtc, and raising to critical as this kills a site when installed,

ravimalviya2000’s picture

Thanks for suggestion one of my website.i have using this patch.

lpalgarvio’s picture

fixes issue

skll5l’s picture

I had a similar issue in a custom module. Setting the correct module dependencies ensured that the required entity type existed at install.

marvil07’s picture

Status: Needs work » Needs review

testbot failed because of a checkout error originated on a full disk, so the current needs work is not accurate, moving back to needs review, but if it passes it should be back to RTBC, as per comment #10.

anybody’s picture

Status: Needs review » Reviewed & tested by the community

I had the issue when calling /update.php. #8 fixed it. So I can confirm RTBC and this should get into a new dev release. Together with #2918564: Update 'page_manager.variant_route_filter' service according to core changes it should also be part of a new stable release.

manuel.adan’s picture

It seems to happen in arbitrary conditions. Are there some steps to reproduce it from a fresh site install?

manuel.adan’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs steps to reproduce, +Needs tests
oakulm’s picture

This is still an issue in D9 4.0.0-beta6

oakulm’s picture

I was able to reproduce this with installing moderation_dashboard that has relation to page_manager. Try it?

composer require 'drupal/moderation_dashboard:^1.0@beta'
drush en moderation_dashboard

drupal/core (9.2.7)

-> wsod

delacosta456’s picture

hi
i was facing this issue too and #8 solve it for me too

anybody’s picture

j-vee’s picture

Status: Needs work » Reviewed & tested by the community

Had the same issue with 4.0 RC2 and patch from #8 fixed it.

urvashi_vora made their first commit to this issue’s fork.

  • joelpittet committed f55bea51 on 8.x-4.x
    Issue #2876880 by b_sharpe, Vincent_Jo, Anybody, manuel.adan, oakulm,...
joelpittet’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Needs tests

Thanks everybody, I granted most everybody on this issue credit and committed #8 patch.

Status: Fixed » Closed (fixed)

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