• Resolved strangeuser

    (@strangeuser)


    Hello,

    when a user requests a password reset, they are redirected to a page that says the password reset email text, without any link that regenerates the password and it says there’s a problem with the page.

    This code comes with woocommerce. Can you please specify what should be modified, in which file to send a personal email to the user, with an actual functional password reset link ?

    Kind regards

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter strangeuser

    (@strangeuser)

    follows ups please ? Can you just share the link (href) a customer is supposed to click on..

    Plugin Support Paulo P – a11n

    (@paulostp)

    Hello,

    Thanks for reaching out!

    I created a test account in your site and could confirm the behavior. An email is not sent and, instead, the email content is shown in the site. The password reset link is in There has been a critical error on this website., like shown in the image below.

    Link to image: https://snipboard.io/bqxotS.jpg

    This means I was able to change my account password without needing access to my email. As you’ll probably understand, this is a huge security risk for your customers’ accounts, and it’s definitely not how WooCommerce works.

    This is probably caused by another plugin you’re using in your WordPress site. I would suggest that you start by disabling all plugins except for WooCommerce and test the reset password form again.

    If the password reset form is now working as expected, reactivate your other plugins one by one, testing after each, until you find the one causing the issue. You can find a more detailed explanation on how to do a conflict test here.

    Please let us know if we can be of any further assistance.

    Thread Starter strangeuser

    (@strangeuser)

    Hi Paulo,
    Thanks for replying. I’m afraid plugins were not the problem, for I tested deactivating them. Now the issue changed again, when I test password reset I get a different message.

    Can you please show me which Woocommerce function is responsible for sending emails ? Also how to modify the text that “There has been critical..”
    This is what I see in woocommerce/.. reset password.php:

    <?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
    
    <?php /* translators: %s: Customer username */ ?>
    <p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ); ?></p>
    <?php /* translators: %s: Store name */ ?>
    <p><?php printf( esc_html__( 'Someone has requested a new password for the following account on %s:', 'woocommerce' ), esc_html( wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ) ); ?></p>
    <?php /* translators: %s: Customer username */ ?>
    <p><?php printf( esc_html__( 'Username: %s', 'woocommerce' ), esc_html( $user_login ) ); ?></p>
    <p><?php esc_html_e( 'If you didn\'t make this request, just ignore this email. If you\'d like to proceed:', 'woocommerce' ); ?></p>
    <p>
    	<a class="link" href="<?php echo esc_url( add_query_arg( array( 'key' => $reset_key, 'user' => $user_id ) ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( '?page_id=1065' ) ) ) ); ?>"> <?php // phpcs:ignore ?>
    		<?php ecs_html_e( 'Click here to reset your password', 'woocommerce' ); ?>
    	</a>
    </p>
    
    <?php
    /**
     * Show user-defined additional content - this is set in each email's settings.
     */
    if ( $additional_content ) {
    	echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
    }
    
    do_action( 'woocommerce_email_footer', $email );

    Hi @strangeuser

    I understand that you want to change the message “There has been critical..”, and want to know which Woocommerce function is responsible for sending emails.

    Kindly be informed that support for custom coding is beyond the scope of support we are able to provide in this forum. As this is a development related topic, I can recommend the following places where you can get help:

    Another possible option may be to hire a developer or customization expert, for which you could reach out to some of the official WooCommerce development partners via this link: https://woocommerce.com/customizations/

    Nevertheless, I’m going to leave this thread open for a bit to see if anyone is able to chime in to help you out here.

    Cheers

    Thread Starter strangeuser

    (@strangeuser)

    Yes please the more people chime in the better. The screen actually changed completely after Paul’s intervention. I have no idea why. It always changes..

    @strangeuser

    What did it change into? Can you also share a screenshot of the error via https://imgbb.com or https://snipboard.io?

    Thread Starter strangeuser

    (@strangeuser)

    Hey Oyadeyi, here’s what it says now: https://snipboard.io/nuD9ZH.jpg

    Thread Starter strangeuser

    (@strangeuser)

    Hello everyone,
    Please close this I found a solution other than woocommerce.
    Thank you !

    Thanks for letting us know!

    Wish you all the best.

    Cheers

    @strangeuser i have almost the same issue! can you please tell me how you fixed it?

    Hi @nikolsou,

    If you are having a similar issue, please post on a new thread as we need to keep track of issues separately. If you are having a very similar situation to the password reset not functioning correctly and going to a page that is not normal, do a conflict test – the original poster did disable plugins and the issue changed, so it most likely was a result of either a theme or a plugin conflict.

    In this case, you can read more about plugin and theme conflicts here:

    ?https://docs.woocommerce.com/document/woocommerce-self-service-guide/

    The best way to determine if the issue is being caused by a theme and/or plugin is to do the following:
    1. Temporarily switch your theme to the Storefront or Twenty Twenty Theme.
    2. Disable all plugins except for WooCommerce.
    3. Test to see if the issue has been resolved.

    If that resolves the issue, then one-by-one you can switch back your theme and re-enable your plugins, testing in between, until you find the one causing the conflict.

    We do *highly* recommend a staging site for these tests so that your Live site is unaffected. A staging site is a clone or copy of the Live site, used for testing. You can reach out to your Host if you need to have a staging site set up, as they usually can assist you with this.

    Let us know if that did not work in a new thread.

    OK!Thank you!

    You’re welcome!
    Feel comfortable to open a new thread if needed.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Password Reset Issue’ is closed to new replies.