Uncaught Laminas
Hi! I get two similar errors. In the first case, an error occurs during registration, but a message is sent to the mail and the account data appears in the admin panel. In the second case, I put a reaction to the message, an error notification appears, I refresh the page, the reaction appears without an error
Flarum information
POST https://forumspace.ru/api/posts/3
<br />
<b>Deprecated</b>: Creation of dynamic property Flarum\Likes\Event\PostWasUnliked::$actor is deprecated in <b>/var/www/u2748865/data/www/forumspace.ru/vendor/flarum/core/src/Foundation/DispatchEventsTrait.php</b> on line <b>31</b><br />
<br />
<b>Fatal error</b>: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Unable to emit response; headers already sent in /var/www/u2748865/data/www/forumspace.ru/vendor/flarum/core/src/Foundation/DispatchEventsTrait.php:31 in /var/www/u2748865/data/www/forumspace.ru/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:15
Stack trace:
#0 /var/www/u2748865/data/www/forumspace.ru/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(38): Laminas\HttpHandlerRunner\Exception\EmitterException::forHeadersSent('/var/www/u27488...', 31)
#1 /var/www/u2748865/data/www/forumspace.ru/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(21): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput()
#2 /var/www/u2748865/data/www/forumspace.ru/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(75): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Flarum\Api\JsonApiResponse))
#3 /var/www/u2748865/data/www/forumspace.ru/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#4 /var/www/u2748865/data/www/forumspace.ru/index.php(26): Flarum\Http\Server->listen()
#5 {main}
thrown in <b>/var/www/u2748865/data/www/forumspace.ru/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php</b> on line <b>15</b><br /`
POST https://forumspace.ru/register
<br />
<b>Deprecated</b>: Callables of the form ["Swift_SmtpTransport", "Swift_Transport_EsmtpTransport::__construct"] are deprecated in <b>/var/www/u2748865/data/www/forumspace.ru/vendor/swiftmailer/swiftmailer/lib/classes/Swift/SmtpTransport.php</b> on line <b>36</b><br />
<br />
<b>Deprecated</b>: Callables of the form ["Swift_Message", "Swift_Mime_SimpleMessage::__construct"] are deprecated in <b>/var/www/u2748865/data/www/forumspace.ru/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Message.php</b> on line <b>46</b><br />
<br />
<b>Fatal error</b>: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Unable to emit response; headers already sent in /var/www/u2748865/data/www/forumspace.ru/vendor/swiftmailer/swiftmailer/lib/classes/Swift/SmtpTransport.php:36 in /var/www/u2748865/data/www/forumspace.ru/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:15
Stack trace:
#0 /var/www/u2748865/data/www/forumspace.ru/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(38): Laminas\HttpHandlerRunner\Exception\EmitterException::forHeadersSent('/var/www/u27488...', 36)
#1 /var/www/u2748865/data/www/forumspace.ru/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(21): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput()
#2 /var/www/u2748865/data/www/forumspace.ru/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(75): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Flarum\Api\JsonApiResponse))
#3 /var/www/u2748865/data/www/forumspace.ru/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#4 /var/www/u2748865/data/www/forumspace.ru/index.php(26): Flarum\Http\Server->listen()
#5 {main}
thrown in <b>/var/www/u2748865/data/www/forumspace.ru/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php</b> on line <b>15</b><br />