When I activate this extension, there may be some issues, such as changing the article title or publishing an article, which will prompt 'oops' in the lower left corner. Here are the error codes in debug mode
<br />
<b>Warning</b>: Undefined property: Flarum\Discussion\Event\Saving::$user in <b>C:\phpstudy_pro\WWW\flarum\vendor\ziiven\flarum-pay-to-see\src\Listeners\AddPayToSeeDiscussion.php</b> on line <b>53</b><br />
<br />
<b>Fatal error</b>: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in C:\phpstudy_pro\WWW\flarum\vendor\laminas\laminas-httphandlerrunner\src\Exception\EmitterException.php:20
Stack trace:
#0 C:\phpstudy_pro\WWW\flarum\vendor\laminas\laminas-httphandlerrunner\src\Emitter\SapiEmitterTrait.php(42): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent()
#1 C:\phpstudy_pro\WWW\flarum\vendor\laminas\laminas-httphandlerrunner\src\Emitter\SapiEmitter.php(21): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput()
#2 C:\phpstudy_pro\WWW\flarum\vendor\laminas\laminas-httphandlerrunner\src\RequestHandlerRunner.php(75): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit()
#3 C:\phpstudy_pro\WWW\flarum\vendor\flarum\core\src\Http\Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#4 C:\phpstudy_pro\WWW\flarum\public\index.php(26): Flarum\Http\Server->listen()
#5 {main}
thrown in <b>C:\phpstudy_pro\WWW\flarum\vendor\laminas\laminas-httphandlerrunner\src\Exception\EmitterException.php</b> on line <b>20</b><br >