The save button, for the in-place editor, refuses to work; it spins and spins, but does nothing due to an AJAX 500 internal server error.
The log messages are
Drupal\Component\Plugin\Exception\PluginNotFoundException: Plugin ID 'e24cad63-22e1-46f4-a924-d8b9838e7a39' was not found. in Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin() (line 79 of /srv/bindings/9af704cbf45f47c38115c1c32deaceeb/code/core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php).
and
Notice: Undefined offset: 3 in Drupal\panelizer\Plugin\PanelsStorage\PanelizerFieldPanelsStorage->loadEntity() (line 81 of /srv/bindings/9af704cbf45f47c38115c1c32deaceeb/code/modules/contrib/panelizer/src/Plugin/PanelsStorage/PanelizerFieldPanelsStorage.php) #0
We believe that everything is stuck in temporary storage. Here are some symptoms:
- Anonymous users don't see our changes at all; the pages seem to be frozen as they were made on the day the content type was created.
- In the logged-in view, changes often apply themselves to all pages of the same type (which is highly destructive). That is "save as custom" does not work. There is a neglected issue open for this problem: https://www.drupal.org/node/2682789
- Sometimes when trying to add a block or change a layout, the block/layout settings quickly flicker on and off (or don't show up at all), preventing you from making the change.
- In logged-in view, changes frequently revert themselves after refreshing the page.
These issues are new but we are not sure how new. They were not present in July or perhaps early August. We started on beta 4 and upgraded to beta 5 in October, but the problems may have started earlier.
We are using both panels and panelizer, but we think this problem is with the in-place-editor.
Comments
Comment #2
DamienMcKennaDoes this happen with beta6 and the latest Panelizer release?
Comment #3
DamienMcKennaDoes the problem happen with the latest 8.x-4.2 release?
Comment #4
alphex CreditAttribution: alphex commentedThis is happening to me too.
Same error:
Chrome Devtools reports:
Comment #5
othermachines CreditAttribution: othermachines commentedRelated: #2894388: Error saving in IPE after toggling preview on Panelizer pages
Comment #6
stephenrodrigo@yahoo.com CreditAttribution: stephenrodrigo@yahoo.com at Deloitte Digital for Deloitte Digital commentedThis happens to me as well.
I am using lighting and I believe this is caused by lighting workflow module.
The actual cause is related to the revision IDs. When you hit save in panalizer, it triggers an ajax call and creates new revision ID. Then when you do another edit and saved again panalizer is going for 500 error because the revision ID is different.
So, what we have done here is, to create a local patch to trigger a page refresh once the AJAX is complete, so the revision ID also refreshes.
Comment #7
vikasshishodia51 CreditAttribution: vikasshishodia51 commentedI am also facing the same issue. Please confirm if anyone have solution to fix this.
Comment #8
Steve Hanson CreditAttribution: Steve Hanson commentedMe too. At some point it has become impossible to save pages out of IPE. Save just spins forever. Panelizer 4.0. Panels 8.x-4.2.
This is making finishing development of the site I'm trying to do really difficult.
My GUESS is that this broken when upgrading to Drupal 8.4.4 but I am not sure about that. I've only recently noticed this behavior.
----- Ahh I see, hold the phone. I see that in MY case this is apparently being caused by Varnish. IPE works fine if I take the varnish cache out of the configuration. Now all I need to figure out is why I cannot get IPE to work while using varnish.
Comment #9
ladew222 CreditAttribution: ladew222 commentedI also believe I am having this same issue under 8.x-4.0 and lightning. I was able to make changes, but now am unable to make an changes to this particular page. Other pages are not affected by the bug, but can become affected on their own. Once affected, there is no way to get panelizer back up on the page. The save will spin and nothing happens until a 500 error from:http://viterbouniveristyd8dev.prod.acquia-sites.com/admin/panels_ipe/var.... Here is the error I am seeing in the log as a result of the event:
Drupal\Component\Plugin\Exception\PluginNotFoundException: Plugin ID 'd679ca40-f761-4077-bb16-4499e17d246a' was not found. in Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin() (line 79 of /mnt/www/html/viterbouniveristyd8dev/docroot/core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php).
Comment #10
othermachines CreditAttribution: othermachines commentedAdding related issue.
Comment #11
rajeshwari10 CreditAttribution: rajeshwari10 as a volunteer and at Valuebound commentedHI,
I am facing issue while saving any block on Panel page using IPE. I am getting 403 Access Denied. when I Add any block and try to save.
When I click on the URL (/admin/panels_ipe/variant/panelizer_default/*node:1:full:default/layouts/layout_twocol) I get Client Error.
Configuration:
Drupal:8.5.1
panel - 8.x-4.2
panalizer - 8.x-4.0
page manager - 8.x-4.0-beta2
Any help would be appreciable.
Thanks!!
Comment #12
othermachines CreditAttribution: othermachines commentedHI, @rajeshwari10. This issue is related to
PluginNotFoundException
error (see original post). If you are getting Access denied, you should search for a similar issue or create a new one. It also helps to include the actual client side error, if you are getting one.Comment #13
andres.torres CreditAttribution: andres.torres commentedDrupal Core 8.5.3 - After updating to the latest Panels/Panelizer release i can confirm the issue + the following errors are logged:
Message Warning: array_unique() expects parameter 1 to be array, string given in Drupal\bootstrap\Utility\Attributes->getClasses() (line 59 of /home/andres/www/city-of-gonzales/themes/contrib/bootstrap/src/Utility/Attributes.php) #0 /home/andres/www/city-of-gonzales/core/includes/bootstrap.inc(582): _drupal_error_handler_real(2, 'array_unique() ...', '/home/andres/ww...', 59, Array) #1 [internal function]: _drupal_error_handler(2, 'array_unique() ...', '/home/andres/ww...', 59, Array) #2 /home/andres/www/city-of-gonzales/themes/contrib/bootstrap/src/Utility/Attributes.php(59): array_unique('back') #3 /home/andres/www/city-of-gonzales/themes/contrib/bootstrap/src/Utility/Attributes.php(93): Drupal\bootstrap\Utility\Attributes->getClasses() #4 /home/andres/www/city-of-gonzales/themes/contrib/bootstrap/src/Utility/DrupalAttributes.php(240): Drupal\bootstrap\Utility\Attributes->hasClass('container-inlin...') #5 /home/andres/www/city-of-gonzales/themes/contrib/bootstrap/src/Plugin/ProcessManager.php(62): Drupal\bootstrap\Utility\DrupalAttributes->hasClass('container-inlin...') #6 [internal function]: Drupal\bootstrap\Plugin\ProcessManager::process(Array, Object(Drupal\Core\Form\FormState), Array) #7 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(993): call_user_func_array(Array, Array) #8 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(1056): Drupal\Core\Form\FormBuilder->doBuildForm('panels_ipe_bloc...', Array, Object(Drupal\Core\Form\FormState)) #9 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(1056): Drupal\Core\Form\FormBuilder->doBuildForm('panels_ipe_bloc...', Array, Object(Drupal\Core\Form\FormState)) #10 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(557): Drupal\Core\Form\FormBuilder->doBuildForm('panels_ipe_bloc...', Array, Object(Drupal\Core\Form\FormState)) #11 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('panels_ipe_bloc...', Array, Object(Drupal\Core\Form\FormState)) #12 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(212): Drupal\Core\Form\FormBuilder->buildForm('panels_ipe_bloc...', Object(Drupal\Core\Form\FormState)) #13 /home/andres/www/city-of-gonzales/modules/contrib/panels/panels_ipe/src/Controller/PanelsIPEPageController.php(393): Drupal\Core\Form\FormBuilder->getForm('Drupal\\panels_i...', 'entity_field:no...', Object(Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant), '247456e7-99ca-4...') #14 [internal function]: Drupal\panels_ipe\Controller\PanelsIPEPageController->getBlockPluginForm('panelizer_field', 'node:151:full', 'entity_field:no...', '247456e7-99ca-4...') #15 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #16 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #17 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #18 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #19 /home/andres/www/city-of-gonzales/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #20 /home/andres/www/city-of-gonzales/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #21 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /home/andres/www/city-of-gonzales/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /home/andres/www/city-of-gonzales/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /home/andres/www/city-of-gonzales/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/DrupalKernel.php(664): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /home/andres/www/city-of-gonzales/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #30 {main}.
Warning: array_intersect(): Argument #2 is not an array in Drupal\bootstrap\Utility\Attributes->hasClass() (line 93 of /home/andres/www/city-of-gonzales/themes/contrib/bootstrap/src/Utility/Attributes.php) #0 /home/andres/www/city-of-gonzales/core/includes/bootstrap.inc(582): _drupal_error_handler_real(2, 'array_intersect...', '/home/andres/ww...', 93, Array) #1 [internal function]: _drupal_error_handler(2, 'array_intersect...', '/home/andres/ww...', 93, Array) #2 /home/andres/www/city-of-gonzales/themes/contrib/bootstrap/src/Utility/Attributes.php(93): array_intersect(Array, NULL) #3 /home/andres/www/city-of-gonzales/themes/contrib/bootstrap/src/Utility/DrupalAttributes.php(240): Drupal\bootstrap\Utility\Attributes->hasClass('container-inlin...') #4 /home/andres/www/city-of-gonzales/themes/contrib/bootstrap/src/Plugin/ProcessManager.php(62): Drupal\bootstrap\Utility\DrupalAttributes->hasClass('container-inlin...') #5 [internal function]: Drupal\bootstrap\Plugin\ProcessManager::process(Array, Object(Drupal\Core\Form\FormState), Array) #6 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(993): call_user_func_array(Array, Array) #7 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(1056): Drupal\Core\Form\FormBuilder->doBuildForm('panels_ipe_bloc...', Array, Object(Drupal\Core\Form\FormState)) #8 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(1056): Drupal\Core\Form\FormBuilder->doBuildForm('panels_ipe_bloc...', Array, Object(Drupal\Core\Form\FormState)) #9 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(557): Drupal\Core\Form\FormBuilder->doBuildForm('panels_ipe_bloc...', Array, Object(Drupal\Core\Form\FormState)) #10 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(314): Drupal\Core\Form\FormBuilder->processForm('panels_ipe_bloc...', Array, Object(Drupal\Core\Form\FormState)) #11 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Form/FormBuilder.php(212): Drupal\Core\Form\FormBuilder->buildForm('panels_ipe_bloc...', Object(Drupal\Core\Form\FormState)) #12 /home/andres/www/city-of-gonzales/modules/contrib/panels/panels_ipe/src/Controller/PanelsIPEPageController.php(393): Drupal\Core\Form\FormBuilder->getForm('Drupal\\panels_i...', 'entity_field:no...', Object(Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant), '247456e7-99ca-4...') #13 [internal function]: Drupal\panels_ipe\Controller\PanelsIPEPageController->getBlockPluginForm('panelizer_field', 'node:151:full', 'entity_field:no...', '247456e7-99ca-4...') #14 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #15 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #16 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #17 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #18 /home/andres/www/city-of-gonzales/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #19 /home/andres/www/city-of-gonzales/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #20 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #21 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #22 /home/andres/www/city-of-gonzales/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #23 /home/andres/www/city-of-gonzales/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #24 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /home/andres/www/city-of-gonzales/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /home/andres/www/city-of-gonzales/core/lib/Drupal/Core/DrupalKernel.php(664): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /home/andres/www/city-of-gonzales/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #29 {main}.
Comment #14
othermachines CreditAttribution: othermachines commented@andres.torres - This actually looks like it belongs here: #2900531: Classes should be array of strings for Panels IPE
Comment #15
ddrozdik CreditAttribution: ddrozdik as a volunteer and at Five Jars for Open Y commentedThis issue has been described in another issue https://www.drupal.org/project/panels/issues/2919054
There are two patches that seem to fix this issue - https://www.drupal.org/project/panels/issues/2919054#comment-12406429
I'm going to apply these patches and test how they work with the latest version of panelizer and panels.
Comment #16
ddrozdik CreditAttribution: ddrozdik as a volunteer and at Five Jars for Open Y commentedI've tested these two patches https://www.drupal.org/project/panels/issues/2919054#comment-12406429 and can confirm that after applying them panelizer and panels_ipe start work well.
Let's join to test these patches together to speed up the process of testing and adding them to the repository.
Comment #17
manojapare CreditAttribution: manojapare as a volunteer and commentedAble to reproduce the issue once after trying to add content field which is not of current content type field.
Example: Simple banner is a field in article content type and while trying to add the simple banner field through IPE to basic page content type.
So I guess implementing hook_panels_ipe_blocks_alter() to remove other content type fields will fix this issue.
Comment #18
joelpittetThere are no patches in this issue to work on, setting back to active.
Comment #19
marceldenouden CreditAttribution: marceldenouden commentedI have the same problem, is there already a working solution?