Jump to content

My domain showing error

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


Share this post

Link to post
Share on other sites
16 hours ago, pasargad said:

nobody there for help me?


Share this post

Link to post
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.




Share this post

Link to post
Share on other sites

Join the conversation

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

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