FriendsOfFlarum / user-directory

The permission based public user directory extension for your Flarum forum.
https://discuss.flarum.org/d/5682
MIT License
22 stars 20 forks source link

When I click refresh on the Member Directory page, I will get the following error #109

Closed acolasialiuliu closed 11 months ago

acolasialiuliu commented 11 months ago

When I click refresh on the Member Directory page, I will get the following error 图片 Deprecated: str_getcsv(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/bbs/vendor/flarum/core/src/Search/GambitManager.php on line 67

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

Here is my system environment 图片

clarkwinkelmann commented 11 months ago

The code that calls str_getcsv is in Flarum itself, not this extension.

In any case this is not an issue. You should hide deprecation warnings on your server and everything will work as expected. See error_reporting and display_errors config in your php.ini or PHP management panel.