JC_ProPlus If you didn't have any luck mate, i got it working with the following;

ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);

MikeJones no it doesn't. And there is no filter for that state either.

If another extension adds a non-activated badge or label to users, the badge will appear on that page as well because we re-use the user profile card.

If you're looking for recently registered but non-enabled users you can sort them by "newest" and check the edit modal for each one to see if they are enabled or not.

    clarkwinkelmann If you're looking for recently registered but non-enabled users you can sort them by "newest" and check the edit modal for each one to see if they are enabled or not.

    I just sorted my list by newest then clicked the 3 dots for the options and clicked edit. What am I looking for in the edit pop up to see if they are enabled or not?

      9 days later

      Artuu I have same problem. where exactly do i apply the ini_set('display_errors', 0);
      ini_set('display_startup_errors', 0); command. and does this resolve it?

        collins That's gonna work, too. Below the post to which you replied, I wrote that you only need this command in the file index.php.

        error_reporting(0);

          Artuu I have added this command to index.php in public folder and i get the same error. Am i missing something as per the exact index.php file to apply it?

          Edit: nvm. It works now. Thanks

          Can someone confirm whether this PHP Warning is a result of using User Directory extension or just Flarum ? If it's from this extension I'll check what can be done. Otherwise oh god did that discussion became fragmented 😬

            I'm curious whether we can reproduce this.

            16 days later

            Guys - I've got an error displaying www.example.com/users - any idea?

            latest version...

            Warning: explode() expects parameter 2 to be string, array given in /var/www/html/vendor/tobscure/json-api/src/Parameters.php on line 124

            Warning: Invalid argument supplied for foreach() in /var/www/html/vendor/tobscure/json-api/src/Parameters.php on line 126

            Fatal error: Uncaught Zend\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /var/www/html/vendor/zendframework/zend-httphandlerrunner/src/Exception/EmitterException.php:23 Stack trace: #0 /var/www/html/vendor/zendframework/zend-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(39): Zend\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /var/www/html/vendor/zendframework/zend-httphandlerrunner/src/Emitter/SapiEmitter.php(26): Zend\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /var/www/html/vendor/zendframework/zend-httphandlerrunner/src/RequestHandlerRunner.php(97): Zend\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Zend\Diactoros\Response\HtmlResponse)) #3 /var/www/html/vendor/flarum/core/src/Http/Server.php(46): Zend\HttpHandlerRunner\RequestHandlerRunner->run() #4 /var/www/html/public/index.php(22): Flarum\Http\Server->listen() #5 {main} thrown in /var/www/html/vendor/zendframework/zend-httphandlerrunner/src/Exception/EmitterException.php on line 23

              nodge it's the same issue as reported above. We should try to fix it but in the meantime the best is to hide PHP warnings in the page output.

              You should change these settings in php.ini as described in clarkwinkelmann

              Or if you can't edit php.ini you could add those lines to index.php as described in Artuu

              As said in clarkwinkelmann if someone can dig in the code and confirm whether the warning is caused by an actual mistake in this extension or by the json-api library it would be great 😃

                10 days later

                Installed the plugin, works well for me but every other person who has the permission to see the page can't access it because the page don't load in for them. Console:

                Uncaught TypeError: Cannot read property 'type' of undefined
                at t.e.pushObject (Store.js:59)
                at t.e.pushPayload (Store.js:39)
                at e.preloadedApiDocument (Application.js:189)
                at t.r.loadResults (UserDirectoryList.js:156)
                at t.r.refresh (UserDirectoryList.js:137)
                at t.r.init (UserDirectoryList.js:39)
                at t (Component.js:65)
                at new t (UserDirectoryList.js:16)
                at t.r.init (UserDirectoryPage.js:47)
                at t (Component.js:65)


                Any idea why? 😅

                  11 days later

                  Hey all! Does anyone know why the menu item-userDirectory only appears if you are actually accessing the /users page? Can we get it to be persistent?