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.

Comments

handkerchief created an issue. See original summary.

handkerchief’s picture

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}
handkerchief’s picture

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).

dimas11’s picture

vuil’s picture

Version: 4.0.3 » 4.0.x-dev
Status: Active » Needs review
vuil’s picture

StatusFileSize
new767 bytes
vuil’s picture

Status: Needs review » Reviewed & tested by the community

  • vuil committed 18ee4ac4 on 4.0.x
    Issue #3389075 by handkerchief, dimas11, vuil: Freezing process with...
vuil’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.