clarkwinkelmann
More than clear. Thank you very much. It works fine now
FriendsOfFlarum User Directory
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);
Does this plugin show if a user has activated their account?
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?
MikeJones there is an "Activate user" button under the email for non-activated users. If enabled, there is no button under the email.
clarkwinkelmann 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.
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
THX!
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?
szabovalentin it might be related to flagrow/user-directory25 maybe ?
clarkwinkelmann Holy cow, worked! I think I might drink more coffee Thanks!
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?
[deleted]
theportablegeek yes, I noticed this also. Very strange