Directories not visible to non-logged in users
-
Since updating to 2.11.1 our directories only work with logged in members. At first I thought this was because the privacy options were all set to “Members Only”. So I changed it to “Anyone” and now the directories correctly state how many users were found, but do not display any information.
We’ve cleared cache and attempted to reinstall the plugin. Restoring to the previous version does fix the issue. However, with the security issues in that version, it would be preferable to stay at with the current/newer version.
-
This topic was modified 2 months, 2 weeks ago by
Michael Kracke. Reason: adding more info
-
This topic was modified 2 months, 2 weeks ago by
Michael Kracke.
The page I need help with: [log in to see the link]
-
This topic was modified 2 months, 2 weeks ago by
-
I reverted the plugin back to 2.11.0 temporarily to return functionality. Is this plugin still being supported?
Hello @krack3,
A directory may work wrong after upgrading to the version 2.11.1 if you use custom member directory templates and forget to update them.
Make sure that your member directory templates are not overridden in the theme. Follow instructions in this article to verify templates on your website: Advanced Tab: Override Templates
If you use custom member directory templates, then you should implement required changes in these files: members-grid.php, members-list.php, members.php
Regards
Hi @yuriinalivaiko ,
We do not use any custom directory templates. The Override Templates tab doesn’t appear in the Advanced tab. I have checked the 3 files you listed on our server, and they do appear to match what is in Github.
Just to test, I did create these 3 files as override template. The tab is now showing and each of the 3 files is showing up to date with version 2.11.1. This was done in our dev environment which was recently copied down.Hello @krack3,
You didn’t have to create new template files. Please remove the new custom templates you added.
Could you take and share screenshots with your member directory settings? I’ll try to reproduce this problem on my website.
Regards
@yuriinalivaiko Here are 2 directories. The first one allows users to search anyone in that user role. The second one displays all users with a tag.
Neither of the directories are showing for non-logged in users. So the public doesn’t see them
Hello @krack3,
Images you attached are blurred. Please use a reputable image-sharing service for screenshots.
Try to create a new member directory with default settings and test it. Does it work?
Investigate the AJAX request that gets members for the directory. Are there errors or warnings in the Response data? Take a screenshot like this example: https://ibb.co/rGjj45mv
Regards
@yuriinalivaiko
My apologize, I didn’t realize it got compressed so much.
Here is a better link: https://ibb.co/hx4cWGdW@yuriinalivaiko I did create a new directory with the same settings, and it is not showing any results, however the new directories are not displaying any results regardless of the privacy options
Hi @krack3
Did you investigate the AJAX request that gets members for the directory? Are there errors or warnings in the Response data?
I verified settings shown on the screenshot you attached.
– You’ve limited members displayed in the directory by a role. Try to disable the “User Roles to Display” setting.
– You’ve configured the directory to display members only after searching. Try to disable the “Show results only after search/filtration” setting.Does a directory display members when these settings are disabled?
Regards
@yuriinalivaiko
– I have removed the option for only displaying the “Staff Directory” role. So all roles are un-checked. This did not change anything.-While I did remove the search functionality from this directory, all the other directories were built without the search. As well as the new directory, which doesn’t display user data for even logged in users but still has the correct count.
There doesn’t appear to be any errors showing in the PHP logs or in the browser console.
Is there somewhere in the database or via code that I can temporarily force the privacy to anyone? That is our preferred privacy setting anyway. It would also help identify whether or not the dropdown setting is getting block/overwritten.It seems we’ve already tried everything that affects profile visibility in the directory. Just in case, here’s the standard guide for checking the directory if you’re having problems displaying profiles:
Ultimate Member has various settings to manage member’s permissions and profile access: individual member’s settings, user role settings, member directory settings, content restriction settings.
Try to restore default values for settings that influence member’s visibility in the member directory:
1. Go to wp-admin > Users > All Users and verify that users status is “Approved”.
2. Go to wp-admin > Ultimate Member > User Roles > Edit Role and check settings:
- Can view other member profiles? – turned on.
- Can view these user roles only – empty.
- Can make their profile private? – turned on.
Note that every role has its own settings. Verify settings for the roles assigned to users.
3. Go to wp-admin > Ultimate Member > Settings > General > Account and check settings:
- Allow users to hide their profiles from directory – turned off.
4. Go to wp-admin > Ultimate Member > Member Directories > Edit Member Directory and check settings:
- User Roles to Display – empty (all roles are turned off).
- Only show members who have uploaded a profile photo – turned off.
- Only show members who have uploaded a cover photo – turned off.
- Only show specific users – empty.
- Exclude specific users – empty.
- Only show members who have completed their profile (optional) – turned off.
- Only show members who have verified their profile (optional) – turned off.
- Admin filtering – empty.
- Show results only after search/filtration (optional) – turned off.
- Who can see this member directory – “Anyone”.
- Enable user location search field (optional) – turned off.
Related articles: How to use User Roles, General Tab: Account, Member Directories 2.1.0+.
@yuriinalivaiko I have made all the suggested changes and still no luck. I also when back through to disable plugins/themes, the issue is still happening.
Would Multi-site have anything to do with this issue? All of our sites are multi-site installs, so I wasn’t sure if that could be part of the issue. We have 16 sites split between 4 multi-site installs, all of our sites have this same issue. We only have 1 site that uses the directories, and so i tried to setup new directories on the others sites. All appear to have the same issue where the directory only shows profiles for logged in users.Hello @krack3
Please indicate that your question is related to multi-site installation when opening a thread. This will save both you and us time.
How do you manage new users? Do you use individual registration (default) or common registration with the Ultimate Member – Multisite plugin?
On a multi-site installation, you should first check whether users have been added to a specific subsite. It’s possible that the subsite simply doesn’t have any users. Go to wp-admin > My Sites > Network Admin > Users and verify information in the “Sites” column. Make sure that users are added to the subsite where the member directory is displayed. See example here: https://ibb.co/fzZ2J4TC
Regards
@yuriinalivaiko My apologizes, I thought I had mentioned that but realized I had not after reviewing this thread history.
We utilize a login plugin for SSO, but it ties into Ultimate Member. So, each member is listed as a user on the correct site. All users are “Approved” and assigned an UM role. We only use directories on the primary site. I have also tried with the “Disable User Cache” checked and unchecked as well as the custom usermeta table.Hi @krack3
I have tested member directories on my multi-site installation. Initially, the directory wasn’t displayed on the page. But after I updated the directory settings (without changing anything), the directory began to display.
Try to update settings of the member directory used on your primary subsite. Go to wp-admin > My Sites > main (your primary subsite name) > Dashboard > Ultimate Member >Member Directories > Edit. Verify that the “Who can see this member directory” setting is “Anyone”. Verify other settings. Click the “Update” button.
Regards
You must be logged in to reply to this topic.