- Issue created by @spfaffly
When creating a translated version of a page sometimes it errors out with the following message:
Error: Call to a member function uuid() on null in {closure}() (line 430 of modules/contrib/layout_paragraphs/layout_paragraphs.module).
array_map(Object, Array) (Line: 429)
layout_paragraphs_entity_translation_create(Object)
call_user_func_array(Object, Array) (Line: 416)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object, 'layout_paragraphs') (Line: 395)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_translation_create', Object) (Line: 415)
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_translation_create', Array) (Line: 217)
Drupal\Core\Entity\EntityStorageBase->invokeHook('translation_create', Object) (Line: 900)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('translation_create', Object) (Line: 363)
Drupal\Core\Entity\ContentEntityStorageBase->createTranslation(Object, 'en-nz', Array) (Line: 995)
Drupal\Core\Entity\ContentEntityBase->addTranslation('en-nz', Array) (Line: 108)
Drupal\content_translation\Controller\ContentTranslationController->prepareTranslation(Object, Object, Object) (Line: 414)
Drupal\content_translation\Controller\ContentTranslationController->add(Object, Object, Object, 'taxonomy_term')
I'm assuming that these entities no longer exists and it's trying to load them up anyways.
If the paragraph loads up NULL then remove it from the list of paragraphs in the `layout_paragraphs_entity_translation_create` function.
Active
2.0
Code