hmcody
Forum Replies Created
-
Forum: Requests and Feedback
In reply to: Increase size of Editor Progress IndicatorI tried to insert a link to the image, but it wouldn’t take it so here is the link itself: https://drive.google.com/file/d/1MjpDEf7EO_rpQkyR5dLZd_Ej4d0Ot3TD/view?usp=sharing
It is the very, very thin line in the middle of the big white rectangle. And it only happens with Theme files, not regular pages.
I tried catching it with Inspect, but couldn’t grab the control. It might be something with my browser, but I kind of doubt it.
I figured it out!
I cleared out the debug.log on both local and production, then opened the Members page on both to create a new debug.log. I was then able to compare the two and found that production had a query parameter as follows:
[1] => Array ( [key] => um_member_directory_data [value] => s:15:"hide_in_members";b:0; [compare] => LIKE )
It turned out that Settings->General->Account->Hide Profiles From Directory by Default was checked on production but not on local. Unchecking it on production allowed everyone who should appear to do so.
Thanks for all of your help, @missveronicatv ! I couldn’t have sorted this out without your code snippets.
Taking them out just makes those fields unavailable to members-grid.php. It doesn’t change whether um_member can see the directory.
I’m not sure what you mean by “directory profile card.” Do you mean the page I get when I go to Ultimate Member->Member Directories and Edit the Members directory? I have First Name and Last name selected under Choose field(s) to display in extra user information section. Is that where I should take them out?
### Begin Install Info ### ## Please include this information when posting support requests ## --- Site Info --- Site URL: https://milltownquilters.com Home URL: https://milltownquilters.com Multisite: No --- Hosting Provider --- Host: DBH: localhost, SRV: milltownquilters.com --- User Browser --- Platform: Windows Browser Name: Chrome Browser Version: 117.0.0.0 User Agent String: Mozilla/5.0 (Windows NT 10.0; Wi n64; x64) AppleWebKit/537.36 (KH TML, like Gecko) Chrome/117.0.0. 0 Safari/537.36 ---- Current User Details -- Role: administrator, um_member --- WordPress Configurations --- Version: 6.3.1 Language: en_US Permalink Structure: /%year%/%monthnum%/%day%/%postname%/ Active Theme: Milltown Quilters 0.0.1 Page On Front: Welcome!! (#39) Page For Posts: Posts (#3965) ABSPATH: /home/milltown/public_html/ All Posts/Pages: 12 WP Remote Post: wp_remote_post() works WP_DEBUG: Enabled WP Table Prefix: Length: 3, Status: Acceptable Memory Limit: 40MB --- UM Configurations --- Version: 2.6.11 Upgraded From: 2.6.0 Current URL Method: Cache User Profile: Yes Generate Slugs on Directories: Yes Force UTF-8 Encoding: No JS/CSS Compression: No Port Forwarding in URL: No Exclude CSS/JS on Home: No --- UM Pages Configuration --- User: https://milltownquilters.com/user/ Account: https://milltownquilters.com/account/ Members: https://milltownquilters.com/members/ Register: https://milltownquilters.com/register-2/ Login: https://milltownquilters.com/login/ Logout: https://milltownquilters.com/logout/ Password Reset: https://milltownquilters.com/password-reset-2/ --- UM Users Configuration --- Default New User Role: 0 Profile Permalink Base: user_login User Display Name: sur_name Redirect author to profile: No Enable Members Directory: Yes Use Gravatars: No Require a strong password: Off --- UM Access Configuration --- Panic Key: Global Site Access: Site accessible to Everyone Backend Login Screen for Guests: No Redirect to alternative login page: Backend Register Screen for Guests: No Redirect to alternative register page: Access Control widget for Admins only: No Enable the Reset Password Limit: Yes Reset Password Limit: 3Disable Reset Password Limit for Admins: No Blacklist Words: 5 --- UM Email Configurations --- Mail appears from: Milltown Quilters Mail appears from address: [email protected] Use HTML for E-mails: Yes Account Welcome Email: Yes Account Activation Email: No Pending Review Email: No Account Approved Email: No Account Rejected Email: No Account Deactivated Email: No Account Deleted Email: No Password Reset Email: Yes Password Changed Email: Yes Account Updated Email: Yes New User Notification: Yes Account Needs Review Notification: No Account Deletion Notification: No --- UM Total Users --- All Users(83) administrator(2) um_member(83) um_newsletter(1) um_secretary(1) um_quiltshow(1) um_membership(2) none(0) --- UM Roles --- Administrator (administrator) Editor (editor) Author (author) Contributor (contributor) Subscriber (subscriber) Member (um_member) Newsletter (um_newsletter) Secretary (um_secretary) QuiltShow (um_quiltshow) Former (um_former) Membership (um_membership) --- UM Custom Templates --- N/A --- UM Custom Email Templates --- File: /home/milltown/public_html/wp-content/themes/milltownquilters/ultimate-member/email/suspicious-activity.php --- Web Server Configurations --- PHP Version: 7.4.33 MySQL Version: 5.5.5 Web Server Info: LiteSpeed --- PHP Configurations --- PHP Memory Limit: 512M PHP Upload Max Size: 256M PHP Post Max Size: 256M PHP Upload Max Filesize: 256M PHP Time Limit: 1200 PHP Max Input Vars: 4000 PHP Arg Separator: & PHP Allow URL File Open: Yes --- Web Server Extensions/Modules --- DISPLAY ERRORS: N/A FSOCKOPEN: Your server supports fsockopen. cURL: Your server supports cURL. SOAP Client: Your server has the SOAP Client enabled. SUHOSIN: Your server does not have SUHOSIN installed. GD Library: PHP GD library is installed on your web server. Mail: PHP mail function exist on your web server. Exif: PHP Exif library is installed on your web server. --- Session Configurations --- Session: Disabled Session Name: PHPSESSID Cookie Path: / Save Path: /opt/alt/php74/var/lib/php/session Use Cookies: On Use Only Cookies: On --- WordPress Active Plugins --- Admin Columns Pro: 6.3.3 Events Manager: 6.4.5.1 Formidable Export View to CSV: 1.08 Formidable Forms: 6.5 Formidable Forms Pro: 6.5 Formidable Google Sheets: 1.0.1 Formidable PDFs: 2.0.1 Formidable Visual Views: 5.4.1 Getwid: 2.0.0 Integrate Google Drive (PRO): 1.2.7 LiteSpeed Cache: 5.6 Pods - Custom Content Types and Fields: 3.0.1 Slimstat Analytics: 5.0.10.2 Ultimate Member: 2.6.11 Ultimate Member - Admin Email Profile Update: 3.3.0 WP Mail SMTP: 3.9.0 ### End Install Info ###
This is what is before [request] = >
2023-09-22 07:55:38 um_user_after_query: Current user ID XXXX Current user login XXXX Query arguments Array ( [fields] => ids [number] => 12 [meta_query] => Array ( [relation] => AND [0] => Array ( [key] => um_member_directory_data [value] => s:14:"account_status";s:8:"approved"; [compare] => LIKE ) [1] => Array ( [key] => um_member_directory_data [value] => s:15:"hide_in_members";b:0; [compare] => LIKE ) [2] => Array ( [last_name_c] => Array ( [key] => last_name [compare] => EXISTS ) [first_name_c] => Array ( [key] => first_name [compare] => EXISTS ) ) [3] => Array ( [relation] => OR [0] => Array ( [key] => online_directory [value] => Yes [compare] => = ) [1] => Array ( [key] => online_directory [value] => s:3:"Yes"; [compare] => LIKE ) [2] => Array ( [key] => online_directory [value] => "Yes" [compare] => LIKE ) ) ) [role__in] => Array ( [5] => um_member ) [paged] => 1 [orderby] => Array ( [last_name_c] => ASC [first_name_c] => ASC ) ) User Query arguments WP_User_Query Object ( [query_vars] => Array ( [blog_id] => 1 [role] => [role__in] => Array ( [5] => um_member ) [role__not_in] => Array ( ) [capability] => [capability__in] => Array ( ) [capability__not_in] => Array ( ) [meta_key] => [meta_value] => [meta_compare] => [include] => Array ( ) [exclude] => Array ( ) [search] => [search_columns] => Array ( ) [orderby] => Array ( [last_name_c] => ASC [first_name_c] => ASC ) [order] => ASC [offset] => [number] => 12 [paged] => 1 [count_total] => 1 [fields] => ids [who] => [has_published_posts] => [nicename] => [nicename__in] => Array ( ) [nicename__not_in] => Array ( ) [login] => [login__in] => Array ( ) [login__not_in] => Array ( ) [cache_results] => 1 [meta_query] => Array ( [relation] => AND [0] => Array ( [key] => um_member_directory_data [value] => s:14:"account_status";s:8:"approved"; [compare] => LIKE ) [1] => Array ( [key] => um_member_directory_data [value] => s:15:"hide_in_members";b:0; [compare] => LIKE ) [2] => Array ( [last_name_c] => Array ( [key] => last_name [compare] => EXISTS ) [first_name_c] => Array ( [key] => first_name [compare] => EXISTS ) ) [3] => Array ( [relation] => OR [0] => Array ( [key] => online_directory [value] => Yes [compare] => = ) [1] => Array ( [key] => online_directory [value] => s:3:"Yes"; [compare] => LIKE ) [2] => Array ( [key] => online_directory [value] => "Yes" [compare] => LIKE ) ) ) ) [results:WP_User_Query:private] => Array ( ) [total_users:WP_User_Query:private] => 0 [meta_query] => WP_Meta_Query Object ( [queries] => Array ( [relation] => AND [0] => Array ( [0] => Array ( [0] => Array ( [key] => um_member_directory_data [value] => s:14:"account_status";s:8:"approved"; [compare] => LIKE ) [1] => Array ( [key] => um_member_directory_data [value] => s:15:"hide_in_members";b:0; [compare] => LIKE ) [2] => Array ( [last_name_c] => Array ( [key] => last_name [compare] => EXISTS ) [first_name_c] => Array ( [key] => first_name [compare] => EXISTS ) [relation] => AND ) [3] => Array ( [0] => Array ( [key] => online_directory [value] => Yes [compare] => = ) [1] => Array ( [key] => online_directory [value] => s:3:"Yes"; [compare] => LIKE ) [2] => Array ( [key] => online_directory [value] => "Yes" [compare] => LIKE ) [relation] => OR ) [relation] => AND ) [1] => Array ( [0] => Array ( [relation] => OR [0] => Array ( [key] => wp_capabilities [value] => "um_member" [compare] => LIKE ) ) [relation] => AND ) ) ) [relation] => AND [meta_table] => wp_usermeta [meta_id_column] => user_id [primary_table] => wp_users [primary_id_column] => ID [table_aliases:protected] => Array ( [0] => wp_usermeta [1] => mt1 [2] => mt2 [3] => mt3 [4] => mt4 [5] => mt5 ) [clauses:protected] => Array ( [wp_usermeta] => Array ( [key] => um_member_directory_data [value] => s:14:"account_status";s:8:"approved"; [compare] => LIKE [compare_key] => = [alias] => wp_usermeta [cast] => CHAR ) [mt1] => Array ( [key] => um_member_directory_data [value] => s:15:"hide_in_members";b:0; [compare] => LIKE [compare_key] => = [alias] => mt1 [cast] => CHAR ) [last_name_c] => Array ( [key] => last_name [compare] => EXISTS [compare_key] => = [alias] => mt2 [cast] => CHAR ) [first_name_c] => Array ( [key] => first_name [compare] => EXISTS [compare_key] => = [alias] => mt3 [cast] => CHAR ) [mt4] => Array ( [key] => online_directory [value] => Yes [compare] => = [compare_key] => = [alias] => mt4 [cast] => CHAR ) [mt4-1] => Array ( [key] => online_directory [value] => s:3:"Yes"; [compare] => LIKE [compare_key] => = [alias] => mt4 [cast] => CHAR ) [mt4-2] => Array ( [key] => online_directory [value] => "Yes" [compare] => LIKE [compare_key] => = [alias] => mt4 [cast] => CHAR ) [mt5] => Array ( [key] => wp_capabilities [value] => "um_member" [compare] => LIKE [compare_key] => = [alias] => mt5 [cast] => CHAR ) ) [has_or_relation:protected] => 1 )
I think that was the wrong section. Is this it?
2023-09-22 07:55:38 um_prepare_user_query_args: Current user ID XXXX Current user login XXXX Query arguments Array ( [fields] => ids [number] => 12 [meta_query] => Array ( [relation] => AND [0] => Array ( [key] => um_member_directory_data [value] => s:14:"account_status";s:8:"approved"; [compare] => LIKE ) [1] => Array ( [key] => um_member_directory_data [value] => s:15:"hide_in_members";b:0; [compare] => LIKE ) [2] => Array ( [last_name_c] => Array ( [key] => last_name [compare] => EXISTS ) [first_name_c] => Array ( [key] => first_name [compare] => EXISTS ) ) [3] => Array ( [relation] => OR [0] => Array ( [key] => online_directory [value] => Yes [compare] => = ) [1] => Array ( [key] => online_directory [value] => s:3:"Yes"; [compare] => LIKE ) [2] => Array ( [key] => online_directory [value] => "Yes" [compare] => LIKE ) ) ) [role__in] => Array ( [5] => um_member ) [paged] => 1 [orderby] => Array ( [last_name_c] => ASC [first_name_c] => ASC ) )
[request] => SELECT DISTINCT SQL_CALC_FOUND_ROWS wp_users.ID FROM wp_users INNER JOIN wp_usermeta ON ( wp_users.ID = wp_usermeta.user_id ) INNER JOIN wp_usermeta AS mt1 ON ( wp_users.ID = mt1.user_id ) INNER JOIN wp_usermeta AS mt2 ON ( wp_users.ID = mt2.user_id ) INNER JOIN wp_usermeta AS mt3 ON ( wp_users.ID = mt3.user_id ) INNER JOIN wp_usermeta AS mt4 ON ( wp_users.ID = mt4.user_id ) INNER JOIN wp_usermeta AS mt5 ON ( wp_users.ID = mt5.user_id ) WHERE 1=1 AND ( ( ( ( wp_usermeta.meta_key = 'um_member_directory_data' AND wp_usermeta.meta_value LIKE '{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}s:14:\"account\\_status\";s:8:\"approved\";{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}' ) AND ( mt1.meta_key = 'um_member_directory_data' AND mt1.meta_value LIKE '{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}s:15:\"hide\\_in\\_members\";b:0;{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}' ) AND ( mt2.meta_key = 'last_name' AND mt3.meta_key = 'first_name' ) AND ( ( mt4.meta_key = 'online_directory' AND mt4.meta_value = 'Yes' ) OR ( mt4.meta_key = 'online_directory' AND mt4.meta_value LIKE '{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}s:3:\"Yes\";{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}' ) OR ( mt4.meta_key = 'online_directory' AND mt4.meta_value LIKE '{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}\"Yes\"{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}' ) ) ) AND ( ( ( mt5.meta_key = 'wp_capabilities' AND mt5.meta_value LIKE '{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}\"um\\_member\"{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}' ) ) ) ) ) ORDER BY CAST(mt2.meta_value AS CHAR) ASC, CAST(mt3.meta_value AS CHAR) ASC LIMIT 0, 12 [compat_fields:WP_User_Query:private] => Array ( [0] => results [1] => total_users ) [query_fields] => DISTINCT SQL_CALC_FOUND_ROWS wp_users.ID [query_from] => FROM wp_users INNER JOIN wp_usermeta ON ( wp_users.ID = wp_usermeta.user_id ) INNER JOIN wp_usermeta AS mt1 ON ( wp_users.ID = mt1.user_id ) INNER JOIN wp_usermeta AS mt2 ON ( wp_users.ID = mt2.user_id ) INNER JOIN wp_usermeta AS mt3 ON ( wp_users.ID = mt3.user_id ) INNER JOIN wp_usermeta AS mt4 ON ( wp_users.ID = mt4.user_id ) INNER JOIN wp_usermeta AS mt5 ON ( wp_users.ID = mt5.user_id ) [query_where] => WHERE 1=1 AND ( ( ( ( wp_usermeta.meta_key = 'um_member_directory_data' AND wp_usermeta.meta_value LIKE '{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}s:14:\"account\\_status\";s:8:\"approved\";{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}' ) AND ( mt1.meta_key = 'um_member_directory_data' AND mt1.meta_value LIKE '{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}s:15:\"hide\\_in\\_members\";b:0;{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}' ) AND ( mt2.meta_key = 'last_name' AND mt3.meta_key = 'first_name' ) AND ( ( mt4.meta_key = 'online_directory' AND mt4.meta_value = 'Yes' ) OR ( mt4.meta_key = 'online_directory' AND mt4.meta_value LIKE '{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}s:3:\"Yes\";{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}' ) OR ( mt4.meta_key = 'online_directory' AND mt4.meta_value LIKE '{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}\"Yes\"{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}' ) ) ) AND ( ( ( mt5.meta_key = 'wp_capabilities' AND mt5.meta_value LIKE '{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}\"um\\_member\"{e72aedfaea730a76093db3541ec95349744a119ca7daa27221b3e523a1afa1c4}' ) ) ) ) ) [query_orderby] => ORDER BY CAST(mt2.meta_value AS CHAR) ASC, CAST(mt3.meta_value AS CHAR) ASC [query_limit] => LIMIT 0, 12 )
2023-09-22 07:55:38 um_ajax_get_members_response: Current user ID XXXX Current user login XXXX User roles um_member User priority role um_member Current role settings Array ( [_um_is_custom] => 1 [_um_priority] => 35 [_um_can_view_all] => 1 [_um_can_view_roles] => Array ( [0] => administrator [1] => editor [2] => author [3] => contributor [4] => subscriber [5] => um_member [6] => um_newsletter [7] => um_secretary [8] => um_quiltshow [9] => um_former [10] => um_membership ) [wp_capabilities] => Array ( [read] => 1 ) [name] => Member ) Members page 1 Members own table 0 Register default role 0 Registration form 3733 role 0 Directory pagination Array ( [pages_to_show] => Array ( ) [current_page] => 1 [total_pages] => 0 [total_users] => 0 [header] => 0 Members [header_single] => 0 Member ) Directory count users 0 Directory data Array ( [form_id] => 3736 [core] => members [template] => members [mode] => directory [roles] => Array ( [0] => um_member ) [roles_can_search] => [roles_can_filter] => ) 2023-09-22 07:55:47 user_id 0 redirect by WordPress, 302, https://milltownquilters.com stack trace: WP: class-wp-hook.php:310, WP: plugin.php:205, WP: pluggable.php:1433, WP: pluggable.php:1545, ultimate-member/includes/core/class-logout.php:82, WP: class-wp-hook.php:310, WP: class-wp-hook.php:334, WP: plugin.php:517, WP: template-loader.php:13
I think this is what you need…
Do you want me to paste the whole debug.log? It is pretty big!
What part of the debug.log do you want? And should I run it with just the um_member account or the administrator account, too?
When I run the directory from a um_member account, the query includes these elements which are not in the query when running with an administrator account.
[meta_query] => Array ( [relation] => AND [0] => Array ( [key] => um_member_directory_data [value] => s:14:"account_status";s:8:"approved"; [compare] => LIKE ) [1] => Array ( [key] => um_member_directory_data [value] => s:15:"hide_in_members";b:0; [compare] => LIKE )
I don’t think the first one should matter, because everyone is Approved. But I am not sure where
um_member_directory_data
is set, so I don’t know if that could be an issue. I’m also not sure why either one would be added only to the non-admin user.This is the result for administrator when nothing is selected for can view roles:
User roles administrator, um_member User priority role administrator Current role settings Array ( [_um_is_custom] => 0 [_um_priority] => 50 [_um_can_view_all] => 1 [_um_can_view_roles] => )
This is the result for administrator when all roles are selected for can view roles:
User roles administrator, um_member User priority role administrator Current role settings Array ( [_um_is_custom] => 0 [_um_priority] => 50 [_um_can_view_all] => 1 [_um_can_view_roles] => Array ( [0] => administrator [1] => editor [2] => author [3] => contributor [4] => subscriber [5] => um_member [6] => um_newsletter [7] => um_secretary [8] => um_quiltshow [9] => um_former [10] => um_membership ) )
I can see the directory in either case using an administrator account.
Well, no rolls are selected for can view rolls on the administrator edit page either.
I added all of my roles and _um_can_view_roles now contains an array of all of them, but I still can’t see the directory with um_member. Oddly enough, the adminstrator role, which can see the directory, has the following:
User roles administrator, um_member User priority role administrator Current role settings Array ( ? ? [_um_is_custom] => 0 ? ? [_um_priority] => 50 ? ? [_um_can_view_all] => 1 ? ? [_um_can_view_roles] => ? ? [wp_capabilities] => ? ? [name] => )
I was wondering if something like that was possible.
When I ran the production site with that snippet, I noticed the following:
User roles administrator, um_member User priority role um_member Current role settings Array ( ? ? [_um_is_custom] => 1 ? ? [_um_priority] => 35 ? ? [_um_can_view_all] => 1 ? ? [_um_can_view_roles] => ? ? [wp_capabilities] => Array ? ? ? ? ( ? ? ? ? ? ? [read] => 1 ? ? ? ? ) ? ? [name] => Member )
That seemed to indicate that the um_member role was taking precedence over the administrator role. So I tried giving administrator a Role Priority of 50 and I can now see the directory when logged in with an administrator account. ?? I still can’t see it if I am logged in with just a um_member account. ?? This is all on production. On local, a um_member account can see the directory. I have gone over the um_member role definitions side-by-side for production and local and they are identical. Is there some other setting that I am missing which could have this effect?