Drupal 10.1.6 CKEditor5 error

Created on 18 April 2024, 8 months ago

Problem/Motivation

When applying a function to content in CKEditor5, it fails with

Error: Call to undefined method Symfony\Component\HttpFoundation\StreamedResponse::getCallback() in Symfony\Component\HttpKernel\HttpKernel->handle() (line 95 of /code/vendor/symfony/http-kernel/HttpKernel.php)

Steps to reproduce

Install and configure module

Highlight text in ckeditor

Dropdown OpenAI menu and select function like Summarize

🐛 Bug report
Status

Active

Version

1.0

Component

OpenAI CKEditor

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

Comments & Activities

  • Issue created by @jcrump@tulane.edu
  • I've since upgraded to Drupal core 10.2.6 and now get this error when trying to apply any Open AI function to text:

    Location https://communications.tulane.edu/api/openai-ckeditor/completion
    Referrer https://communications.tulane.edu/node/1281/edit?destination=/admin/content
    Message Error: Call to undefined method Symfony\Component\HttpFoundation\StreamedResponse::getCallback() in Symfony\Component\HttpKernel\HttpKernel->handle() (line 95 of /code/vendor/symfony/http-kernel/HttpKernel.php)
    #0 /code/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #1 /code/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #2 /code/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #3 /code/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #4 /code/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #5 /code/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #6 /code/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #7 /code/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #8 /code/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #9 /code/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #10 /code/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
    #11 /code/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
    #12 {main}
    .
    Severity Error

Production build 0.71.5 2024