sirportly / whmcs

MIT License
6 stars 12 forks source link

Error on clientarea.php after upgrade to WHMCS v8 #14

Closed markbakeruk closed 3 years ago

markbakeruk commented 3 years ago

The /includes/hooks/sirportlyHooks.php file is causing an error when logging into clientarea.php as a customer on WHMCS v8:

Laminas\HttpHandlerRunner\Exception\EmitterException: Unable to emit response; headers already sent in /home/whmcsdev/public_html/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:19
Stack trace:

0 /home/whmcsdev/public_html/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(36): Laminas\HttpHandlerRunner\Exception\EmitterException::forHeadersSent()
1 /home/whmcsdev/public_html/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput()
2 /home/whmcsdev/public_html/clientarea.php(0): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(WHMCS\ClientArea))

Removing the hooks file clears the error, and WHMCS advise the module/plugin will need updating to work with v8.

markbakeruk commented 3 years ago

Closing issue as this has been resolved in the latest WHMCS release.