It worked for a second and then
Deprecated: str_getcsv(): Passing null to parameter #1 ($string) of type string is deprecated in /public/community/vendor/flarum/core/src/Search/GambitManager.php on line 67
Fatal error: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Unable to emit response; headers already sent in public/community/vendor/flarum/core/src/Search/GambitManager.php:67 in /public/community/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:15 Stack trace: #0 /public/community/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(38): Laminas\HttpHandlerRunner\Exception\EmitterException::forHeadersSent('/srv/users/serv...', 67) #1 /public/community/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(21): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /public/community/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(75): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Laminas\Diactoros\Response\HtmlResponse)) #3 /public/community/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #4 /public/community/index.php(26): Flarum\Http\Server->listen() #5 {main} thrown in /public/community/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php on line 15
This is the first and only extension i installed, besides what comes with Flarum.
EDIT: Solved by modifying core files.
vendor/flarum/core/src/Search/GambitManager.php
Find line 67:
return str_getcsv($query, ' ');
Replace with:
$query = $query ?? '';
return str_getcsv($query, ' ');
Flarum 1.8.5
PHP 8.2.21
MySQL 5.7.42
From my understanding this core file isn't ready for PHP 8.2 🤔 or am I wrong? Can I PR?