Forums do not show for regular members, but do show for admins and logged out users
Forums load fine for Admin and moderator roles, and also show for logged out users.
However they do not show for logged in members.
Please let me know how I can fix this issue.
I've configured multiple categories, each with a forums underneath them.
I've setup usergroups for various different user levels who will access the forum, and have other WordPress roles assigned to the default user group.
I've sync'd the user DB, (and tried refreshing caches and resyncing a few times)
I've also confirmed that the usergroup has standard access to at least one forum
If I try navigate directly to a forum as a member I get the message 'Your user level does not have appropriate permission to view the content'
But as far as I can tell they should have access to the forums
Here is the standard access settings
Doing more research, it appears as though some users are not sync'd correctly to usergroups.
Despite trying to clear cache and resync them, this does not resolve the issue.
A way to diagnose the issue is to go to the Members list in WP Foro, sort by group, and some of the users will have 'default' set as their group in the member list, even though they should be assigned to a group.
If I manually unset the WordPress role, then reset the WordPress role the users seem to now have correct access to the forums, and their usergroup is correct in the members list.
I suspect this is a bug in the sync code. On install it started syncing right away, before I'd set the roles up. I setup roles when only a few hundred had been sync'd (roughly the amount who have the 'default' usergroup set).
Please let me know if you have any other way to fix this, as it's not really practical to manually edit hundreds of users.
Three recommendations for the team:
1. Don't automatically start syncing the users on plugin activation. Make this a step an admin can do AFTER setting up user groups
2. Provide a way to force a resync of a user in their profile (I thought this is what the resync users did, but it appears not)
3. Make resync all users work as expected.
@martin as fyi. I really think syncing should be an explicit action before it starts, rather than happen automatically on plugin activate.
I resolved the issue by manually changing user roles (for almost a thousand users 😢), but think a small tweak on when syncing starts could avoid others the same pain for someone else.
I also suspect that something is not working right re: roles and user groups on re-sync's, as I would have expected this to fix it.
If you could pass along to the team I'd appreciate it 🙏