Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension fails for logged in users #38

Open
kirkwor opened this issue Apr 12, 2024 · 1 comment
Open

Extension fails for logged in users #38

kirkwor opened this issue Apr 12, 2024 · 1 comment

Comments

@kirkwor
Copy link

kirkwor commented Apr 12, 2024

Hi,

When you enable the extension in the latest 1.8.5 it fails to work with logged in users, guest users seem to not be affected, they can still browse the free pages.

Warning: Undefined array key "data" in /path/to/forum.com/vendor/flarum/core/src/Frontend/Content/CorePayload.php on line 57

Fatal error: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /path/to/forum.com/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:20 Stack trace: #0 /path/to/forum.com/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(42): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /path/to/forum.com/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(21): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /path/to/forum.com/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(75): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit() #3 /path/to/forum.com/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #4 /path/to/forum.com/public/index.php(26): Flarum\Http\Server->listen() #5 {main} thrown in /path/to/forum.com/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php on line 20

Let me know if I can provide any other info, cheers!

@luceos
Copy link
Member

luceos commented Apr 13, 2024

Your php configuration should not throw these warnings. Make sure to configure error reporting for production environments in php.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants