Password Reset Email sent twice
-
Hello team,
we are using your perfect working plugin profile builder, everything works fine, without – taht the password reset eamil will be send always twice to the customer.
Profile Builder /var/www/vhosts/……com/httpdocs/wp-content/plugins/profile-builder/features/functions.php:250
Please can you help us, thank you in advance!
Kind regards
-
Hi @marketingnr1,
1. Could you please go to your Dashboard -> Plugins -> and send a full screenshot with everything you have installed related to Profile Builder?
2. And could you also please send us the URL of the page where you have the Profile Builder Password Reset form?
You can use a site like https://snipboard.io/ to share the screenshot.
Best regards,
Hello @alexandrubodea
thanks for helping.
1. `
ACF Pro
Germanized Pro
WooCommerce
WP Mail SMTP Pro
WPFront User Role Editor
WPML`2. b2b.costoluto.com /recover-password/
3. For all pw reset emails that are sent twice, i get the following info from the the plugin WP Mail SMTP logs, that these emails are triggerd in line 250: httpdocs/wp-content/plugins/profile-builder/features/functions.php:250
Best regards
Hi @marketingnr1,
Could you please check if you have the latest version of the Profile Builder plugin (version 3.8.3)?
If not please upgrade to the latest version and check if you still encounter this issue.
Hello @alexandrubodea
yes every plugin is updated to the latest version.
Do you have a snippet to stop sending the recovery pw email twice?
Thank you in advance
Best regardsI’ve tested on my WP Instance while using an Email Log plugin, and the password reset email is being sent only once in my case.
While looking at the source page of the page you’ve shared, it can be seen that you have 2 Profile Builder password reset forms added there, so they are processed twice. You can look at the following screenshot: https://snipboard.io/hURosg.jpg.
1. Can you add the [wppb-recover-password] shortcode to a new page and check if the issue still persists?
2. If the issue still persists, since this looks a lot like a conflict with some other code, the first/next recommended step is the conflict test (ideally in a staging environment):
Briefly* disable all other plugins and enable the default Twenty Twenty theme. Please also disable all add-ons. If this fixes the problem, enable everything one by one, checking each time to see when the problem returns.
NOTE: Please do the conflict test on a test site, not on the live site.
Best regards,
Hello @alexandrubodea
thank you for your help.
1. checked, not working
2. i cloned the shop, build a staging and disabled all plugins, still 2 emails by pw resetting.In the live version logs, i can clearly see that the email are sent from:
/wp-content/plugins/profile-builder/features/functions.php:250So here is the code, maybe you can check it for any issues:
function wppb_mail( $to, $subject, $message, $message_from = null, $context = null, $headers = ” ) {
$to = apply_filters( ‘wppb_send_email_to’, $to, $context );
$send_email = apply_filters( ‘wppb_send_email’, true, $to, $subject, $message, $context );$message = apply_filters( ‘wppb_email_message’, $message, $context );
$message = wppb_maybe_add_propper_html_tags_to_email( $message );
do_action( ‘wppb_before_sending_email’, $to, $subject, $message, $send_email, $context );
if ( $send_email ) {
//we add this filter to enable html encoding
if( apply_filters( ‘wppb_mail_enable_html’, true, $context, $to, $subject, $message ) )
add_filter(‘wp_mail_content_type’, ‘wppb_html_content_type’ );$atts = apply_filters( ‘wppb_mail’, compact( ‘to’, ‘subject’, ‘message’, ‘headers’ ), $context );
$sent = wp_mail( $atts[‘to’] , html_entity_decode( htmlspecialchars_decode( $atts[‘subject’], ENT_QUOTES ), ENT_QUOTES ), $atts[‘message’], $atts[‘headers’] );
do_action( ‘wppb_after_sending_email’, $sent, $to, $subject, $message, $send_email, $context );
return $sent;
}return ”;
}Thank you for helping in advance
Best regards!-
This reply was modified 3 years, 7 months ago by
18bits.
Hi @marketingnr1,
2. Just to be sure, when you performed the conflict test, have you also enabled the default “Twenty Twenty” theme?
Best regards,
Hello @alexandrubodea
yes i disabled all plugins and tested it on the twenty-twenty 2.1 theme.
Do you have a fast solution?
Thanks in advance!
Hello @marketingnr1,
I apologize for the delayed response.
I’ve tested again on my WP Instance and still the password reset email is being sent only once.
Could you please install a fresh WordPress in a subdirectory of your current install, leaving everything as it is, all the settings on default: https://www.wpbeginner.com/wp-tutorials/how-to-install-wordpress-in-a-subdirectory-step-by-step/.
Then install and activate only our plugin, again with all settings on default, making only the changes that are absolutely necessary.
Does the problem still reproduce?
Best regards,
-
This reply was modified 3 years, 7 months ago by
The topic ‘Password Reset Email sent twice’ is closed to new replies.