Ajax Error When Attempting to Export Section Library Entity

Created on 21 April 2022, about 3 years ago
Updated 3 July 2024, 10 months ago

Problem/Motivation

hi!

I'm trying to use this module with https://www.drupal.org/project/section_library β†’
I have section library entities created and there is a checkbox for them here: /admin/config/development/entity-export

When i hit start export i get the error:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=1351&op=do_nojs&op=do
StatusText: 500 Service unavailable (with message)
ResponseText: The website encountered an unexpected error. Please try again later.Drupal\eme\ExportException: Unexpected error while processing 'discoverContentReferences'. in Drupal\eme\Export\ExportPluginBase->executeExportTask() (line 536 of modules/contrib/eme/src/Export/ExportPluginBase.php). array_reduce() (Line: 632)
Drupal\eme\Export\ExportPluginBase::getEmeIds() (Line: 599)
Drupal\eme\Export\ExportPluginBase->getRelatedContentEntities() (Line: 263)
Drupal\eme\Export\ExportPluginBase->discoverContentReferences() (Line: 523)
Drupal\eme\Export\ExportPluginBase->executeExportTask() (Line: 295)
_batch_process() (Line: 137)
_batch_do() (Line: 93)
_batch_page() (Line: 55)
Drupal\system\Controller\BatchController->batchPage()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 708)
Drupal\Core\DrupalKernel->handle() (Line: 19)
wondering if there is something that section_library needs to do to make the entities exportable? or if it's just an edge case....

either way i'm happy to help test and try for a solution if you could point me in the right direction?

Steps to reproduce

Install https://www.drupal.org/project/section_library β†’
create a section template from layout builder
install eme, migrate, migrate tools, migrate plus
navigate to /admin/config/development/entity-export
check the Section library template entities (section_library) checkbox on the right.
click start export...

error occurs

Proposed resolution

1. try to make eme work with section library
or
2. try to expose necessary data to section library entities for eme to work with.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bradallenfisher

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024