The issue was that the request was timing out before the script completed, due to a long-running database query.
So that generic End of script output before headers
error can be caused by server timeouts as well as file permissions issues.
Ref:
https://stackoverflow.com/questions/62762559/end-of-script-output-before-headers-in-apache-php
Article ID: 107
Created On: Sun, Feb 27, 2022 at 8:51 PM
Last Updated On: Sun, Feb 27, 2022 at 8:51 PM
Authored by: Saeed Nobakht [[email protected]]
Online URL: https://www.navel.ir/article/end-of-script-output-before-headers-in-apache-php-107.html