• Resolved mariebaringer

    (@mariebaringer)


    I am having an issue with the password reset in WooCommerce. It sends the email, and when I click on the link, it takes me to /my-account/lost-password/?show-reset-form=true. However, it shows the form-lost-password.php instead of the form-reset-password.php. I have changed the theme to Twenty Sixteen, removed all of my functions, and disabled all plugins other than WooCommerce, and the problem still exists.

    Finally went to the WooCommerce demo store at https://demo.woothemes.com/woostore/my-account/lost-password/?show-reset-form=true to see if it worked there, and….I see the same thing as on my website. Does anyone know how to fix this, or should I be submitting a bug on GitHub?

    Thanks!

Viewing 15 replies - 1 through 15 (of 19 total)
  • Mina

    (@purpleberryservices)

    URL for reset password is wrong. It must be something like this
    https://example.com/my-account/lost-password/?key=s31uOL4iYQ8937rSuaRb&login=username

    Use exact URL you receive in email to reset password, it is working fine on my site.

    Thread Starter mariebaringer

    (@mariebaringer)

    Yes, the email has a url with a key and a login in the query string. HOWEVER, once the server processes it, it redirects with the ?show-reset-form=true query string, which should be what tells the page that it should be displaying the password reset form instead of the lost password form (lets it know what stage of the process it is in, same as the ?reset-link-sent=true query string that is added after sending the email lets it know to load the confirmation page). But when the page redirects from the login/key query string from the email link, it displays the lost-password form instead of the password-reset form on my site. I suppose it is possible that on the WC demo site, it shows that because it has not first verified a key (I couldn’t find a place to register so that I could have it send an email and click through). However, it DOES have a key/login to verify on my site, and when I follow the link from the email, I get the lost password form.

    I can understand if it is not actually displaying the form because it cannot find a match on the login/key (although I would expect a different query string in that case), but there is no error message indicating that is the case, and I click through on the email right after it comes in, so it should not have had an opportunity to expire. I have tried in Chrome, IE, and Firefox on my laptop and IE and Chrome on my phone and get the same result every time. I have also checked the email template in my plugin files, and it is the same as the one on Github. Therefore, I do not see it being an issue of an incorrect key/login pair being sent to the email, and I have changed to the Twenty Sixteen theme with the only plugin active being WooCommerce and none of my custom functions uploaded to the site and gotten the same results, which should mean it is not a plugin conflict, a problem with the theme, or an issue with one of my functions.

    Since I can’t find any mention of this problem searching online (except for one person who had an outdated email template), I am trying to find out if anyone on this forum has run into the issue and knows how to fix it!

    @mariebaringer, I am experiencing the EXACT same issue with the reset password form on my site: https://www.aaltayarn.com, using Flatsome theme 3.1.6 and latest WordPress and WooCommerce builds.

    Please let me know if you find a solution. You can email me directly at: [email protected].

    Thank you,
    Mike

    @mariebaringer & @bakemd I am also having the same exact issue (to the T). I have gone through the same debugging steps with no remedy on my site: https://www.legacycapitals.com/shop/my-account/.

    WooCommerce and WordPress are up to date with the latest releases. My site is hosted by WPEngine and I cleared all of the caches (The page-cache, the CDN cache, and the object cache) as well as tested in incognito mode in Chrome. I changed the theme to 2016 and deactivated all of the plugins except WooCommerce. The URL created for the email is correct, but it doesn’t load the actual reset password page.

    Very strange issue. I’ll write back here if I figure anything out.

    @mariebaringer & @bakemd I was able to fix the issue! It is a caching issue as I thought. Since my website is hosted with WPEngine I was able to chat their support and get them to add the /shop/my-account/ pages to a cache exclusion list, and this fixed it. Hopefully, you two can do the same. Good luck!

    Awesome, I too am hosted with WP Engine. Thank you, I will contact their support to request the same.

    I appreciate your help and best wishes with your site.

    @melaniemasi, You are my hero!! I had WP Engine add /my-account/* pages to the cache exclusion list and it FIXED the issue!! Thank you so much ??

    @bakemd I’m so glad I was able to help you! Now hopefully this helps @mariebaringer too.

    Thread Starter mariebaringer

    (@mariebaringer)

    @melaniemasi, You are amazing! I also have WP Engine as a host, and while I knew their caching was a production issue (I’m still customizing the theme and have to purge the cache every time I make a change – although it potentially looks as if being logged into the WP Engine admin may put it in the “cacheless environment” one of their chat techs told me should exist for production, for anyone else running into that problem), I didn’t realize it could cause a problem for the functioning of the endpoints! I never would have thought to check that.

    I’ve talked to WP Engine support now and they added the exclusion on my pages. Works like a charm! I’m sure all the other people on WP Engine who now have a forum post on this subject will also be incredibly grateful for the hours of web research you have saved them!

    YAY! I’m so glad this worked for all of us. Who’d a thought we were all on WPEngine.

    Plugin Support Daniyal Ahmed (a11n)

    (@daniyalahmedk)

    You saved me!! Thank you sooo much.

    Hey there,

    I wanted to mention I encountered the same problem today with a recent migration to WPEngine with https://braandcorsetsupplies.com/ we found that the fix needed /shop/* removed from the cache to get it working properly.

    I also found during trouble shooting that there was less of a problem for desktop users and more of an issue for ios and bb mobile device users, it seemed that if the website thought you had safari-mobile you could not access the dual new password input page until /shop/* was removed from caching.

    ENB..//

    • This reply was modified 7 years, 11 months ago by ENBertussi. Reason: detail missing

    Hello, my conflict problem is a little different. In the Admin login page, if I click the “Lost password” link, it takes me to https://www.mydomain.com/lost-password, however it should redirect me to https://www.mydomain.com/wp-login.php?action=lostpassword

    I’m using WooCommerce to only showcase my products (catalog). If I go to WooCommerce Settings, there’s an option there to set the “lost password” link. Even changing that option to “wp-login.php?action=lostpassword” it does not work.

    Please let me know how to solve this issue. Thanks a lot.

    We are seeing the same issues as @jonecir is seeing. Does anyone have a solution for that?

    @jonecir and @icommllc

    Just keep the url blank.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘WooCommerce password reset not showing form’ is closed to new replies.