• Resolved kdub1312

    (@kdub1312)


    Hello,

    I’m using Woocommerce with Woocommerce Supscriptions, Groups, Woocommerce MailChimp, Gropus, and Groups Woocommerce. Mysite is foodcoach.me; Currently, when a customer who has forgotten his password attempts to reset from the /account/lost-password/ that user does indeed receive an email, however the link in that email takes the user back to /account/lost-password/, to the same form he started the process at and where he is prompted to re-enter his email address for password reset and whole sequence starts over.

    As best I can tell the code that creates the link in the email is correct:

    <a class="link" href="<?php echo esc_url( add_query_arg( array( 'key' => $reset_key, 'login' => rawurlencode( $user_login ) ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( 'myaccount' ) ) ) ); ?>">
    			<?php _e( 'Click here to reset your password', 'woocommerce' ); ?></a>

    Any idea what could be going wrong here? I’m running WC 2.6.2 on WP 4.5.3, using PHP 5.6.23 (only recently upgrade the PHP version, hasn’t made a difference though). I’ve tried turning off all other plugins and changing the theme with no luck.

    Regards,

    Kevin

    https://www.ads-software.com/plugins/woocommerce/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Exactly same here.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    It’s supposed to go to the same place, but a cookie is set and a different form is displayed. If this is not happening, ensure this page is excluded from page caching.

    Anonymous User 11660062

    (@anonymized-11660062)

    Same here….

    The proposed solution is not a good fix. Hosted WordPress pages such a WPEngine (and multitude of others) and other does not give you ability to control page caching on a URL level. I suspect other sites will run into this issue as well.

    I would like to see a fix that does not require tweaking WordPress on URL level.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    WPEngine does allow you to configure the cache. Fact is account, checkout, cart NEED to be dynamic since they deal with customer data!

    na

    Thread Starter kdub1312

    (@kdub1312)

    Mike, thanks for the fast response. I couple quick follow up questions to make sure I’m moving in the right direction:

    1. I’m assuming this type of caching would have to be at the browser level, is that correct?
    2. My site relies heavily on WC products- which caching plugin do you find has the best compatibility with WC?

    This should be all I need to start applying a solution, thanks again for the great customer service.

    Kevin

    The following cache plugin has worked properly for my WooCommerce shop. It can be set to exclude specific pages/posts as needed. YMMV

    ? Comet Cache
    https://www.ads-software.com/plugins/comet-cache/

    Thread Starter kdub1312

    (@kdub1312)

    thanks! I’ll check that one out

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    w3 also has an exclusion setting in its page caching settings page.

    I am working on a site using Woocommerce, and my client is experiencing this issue as well, although I haven’t been able to reproduce it myself. Is there anything else that could be causing this?

    Are you talking about browser caching? Would it help to set meta tags on this page to prevent browser caching? This sorta thing …

    <meta http-equiv="cache-control" content="max-age=0">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="-1">
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 11:00:00 GMT">
    <meta http-equiv="pragma" content="no-cache">
    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    No, we’re talking about page caching plugins.

    Thread Starter kdub1312

    (@kdub1312)

    Thanks for the help, I was able to correct my issue using the guidance above- for my situation it turned out to be my host that had caching software applied to my site. I use Blue host, and they use a product called ‘varnish cache’ for caching purposes, so I had them turn it off. There is also an option in the hosting dashboard so in the future I can turn it off myself, if it where to ever get toggled back on with say some sort of hosting update.

    So all the WC forms and links were and are working fine, only the host settings were causing a hiccup. I’d recommend to anybody experiencing the same problem I described above to contact your host and see if there is any caching going on their end that could be causing issues.

    Regards,

    Kevin

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Link in WC Reset Password Email Leads to Wrong Form’ is closed to new replies.