Incompatible with UI pattern library (ui patterns submodule)

Created on 9 September 2020, about 4 years ago
Updated 13 September 2023, about 1 year ago

Problem/Motivation

Installing this module path /patterns comes to a WSOD with following error

Here is the error that I am getting when visiting the /patterns path

The website encountered an unexpected error. Please try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "link" plugin does not exist. Valid plugin IDs for Drupal\ui_patterns_settings\UiPatternsSettingsManager are: url, number, checkbox, token, attributes, select, boolean, textfield in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Drupal\Core\Plugin\DefaultPluginManager->getDefinition('link') (Line: 33)
Drupal\ui_patterns_settings\UiPatternsSettingsManager->createInstance('link', Array) (Line: 114)
Drupal\ui_patterns_settings\UiPatternsSettings::createSettingType(Object) (Line: 72)
Drupal\ui_patterns_settings\UiPatternsSettings::preprocess('pagination', Array, '', 1, NULL) (Line: 58)
Drupal\ui_patterns_settings\Element\PatternSettings::processSettings(Array, 1) (Line: 25)
Drupal\ui_patterns_settings\Element\PatternSettings::processPreviewSettings(Array)
call_user_func_array(Array, Array) (Line: 100)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. Support for this callback implementation is deprecated in 8.8.0 and will be removed in Drupal 9.0.0. See https://www.drupal.org/node/2966725', 'silenced_deprecation', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 781)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 372)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 444)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 444)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 200)
Drupal\Core\Render\Renderer->render(Array) (Line: 501)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 121)
__TwigTemplate_f95abf5f9cd6effe604806c6c03cb7aad504f9db9b095b9a4469f53c43eb39c0->doDisplay(Array, Array) (Line: 455)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 422)
Twig\Template->display(Array) (Line: 434)
Twig\Template->render(Array) (Line: 64)
twig_render_template('modules/contrib/ui_patterns/modules/ui_patterns_library/templates/patterns-overview-page.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('patterns_overview_page', Array) (Line: 431)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 200)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
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: 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: 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)

Steps to reproduce

install both this module and UI Patterns Library both latest stable

I have tried this module's latest stable and latest dev versions
Have also tried to install latest dev of ui_patterns but fails

$ composer require drupal/ui_patterns:1.x-dev
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/ui_patterns_layouts 1.2.0 requires drupal/ui_patterns 1.2.0 -> satisfiable by drupal/ui_patterns[1.2.0] but these conflict with your requirements or minimum-stability.
    - drupal/ui_patterns_layouts 1.2.0 requires drupal/ui_patterns 1.2.0 -> satisfiable by drupal/ui_patterns[1.2.0] but these conflict with your requirements or minimum-stability.
    - drupal/ui_patterns_layouts 1.2.0 requires drupal/ui_patterns 1.2.0 -> satisfiable by drupal/ui_patterns[1.2.0] but these conflict with your requirements or minimum-stability.
    - Installation request for drupal/ui_patterns_layouts (locked at 1.2.0) -> satisfiable by drupal/ui_patterns_layouts[1.2.0].

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇬🇷Greece giorgosk Chios, Greece 🇬🇷

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇦Canada puregin

    @Christian.wiedemann, could you please elaborate on #4? What configuration was wrong, and how can we fix this? I'm having the same issue with ui_patterns_settings 8.x-2.0, ui_patterns 8.x-1.7. wingsuit_link is enabled.

Production build 0.71.5 2024