Closed (fixed)
Project:
Panels
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2024 at 08:53 UTC
Updated:
7 Aug 2026 at 06:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
luk.tc commentedComment #4
rollins commentedComment #5
rollins commentedChanges from MR make sense
It will avoid error message about getParameter()
Comment #6
luk.tc commentedComment #7
sc_cojocari commentedCould it be because of wrong variables ?
Comment #8
inascon commentedNeither of the patches worked for me. Attached a patch I now use which solves the problem for me.
I hope this helps to solves the problem.
Comment #9
f2boot commentedPatch in #7 is working for me
(aligning with changes in page_manger since patch from Path has unnecessary query appended is committed)
Comment #12
k-l commentedNone of the patches worked on Drupal 10.3.12, Panels 4.8, Panelizer 4.5.0.
Simple `Powered By Drupal` block was added to new empty panel and error occurred when saving panel:
When adding Content -> ID block (to simply show node id) after clicking `Add` block button:
No problems on Panels 4.7.
Comment #13
mvonfrie commentedSame for me, but a combination of #7 and #8 works. In addition we have to consider that the change from
page_manager_pageto_page_manager_pageonly has been introduced recently: #3362561: Path has unnecessary query appended.. I try to create a new patch by tomorrow.Comment #14
mvonfrie commentedComment #15
mvonfrie commentedComment #16
joseph.olstadHaven't looked closely however I did look at the pipeline. In the unit tests I'm seeing two additional fails with the latest commit. Not sure if it's related but could be.
Comment #17
mvonfrie commented@joseph.olstad, view modes should not be affected by this if they weren't by patch #7 and #8 individually. In the MR I see two older commits merged by you starting with "Issue #3470578 and Issue #3465159" and two older commits starting with "Issue #3456918". So the branch dedicated for this issue (
3465159-error-call-to) contains changes for two other issues as well. Maybe the additional test failures are related to those commits, or maybe there are incompatible changes on the main branch and the working branch3465159-error-call-toshould be rebased to incorporate those changes?Comment #20
anairamzapHi everyone, we needed to fix this for a project so I've created a new branch and a MR that includes changes from #2, #7 and #8.
Also changing the version to latest 8.x-4.x dev (since the MR branch is based on that branch).
Updated the fork to include the latest security changes.
Tested the patch on a brand new D10 test site using 8.x-4.x-dev and on a project using the 8.x-4.9.
Comment #21
ccolumbie commentedI upgraded to panels 4.9.0 and I'm using panelizer 4.4, although I also tried 4.5.
After applying the patches to avoid getParameter() errors, when creating a new block or using an existing one, ONLY ON NEW NODES, when trying to save changes with panel ipe I get a 500 error on URLs like the following: http://localhost:8080/admin/panels_ipe/variant/panelizer_default/*node:3... and the following response:
The website encountered an unexpected error. Try again later.
Drupal\Component\Plugin\Exception\PluginNotFoundException: Plugin ID '4badb79d-a544-43f0-8e04-27528643c832' was not found. in Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin() (line 79 of core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php).
Drupal\Component\Plugin\LazyPluginCollection->get('4badb79d-a544-43f0-8e04-27528643c832') (Line: 19)
Drupal\ctools\Plugin\BlockPluginCollection->get('4badb79d-a544-43f0-8e04-27528643c832') (Line: 43)
Drupal\ctools\Plugin\DisplayVariant\BlockDisplayVariant->getBlock('4badb79d-a544-43f0-8e04-27528643c832') (Line: 55)
Drupal\panels_ipe\Helpers\UpdateLayoutRequestHandler::updatePanelsDisplay(Object, Array) (Line: 24)
Drupal\panels_ipe\Helpers\UpdateLayoutRequestHandler->updateLayout(Object, Array, ) (Line: 13)
Drupal\panels_ipe\Helpers\UpdateLayoutRequestHandler->handle(Object, Array, ) (Line: 49)
Drupal\panels_ipe\Helpers\RequestHandlerBase->handleRequest(Object, Object) (Line: 251)
Drupal\panels_ipe\Controller\PanelsIPEPageController->handleUpdateLayoutRequest('panelizer_default', '*node:3302:full:default', Object) (Line: 287)
Drupal\panels_ipe\Controller\PanelsIPEPageController->handleCreateLayoutRequest('panelizer_default', '*node:3302:full:default', Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 31)
This doesn't happen in version 4.7.0, but it does starting with 4.8.0. What's the cause and how can I fix it?
Comment #22
joseph.olstad@ccolumbie , please try this patch: https://git.drupalcode.org/project/panels/-/merge_requests/31.diff
if curl doesn't work, try wget
Comment #23
rakesh.regarFixes this issue on panels 8.x-4.9
Comment #26
joelpittetThanks everyone for your patience on this one, and for the persistence in getting to the real cause. This is now merged to 8.x-4.x.
Credit to @anairamzap for MR 31 pulling the working pieces together, @luk.tc for the original report and MR 26, @inascon and @f2boot for the patches in #7 and #8, @mvonfrie for spotting the parameter rename, and @joseph.olstad for the earlier MR and review. Really appreciate the collaboration.