- Issue created by @bburg
- πΊπΈUnited States bburg Washington D.C.
For reference, here is the stack trace once it enters the loop:
EntityReplicate.php:69, Drupal\replicate_ui\Plugin\Action\EntityReplicate->execute() ActionBase.php:22, Drupal\Core\Action\ActionBase->executeMultiple() EntityReplicate.php:69, Drupal\replicate_ui\Plugin\Action\EntityReplicate->execute() ActionBase.php:22, Drupal\Core\Action\ActionBase->executeMultiple() EntityReplicate.php:69, Drupal\replicate_ui\Plugin\Action\EntityReplicate->execute() EntityProcessorBase.php:374, Drupal\feeds\Feeds\Processor\EntityProcessorBase->clean() LazySubscriber.php:123, Drupal\feeds\EventSubscriber\LazySubscriber->Drupal\feeds\EventSubscriber\{closure:/var/www/html/web/modules/contrib/feeds/src/EventSubscriber/LazySubscriber.php:120-128}() ContainerAwareEventDispatcher.php:111, call_user_func:{/var/www/html/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php:111}() ContainerAwareEventDispatcher.php:111, Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() EventDispatcherTrait.php:38, Drupal\feeds\FeedsExecutable->dispatchEvent() FeedsExecutable.php:284, Drupal\feeds\FeedsExecutable->doClean() FeedsExecutable.php:115, Drupal\feeds\FeedsExecutable->processItem() batch.inc:296, _batch_process() batch.inc:138, _batch_do() batch.inc:94, _batch_page() BatchController.php:49, Drupal\system\Controller\BatchController->batchPage() EarlyRenderingControllerWrapperSubscriber.php:123, call_user_func_array:{/var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:123}() EarlyRenderingControllerWrapperSubscriber.php:123, Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure:/var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:121-124}() Renderer.php:592, Drupal\Core\Render\Renderer->executeInRenderContext() EarlyRenderingControllerWrapperSubscriber.php:124, Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() EarlyRenderingControllerWrapperSubscriber.php:97, Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure:/var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:96-98}() HttpKernel.php:181, Symfony\Component\HttpKernel\HttpKernel->handleRaw() HttpKernel.php:76, Symfony\Component\HttpKernel\HttpKernel->handle() RedirectMiddleware.php:44, Drupal\redirect_after_login\RedirectMiddleware->handle() Session.php:58, Drupal\Core\StackMiddleware\Session->handle() KernelPreHandle.php:48, Drupal\Core\StackMiddleware\KernelPreHandle->handle() PageCache.php:106, Drupal\page_cache\StackMiddleware\PageCache->pass() PageCache.php:85, Drupal\page_cache\StackMiddleware\PageCache->handle() ReverseProxyMiddleware.php:48, Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() CloudFlareMiddleware.php:124, Drupal\cloudflare\CloudFlareMiddleware->handle() NegotiationMiddleware.php:51, Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() StackedHttpKernel.php:51, Drupal\Core\StackMiddleware\StackedHttpKernel->handle() DrupalKernel.php:704, Drupal\Core\DrupalKernel->handle() index.php:19, {main}()
- Status changed to Closed: duplicate
about 1 year ago 3:02pm 6 December 2023 - π¨πSwitzerland berdir Switzerland
There's an existing issue for the broken action: π EntityReplicate action is broken Needs work .
Not sure why feeds is calling that though, that seems strange to me.
- πΊπΈUnited States bburg Washington D.C.
It seems that if you have Replicate UI installed, with Feeds, in the feed settings, under the "Previously imported items: Select what to do with items that were previously imported, but are now no longer in the feed." setting, there are two seemingly similar options: "Delete" and "Delete Content". I believe "Delete" is the default core Drupal delete action, and "Delete Content" seems to map to an Action plugin in this module with the ID "entity_replicate:entity_node_replicate". Using that setting seems to utilize the EntityReplicate plugin that triggers the loop.
The simple solution seems to use the intended, "Delete" plugin instead of the one related to this module. But this does bring up a few new questions. Why is this plugin appearing in the first place? Why does the plugin ID, and label seem to refer to very different activities (deleting content Vs. replicating). What is the original intended use for the methods that seem to enter the loop and is it fulfilling that intent if it just enters an infinite loop?
- π¨πSwitzerland berdir Switzerland
Those are all valid questions that are being fixed in the other issue.