MikeJones there is an "Activate user" button under the email for non-activated users. If enabled, there is no button under the email.
FriendsOfFlarum User Directory
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
[deleted] glad it's not just me! FoF team - any thoughts? A better conversation for GitHub?
theportablegeek best reported to GitHub, thanks for doing so ️
This is/was by design, and there was an issue to add an option to show the link from the homepage FriendsOfFlarum/user-directory3
I actually implemented the feature last week, so that's why the issue is closed. I still need to finish the release under the FriendsOfFlarum namespace and you will be able to use the feature
[deleted]
clarkwinkelmann Great. Thanks
clarkwinkelmann next level support