Email template reset password bug
-
Hello everyone,
I use Ultimate Member for a site with a member’s area. I have a problem with password reset in the email received to reset it.
If the person changes their password via their account: it’s ok.
But if he clicks “reset my password”
- he arrives at the page where to enter his email to receive the reset email : ok too 🙂
- Concern:
in the email I have a link like this http//{password_reset_link} >>> There are “:” between http and //. While in the email template to configure in Dashboard WP > Settings > Emails from Ultimate Member. I put {password_reset_link} as requested which turns itself into http://{password_reset_link}. Why not 🙂 But the link in the email turn to http//{password_reset_link} WITHOUT the “:” between http and //
Did it happen to someone yet ? Because I admit that I don’t understand how I can register http://{password_reset_link} and the link in the email I received turns itself into this http//{password_reset_link}.
And if I add the “:” in the URL between http and //, it works very well of course to reset your password.
I’ve screenshots if needed 🙂
An idea ?

Have a nice day everyone!
The page I need help with: [log in to see the link]
-
First can you post your
UM Settings -> Install Infohere in the Forum.Second don’t cache the UM pages, HTML from your Registration page
<!– Dynamic page generated in 1.713 seconds. –>
<!– Cached page generated by WP-Super-Cache on 2023-06-14 17:36:59 –>https://docs.ultimatemember.com/article/1595-caching-problems
Hey @missveronicatv
Thanks a lot for your answer !I put this following page exclude from the cache (I use WP Super Cache)
- login
- reset password
- account
- user
- members
- 2 links of subcription (because 2 differents roles)
- 2 private pages (1 page per role)
_____________________________________
And I give you the install info you asked 🙂
### Begin Install Info ### ## Please include this information when posting support requests ## --- Site Info --- Site URL: https://www.conlombant.com Home URL: https://www.conlombant.com Multisite: No --- Hosting Provider --- Host: DBH: conlombaaqlcest.mysql.db, SRV: www.conlombant.com --- User Browser --- Platform: Windows Browser Name: Chrome Browser Version: 114.0.0.0 User Agent String: Mozilla/5.0 (Windows NT 10.0; Wi n64; x64) AppleWebKit/537.36 (KH TML, like Gecko) Chrome/114.0.0. 0 Safari/537.36 ---- Current User Details -- Role: administrator --- WordPress Configurations --- Version: 6.2.2 Language: fr_FR Permalink Structure: /%postname%/ Active Theme: Royal Elementor Kit Child 1.0 Page On Front: Accueil (#8) Page For Posts: (#0) ABSPATH: /home/conlombaaq/www/ All Posts/Pages: 6 WP Remote Post: wp_remote_post() works WP_DEBUG: Disabled WP Table Prefix: Length: 7, Status: Acceptable Memory Limit: 40MB --- UM Configurations --- Version: 2.6.2 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://www.conlombant.com/utilisateur/ Account: https://www.conlombant.com/compte/ Members: https://www.conlombant.com/members/ Register: https://www.conlombant.com/?page_id=1558 Login: https://www.conlombant.com/login/ Logout: https://www.conlombant.com/logout/ Password Reset: https://www.conlombant.com/reinitialisation-mot-de-passe/ --- UM Users Configuration --- Default New User Role: 0 Profile Permalink Base: user_login User Display Name: full_name 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: Yes Reset Password Limit: 30Disable Reset Password Limit for Admins: No Blacklist Words: 5 --- UM Email Configurations --- Mail appears from: Association Louis Conlombant 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: Yes Password Reset Email: Yes Password Changed Email: Yes Account Updated Email: Yes New User Notification: No Account Needs Review Notification: No Account Deletion Notification: No --- UM Total Users --- All Users(42) administrator(4) um_famille-de-vacances(32) um_custom_role_1(6) none(0) --- UM Roles --- Administrator (administrator) Editor (editor) Author (author) Contributor (contributor) Subscriber (subscriber) Famille de vacances (um_famille-de-vacances) Référent (um_custom_role_1) SEO Manager (wpseo_manager) SEO Editor (wpseo_editor) Designer Web (css_js_designer) --- UM Custom Templates --- N/A --- UM Email HTML Templates --- N/A --- Web Server Configurations --- PHP Version: 7.4.33 MySQL Version: 5.7.42 Web Server Info: Apache --- PHP Configurations --- PHP Memory Limit: 512M PHP Upload Max Size: 128M PHP Post Max Size: 130M PHP Upload Max Filesize: 128M PHP Time Limit: 165 PHP Max Input Vars: 16000 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: /tmp Use Cookies: On Use Only Cookies: On --- WordPress Active Plugins --- Akismet Anti-Spam: 5.1 Complianz | GDPR/CCPA Cookie Consent: 6.4.6 Elementor: 3.13.4 Formidable Forms: 6.3.1 Formidable Forms Pro: 6.3.1 Formidable Registration: 2.09 Google Analytics for WordPress by MonsterInsights: 8.15 ManageWP - Worker: 4.9.17 Royal Elementor Addons: 1.3.69 SecuPress Free — WordPress Security: 2.2.4.1 Simple Custom CSS and JS: 3.44 Ultimate Member: 2.6.2 UpdraftPlus - Backup/Restore: 1.23.4 User Switching: 1.7.0 WP-Sweep: 1.1.8 WP Rollback: 1.7.3 WP Sitemap Page: 1.9.2 WP Super Cache: 1.9.4 Yoast Duplicate Post: 4.5 Yoast SEO: 20.9 ### End Install Info ###Thanks a lot for your help 🙂
Yes caching is disabled now.
The URL’s looks OK in your Install Info.Deactivate the “SecuPress” plugin because of a JavaScript error at the UM pages:
Uncaught TypeError: document.getElementById(...) is nullTry to install the “Check & Log Email” Plugin and enable the logging of outgoing emails and look in the Plugin’s log file how the URL looks like when sent from UM.
Hey @missveronicatv ,
Thanks a lot for your help, I really appreciated 🙏I desactivated Secupress plugin, but it’s still the same.
I installed Check & Log Email plugin and it seems to be okay, see the following image :
- https://ibb.co/G0Xc4wn
- https://ibb.co/JkB8BJn : still missing the “:” at the bottom left between http and //
Thanks again for your help 🙂
Hurry to read you 😀
Can you post here in the Forum your customized email template for password reset.
You will find the file in your active Theme’s folder with a FTP Client or a FileManager
.../wp_content/themes/"active theme"/ultimate-member/email/resetpw_email.phpHey @missveronicatv ,
I hope you are well 🙂
See the following code of the resetpw_email.php
<div style="max-width: 560px;padding: 20px;background: #ffffff;border-radius: 5px;margin: 40px auto;font-family: Open Sans,Helvetica,Arial;font-size: 15px;color: #666"> <div style="color: #1da3af;font-weight: normal"> <div style="text-align: center;font-weight: 600;font-size: 26px;padding: 10px 0;border-bottom: solid 3px #eeeeee">{site_name}</div> <div style="clear: both"> </div> </div> <div style="padding: 0 30px 30px 30px;border-bottom: 3px solid #eeeeee"> <div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px">Vous avez fait une demande <br />de réinitialisation de mot de passe<br />pour votre compte.<br />Cliquez sur le lien ci-dessous<br />pour changer votre mot de passe</div> <div style="padding: 10px 0 50px 0;text-align: center"><strong><a style="background: #1da3af;color: #fff;padding: 12px 30px;text-decoration: none;border-radius: 3px;letter-spacing: 0.3px" href="http://{password_reset_link}">Je change mon mot de passe</a></strong></div> <div style="padding: 15px;background: #eee;border-radius: 3px;text-align: center">Si vous n'avez pas demandé ces changements, ignorez cet email.</div> </div> <div style="color: #999;padding: 20px 30px">Association Louis Conlombant<br />01 42 03 78 79<br />[email protected]<br />132 rue du faubourg Saint-Denis,<br />75010 Paris</div> </div>Have a nice day 😄
Try to replace your
resetpw_email.phpcustom file with this content:<div style="max-width: 560px;padding: 20px;background: #ffffff;border-radius: 5px;margin: 40px auto;font-family: Open Sans,Helvetica,Arial;font-size: 15px;color: #666"> <div style="color: #1da3af;font-weight: normal"> <div style="text-align: center;font-weight: 600;font-size: 26px;padding: 10px 0;border-bottom: solid 3px #eeeeee">{site_name}</div> <div style="clear: both"> </div> </div> <div style="padding: 0 30px 30px 30px;border-bottom: 3px solid #eeeeee"> <div style="padding: 30px 0;font-size: 24px;text-align: center;line-height: 40px">Vous avez fait une demande <br />de réinitialisation de mot de passe<br />pour votre compte.<br />Cliquez sur le lien ci-dessous<br />pour changer votre mot de passe</div> <div style="padding: 10px 0 50px 0;text-align: center"><strong><a style="background: #1da3af;color: #fff;padding: 12px 30px;text-decoration: none;border-radius: 3px;letter-spacing: 0.3px" href="{password_reset_link}">Je change mon mot de passe</a></strong></div> <div style="padding: 15px;background: #eee;border-radius: 3px;text-align: center">Si vous n'avez pas demandé ces changements, ignorez cet email.</div> </div> <div style="color: #999;padding: 20px 30px">Association Louis Conlombant<br />01 42 03 78 79<br />[email protected]<br />132 rue du faubourg Saint-Denis,<br />75010 Paris</div> </div>Hello @missveronicatv
You’re a magician… IT WORKS PERFECTLY !!!
Thanks a lot for all, you were very patient with me and gave me really good solution. Thank you and thank you again ! 🙏 🙏 🙏
Have a beautiful day ! ☀️ ⭐
The topic ‘Email template reset password bug’ is closed to new replies.