The problem: When I log in to the forum as admin, everything is normal, I can see the content of the post and post a reply. But when I log out the administrator account, all the posts on the website cannot be viewed. After logging in as a non-administrator, an error will be displayed
Flarum: 1.0.4
PHP: 7.4.20
MySQL: 8.0.18
My forum is upgraded from beta16
My database is upgraded from MySQL 5.6

Warning: Invalid argument supplied for foreach() in /www/wwwroot/myweb.com/vendor/flarum/core/src/Forum/Content/Discussion.php on line 90
Fatal error: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /www/wwwroot/myweb.com/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24 Stack trace: #0 /www/wwwroot/myweb.com/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /www/wwwroot/myweb.com/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /www/wwwroot/myweb.com/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(98): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit() #3 /www/wwwroot/myweb.com/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #4 /www/wwwroot/myweb.com/public/index.php(26): Flarum\Http\Server->listen() #5 {main} thrown in /www/wwwroot/myweb.com/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php on line 24
and
Warning: Invalid argument supplied for foreach() in /www/wwwroot/myweb.com/storage/views/903126650910ebd7a932ca0551b541ebb5a660f2.php on line 7