- First commit to issue fork.
-
Berdir β
committed 00181fc0 on 8.x-1.x authored by
acbramley β
Issue #3100763 by cskeers, acbramley, el7cosmos, hudri: Replicating node...
-
Berdir β
committed 00181fc0 on 8.x-1.x authored by
acbramley β
- Status changed to Fixed
about 2 years ago 10:32pm 24 March 2023 - π¨πSwitzerland berdir Switzerland
Only had a cursory look at this, but looks sensible. This is hardcoded to that specific plugin, but if other types of blocks need special treatment too we could always add an event or so in there.
- π¨πSwitzerland berdir Switzerland
Follow-up comment: Lets try to get π It is not possible to react to an entity being duplicated Needs work into core, so that core/layout builder can do its own house-keeping and contrib doesn't need hold its hands so much. And kind of remove the need for this module in the first place as well ;)
- Status changed to Needs work
about 2 years ago 8:57pm 27 March 2023 - πΊπΈUnited States papagrande US West Coast
I just updated to 8.x-1.1 and am now getting this fatal error:
The website encountered an unexpected error. Please try again later. Error: Class "Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage" not found in Drupal\replicate\EventSubscriber\ReplicateLayoutBuilderSubscriber->onReplicateAfterSave() (line 82 of modules/contrib/replicate/src/EventSubscriber/ReplicateLayoutBuilderSubscriber.php). Drupal\replicate\EventSubscriber\ReplicateLayoutBuilderSubscriber->onReplicateAfterSave(Object, 'replicate__after_save', Object) call_user_func(Array, Object, 'replicate__after_save', Object) (Line: 142) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'replicate__after_save') (Line: 100) Drupal\replicate\Replicator->replicateEntity(Object) (Line: 117) Drupal\replicate_ui\Form\ReplicateConfirmForm->submitForm(Array, Object) call_user_func_array(Array, Array) (Line: 114) Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52) Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 595) Drupal\Core\Form\FormBuilder->processForm('node_trust_center_page_replicate_form', Array, Object) (Line: 323) Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73) Drupal\Core\Controller\FormController->getContentResult(Object, Object) call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->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: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
The content node does get replicated.
Enabling the layout_builder module gets rid of the error, but that module should not be required.
- π¨πSwitzerland berdir Switzerland
Ah, that again. we need to add the event subsscriber only if the module is enabled, either in the getsubscribed events method or by adding the whole service only in a serviceprovider classes.
That said, since this was committed and released, pleases create a new issue and reference it here.
- Status changed to Fixed
about 2 years ago 7:50am 28 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.