Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support LovingBro (woo-hc)

    (@lovingbro)

    Hi @ahmadraza9

    I understand you are seeing “ERROR: The form had expired. Please try again.” when logging in on the My Account page, and you want to get this fixed quickly. This message almost always means the login page was served from cache with an old security nonce, so when the form is submitted the check fails. Let’s rule out caching and any conflicts so the login works consistently.

    Please try these steps in order.

    1. Exclude My Account and WooCommerce endpoints from every caching layer, then purge all caches. Exclude, /my-account/, /checkout/, /cart/, /my-account/lost-password/, and any URL with ?wc-ajax=. If you use a CDN like Cloudflare, turn on Development Mode while testing and purge its cache too. Guide, https://woocommerce.com/document/configuring-caching-plugins/
    2. Open an incognito window and test the login again. Also confirm your site uses https everywhere in Settings, General, and that the My Account page is properly assigned under WooCommerce, Settings, Advanced.
    3. Check server and device time are correct. Large time drift can invalidate nonces.
    4. Temporarily disable any security or captcha plugins that hook into login, for example Wordfence, reCAPTCHA, hCaptcha, then test.
    5. If the issue persists, run a quick conflict test by switching to Storefront or Twenty Twenty-Four and leaving only WooCommerce active, then try the login. How to test, https://woocommerce.com/document/how-to-test-for-conflicts/

    If it still fails after the above, please share
    • a screenshot of the error as it appears, via https://snipboard.io
    • your WooCommerce System Status Report via https://pastebin.com, WooCommerce, Status, Get system report, Copy for support
    • the latest fatal error log from WooCommerce, Status, Logs, pasted to https://pastebin.com

    Once caching is bypassed for account pages, and any conflicting login hooks are ruled out, the error should disappear. Feel free to let us know how it goes.

    Thread Starter Ahmad Raza

    (@ahmadraza9)

    Hi @lovingbro
    Thank you for your reply.

    Issue has been resolved, my website has this plugin: Apocalypse Meow, I have deactivated it then login form is working fine.

    • This reply was modified 7 months ago by Ahmad Raza.
    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Great to hear everything’s working perfectly now! Your feedback helps us improve and reach more users. If you have a moment, we’d be incredibly grateful if you could share your experience by leaving a review here: https://wordpress.org/support/plugin/woocommerce/reviews/#new-post

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Login form giving Error’ is closed to new replies.