Freezing process with EntityStorageException

Created on 22 September 2023, over 1 year ago

Problem/Motivation

Cloning is freezing at 38% with following messages in the logs:

Warning: Undefined array key "third_party_settings" in Drupal\entity_type_clone\Controller\EntityTypeCloneController::copyFieldDisplay() (line 78 of /web/modules/contrib/entity_type_clone/src/Controller/EntityTypeCloneController.php)

Drupal\Core\Entity\EntityStorageException: 'field_config' entity with ID 'node.news.field_domain_source' already exists. in Drupal\Core\Entity\EntityStorageBase->doPreSave() (Zeile 519 in /web/core/lib/Drupal/Core/Entity/EntityStorageBase.php).

Steps to reproduce

Core: 10.1.2
entity_type_clone: 4.0.3
domain: 2.0.0-beta1

1. Clone Content Type
2. Freezing process with messages above.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇨🇭Switzerland handkerchief

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

Comments & Activities

  • Issue created by @handkerchief
  • 🇨🇭Switzerland handkerchief

    I tried it again with another machine name "tech_news", it's not working:
    Drupal\Core\Entity\EntityStorageException: 'field_config' entity with ID 'node.tech_news.field_domain_source' already exists. in Drupal\Core\Entity\EntityStorageBase->doPreSave() (Zeile 519 in /web/core/lib/Drupal/Core/Entity/EntityStorageBase.php).

    Warning: Undefined array key "third_party_settings" in Drupal\entity_type_clone\Controller\EntityTypeCloneController::copyFieldDisplay() (line 78 of /web/modules/contrib/entity_type_clone/src/Controller/EntityTypeCloneController.php) 
    
    #0 /web/core/includes/bootstrap.inc(164): _drupal_error_handler_real(2, 'Undefined array...', '/home/...', 78)
    #1 /web/modules/contrib/entity_type_clone/src/Controller/EntityTypeCloneController.php(78): _drupal_error_handler(2, 'Undefined array...', '/home/...', 78)
    #2 /web/modules/contrib/entity_type_clone/src/CloneEntityType.php(57): Drupal\entity_type_clone\Controller\EntityTypeCloneController::copyFieldDisplay('view', 'teaser', Array)
    #3 /web/core/includes/batch.inc(296): Drupal\entity_type_clone\CloneEntityType::cloneEntityTypeField(Array, Array)
    #4 /web/core/includes/batch.inc(138): _batch_process()
    #5 /web/core/includes/batch.inc(94): _batch_do()
    #6 /web/core/modules/system/src/Controller/BatchController.php(49): _batch_page(Object(Symfony\Component\HttpFoundation\Request))
    #7 [internal function]: Drupal\system\Controller\BatchController->batchPage(Object(Symfony\Component\HttpFoundation\Request))
    #8 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
    #9 /web/core/lib/Drupal/Core/Render/Renderer.php(583): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #10 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
    #11 /web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
    #12 /vendor/symfony/http-kernel/HttpKernel.php(182): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #13 /vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
    #14 /web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #15 /web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #16 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #17 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #18 /web/modules/contrib/shield/src/ShieldMiddleware.php(270): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #19 /web/modules/contrib/shield/src/ShieldMiddleware.php(137): Drupal\shield\ShieldMiddleware->bypass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #20 /web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\shield\ShieldMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #21 /web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #22 /web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #23 /web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #24 /web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
    #25 {main}
  • 🇨🇭Switzerland handkerchief

    Same with the module "domain" enabled:

    Drupal\Core\Entity\EntityStorageException: 'field_config' entity with ID 'node.example.field_domain_source' already exists. in Drupal\Core\Entity\EntityStorageBase->doPreSave() (line 519 of /web/core/lib/Drupal/Core/Entity/EntityStorageBase.php).

Production build 0.71.5 2024