• Resolved localmedia

    (@localmedia)


    The password reset mail is not being sent on our website.

    I deactivated all other plugins and switched to the original theme as described here: https://docs.ultimatemember.com/article/96-how-to-do-a-plugin-theme-conflict-test

    I can also say with certainty that there is no problem with the mail function, as the problem persists on our live site where we send mails using sendgrid SMTP, as well as locally where we use mailhog to catch mails reliably. Also, all other mails are being sent correctly and without problems.

    After doing some debugging, i found that the um_user function is not returning the email address of the user.
    The mail is being sent correctly as soon as i change the code on line 1549 of core/class-user.php from:
    UM()->mail()->send( um_user( ‘user_email’ ), ‘resetpw_email’ );
    to:
    UM()->mail()->send( $userdata->user_email, ‘resetpw_email’ );

    Why the um_user function doesn’t work, i don’t know. It would be very helpful if this could be fixed in a future version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @localmedia

    Thanks for your feedback.

    New GitHub UM issue report:

    https://github.com/ultimatemember/ultimatemember/issues/1094

    Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    The function um_user() depends on functions um_fetch_user() and um_reset_user(). This function may work wrong if there is a custom code or third-party plugin that uses these functions incorrectly.

    The function um_fetch_user() sets a User object. It must be called before the um_user() function.

    The function um_reset_user() resets a User object to defaults. It may be called after the um_fetch_user() and um_user() functions to restore the current user if needed. Note: This function clears a User object if a user is logged out.

    Please verify that there are no non-official extensions and custom code on your site. Please show information about your site if possible. You can get this info on wp-admin > Ultimate Member > Settings > Install Info.

    Thread Starter localmedia

    (@localmedia)

    Interestingly, the call to um_user( ‘ID’ ) does return the ID.
    It is just um_user( ‘user_email’ ) does not return the email address.

    There are no other plugins except Ultimate Member activated, and the Twenty Twenty-Three without any custom code is used.

    Here is the information requested:

    ### Begin Install Info ###
    
    ## Please include this information when posting support requests ##
    
    --- Site Info ---
    
    Site URL:					https://intergeneration.lme
    Home URL:					https://intergeneration.lme
    Multisite:					No
    
    --- Hosting Provider ---
    
    Host:						DBH: localhost, SRV: intergeneration.lme
    
    --- User Browser ---
    
    Platform:                 Apple 
    Browser Name:             Firefox  
    Browser Version:          106.0 
    User Agent String:        Mozilla/5.0 (Macintosh; Intel Ma 
    			  c OS X 10.15; rv:106.0) Gecko/20
                              100101 Firefox/106.0
                              
    ---- Current User Details --
    
    Role: administrator
    
    --- WordPress Configurations ---
    
    Version:				6.1
    Language:				de_CH
    Permalink Structure:			/%postname%/
    Active Theme:				Twenty Twenty-Three 1.0
    Page On Front:				Home (#733)
    Page For Posts:				 (#0)
    ABSPATH:				/Users/user/Local Sites/intergeneration/app/public/
    All Posts/Pages:			3
    WP Remote Post:           		wp_remote_post() works
    WP_DEBUG:                 		Disabled
    WP Table Prefix:          		Length: 14, Status: Acceptable
    Memory Limit:   			40MB
    
    --- UM Configurations ---
    
    Version:				2.5.1
    Upgraded From:            		2.5.0
    Current URL Method:			
    Cache User Profile:			No
    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://intergeneration.lme/user/
    Account:						https://intergeneration.lme/account/
    Members:					https://intergeneration.lme/members/
    Register:						https://intergeneration.lme/register/
    Login:						https://intergeneration.lme/login/
    Logout:						https://intergeneration.lme/logout/
    Password Reset:				https://intergeneration.lme/password-reset/
    
    --- UM Users Configuration ---
    
    Default New User Role: 		0
    Profile Permalink Base:		user_id
    User Display Name:		default
    Redirect author to profile: 	No
    Enable Members Directory:	No
    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:		No
    Blacklist Words: 				5
    
    --- UM Email Configurations ---
    
    Mail appears from:  		Intergeneration
    Mail appears from address:  	[email protected]
    Use HTML for E-mails:   	Yes
    Account Welcome Email:  	Yes
    Account Activation Email:   	Yes
    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: 	No
    
    --- UM Total Users ---
    
    				All Users(1516)
    administrator(6)
    editor(1)
    author(1509)
    none(0)
    
    --- UM Roles ---
    
    				Administrator (administrator)
    Editor (editor)
    Verifiziert (author)
    Nicht verifiziert (contributor)
    Subscriber (subscriber)
    Translator (translator)
    
    --- UM Custom Templates ---
    
    				N/A
    
    --- UM Email HTML Templates ---
    
    				N/A
    
    --- Web Server Configurations ---
    
    PHP Version:              			7.4.30
    MySQL Version:            			8.0.16
    Web Server Info:          			nginx/1.16.0
    
    --- PHP Configurations ---
    
    PHP Memory Limit:         			256M
    PHP Upload Max Size:      			300M
    PHP Post Max Size:        			1000M
    PHP Upload Max Filesize:  			300M
    PHP Time Limit:           			1200
    PHP Max Input Vars:       			4000
    PHP Arg Separator:        			&
    PHP Allow URL File Open:  			Yes
    
    --- Web Server Extensions/Modules ---
    
    DISPLAY ERRORS:           			On (1)
    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:                			
    Use Cookies:              			On
    Use Only Cookies:         			On
    
    --- WordPress Active Plugins ---
    
    Ultimate Member: 2.5.1
    
    ### End Install Info ###

    @localmedia

    Templates required update for UM 2.5.0:

    password-change.php
    password-reset.php

    Have you made any customizations for these template files.

    Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    Hi @localmedia,

    The password_reset() method in the includes/core/class-user.php file has been changed. Update the Ultimate Member plugin to the version 2.5.3

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Password Reset Mail not sent’ is closed to new replies.