Error when exporting single entity

Created on 1 September 2024, 4 months ago

Problem/Motivation

When exporting a single entity I get a 500 Server Error when downloading the exported .tar.gz file.

The log shows
Symfony\Component\HttpKernel\Exception\ControllerDoesNotReturnResponseException: The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned null. Did you forget to add a return statement somewhere in your controller? in () (line 98 of /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php).

Steps to reproduce

  • Go to 'Content' tab
  • Select an entity via checkbox
  • Select Action 'Export entity'
  • Click 'Apply to selected items'
  • On 'Export confirm' page, click button 'Export entity'
  • Review logs (If Database Logging is enabled go to 'Reports' tab, click 'Recent log messages', click on PHP error related to the export)

    Things I Tried

  • Checked that directory for private files is working (by creating content type with "File" field)
  • Checked web server logs, they show the same error as the Report - Recent log messages

    Other Details

    System

  • Drupal 10
  • running in WSL2/Docker (wsl2-docker-ce) created with ddev
  • PHP8.3, nginx, content_syncronizer 4.0.1

    Location

    https://my-drupal-site.ddev.site/admin/content_synchronizer/download_arc...

    Referrer

    https://my-drupal-site.ddev.site/admin/content

    Backtrace

    #0 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(181): ()
    #1 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
    #2 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
    #3 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
    #4 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
    #5 /var/www/html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
    #6 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
    #7 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
    #8 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
    #9 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
    #10 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
    #11 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
    #12 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
    #13 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
    #14 {main}
  • 💬 Support request
    Status

    Active

    Version

    4.0

    Component

    Code

    Created by

    🇮🇪Ireland goetz

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

    Comments & Activities

    Production build 0.71.5 2024