RuntimeException: Failed to start the session because headers have already been sent by "/code/web/core/modules/big_pipe/src/Render/BigPipe.php" at line 244.

Created on 22 July 2024, 4 months ago
Updated 14 September 2024, 2 months ago

Problem/Motivation

Hi, Commerce_recurring cron got failed and throw the following RunTime Exception.
RuntimeException: Failed to start the session because headers have already been sent by "/code/web/core/modules/big_pipe/src/Render/BigPipe.php" at line 244. in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 132 of /code/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php).

Steps to reproduce

I have configured commerce_recurring and commerce_license cron time to 5 min. I have noticed the modules randomly causing the above error. I don't know exactly what's causing this.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Miscellaneous

Created by

🇵🇰Pakistan Qaiser iqbal

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

Comments & Activities

  • Issue created by @Qaiser iqbal
  • 🇵🇰Pakistan Qaiser iqbal

    The issue trigger when cron process "Renew recurring order" and "Close recurring order" jobtype from the queue. As per Trent Crawford , the payment is being closed on payment on RecurringOrderManager::close(). This causes the PaymentOrderUpdater to run in the kernel destructor (after headers have already been sent). so they have merged a request in #3323736 to the commerce. The changes in the merged request already exists in the commerce 3 dev. Still commerce_recurring throws the error and queue job got failed. Anyone else faces this?

  • 🇵🇰Pakistan Qaiser iqbal

    Here is the complete reply of Trent Crawford .

  • 🇵🇰Pakistan Qaiser iqbal

    The issue is very strange, sometime it works, other time it fails. these two orders with 251 id is process successfully. see the screenshot.

Production build 0.71.5 2024