Jump to content

My domain showing error


pasargad

Recommended Posts

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

 

Link to comment
Share on other sites

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.

 

 

 

Link to comment
Share on other sites

  • 3 weeks later...

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)"} []

Link to comment
Share on other sites

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 by yggdrasil
Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated