pasargad Posted October 14, 2020 Share Posted October 14, 2020 Hi, all I did upgrade from 7.10.2 to 8.0.2 but, After it, page of my domains have problem. show error: Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /home/username/public_html/members/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24 Stack trace: #0 /home/username/public_html/members/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /home/username/public_html/members/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /home/username/public_html/members/clientarea.php(0): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(WHMCS\ClientArea)) #3 {main} Thank you 0 Quote Link to comment Share on other sites More sharing options...
pasargad Posted October 15, 2020 Author Share Posted October 15, 2020 nobody there for help me? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 16, 2020 Share Posted October 16, 2020 16 hours ago, pasargad said: nobody there for help me? 0 Quote Link to comment Share on other sites More sharing options...
pasargad Posted October 22, 2020 Author Share Posted October 22, 2020 On 10/16/2020 at 6:15 PM, brian! said: Dear brian! Thank you, I fix it by one of my friend. WHMCS using "laminas" that it did not update after PHP 7.2 and older and not working with PHP 7.3 or higher. I put solution for any body need fix this: Go to: WHMCS/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php in line of 39 , 40 and 41: if (ob_get_level() > 0 && ob_get_length() > 0) { throw EmitterException::forOutputSent(); } Change to: if (ob_get_level() > 0 && ob_get_length() > 0) { while(ob_get_level() > 0){ob_end_clean();} } Just do it! it's fixed and resolved. 2 Quote Link to comment Share on other sites More sharing options...
souzadavi Posted October 27, 2020 Share Posted October 27, 2020 Thanks to post the solution!!! This works here for me too!!! 1 Quote Link to comment Share on other sites More sharing options...
Marius B Posted November 13, 2020 Share Posted November 13, 2020 I also have this problem on version 8.04 i use alt php 7.3. With ea php 7.3 is working but with alt php don't. Tried your fix but don't work ! [12-Nov-2020 21:57:58 UTC] [WHMCS Application] ERROR: Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /home/user/public_html/manage/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24 Stack trace: #0 /home/user/public_html/manage/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /home/user/public_html/manage/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /home/user/public_html/manage/clientarea.php(0): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(WHMCS\ClientArea)) #3 {main} {"exception":"[object] (Laminas\\HttpHandlerRunner\\Exception\\EmitterException(code: 0): Output has been emitted previously; cannot emit response at /home/user/public_html/manage/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24)"} [] 0 Quote Link to comment Share on other sites More sharing options...
yggdrasil Posted November 17, 2020 Share Posted November 17, 2020 (edited) On 11/13/2020 at 6:07 PM, Marius B said: I also have this problem on version 8.04 i use alt php 7.3. With ea php 7.3 is working but with alt php don't. Tried your fix but don't work ! [12-Nov-2020 21:57:58 UTC] [WHMCS Application] ERROR: Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /home/user/public_html/manage/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24 Stack trace: #0 /home/user/public_html/manage/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /home/user/public_html/manage/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /home/user/public_html/manage/clientarea.php(0): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(WHMCS\ClientArea)) #3 {main} {"exception":"[object] (Laminas\\HttpHandlerRunner\\Exception\\EmitterException(code: 0): Output has been emitted previously; cannot emit response at /home/user/public_html/manage/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24)"} [] Are you sure both PHP versions have the same modules enabled? Sadly, when errors from encoded files, only WHMCS can help you as we have no way to look at the specific line and what is causing the error. You should open a support ticket if errors come from the vendor library files. Edited November 17, 2020 by yggdrasil 0 Quote Link to comment Share on other sites More sharing options...
Pradeep Sanjeewa Posted May 2, 2023 Share Posted May 2, 2023 On 10/22/2020 at 1:30 PM, pasargad said: Thanks a lot. Worked for me... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.