• Resolved jimk1416

    (@jimk1416)


    I am getting this error and realize it has to do with caching.
    Error: Your access token has expired. Please request a new one.
    Email access is enabled in settings and Session Lifetime is one week.
    I am not using any caching plugins yet.

    I complete a donation with a name and email address.
    It completes successfully.
    If I go immediately back in and try to send a second donation using the same email address I get the token expired message.
    If I press the Submit button a second time it completes.
    I can’t believe there is time for any caches to be cleared.

    What do I need to do so that if someone should try to go back and make another donation with the same email address they don’t receive the error.

    • This topic was modified 2 years, 2 months ago by jimk1416.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rick Alday

    (@mrdaro)

    Hi @jimk1416,

    Happy to help.

    That error is only caused by some caching happening somewhere in the process.

    In order to verify that my hypothesis is right here, we need to exclude any asset loaded by GiveWP from the cache. Although you’re not using any caching plugins your host might have some server-level cache running.

    Caching is handled differently on various sites and web hosts, and most of them allow for excluding specific URLs or parts of URLs from caching. At the very least, you should exclude the following slugs from caching:
    /donations/
    /donation-confirmation/
    /donor-dashboard/

    Also, the following query strings:
    give-embed=donor-dashboard
    giveDonationFormInIframe=1

    Your host can help with that. Some of them may require what’s called a “wildcard” like /donations/* to capture all subdirectories under the /donations/ folder.

    Thread Starter jimk1416

    (@jimk1416)

    Thanks @mrdaro
    I’m on Hostmonster shared server so I’ll see what I can find.

    I have another site on a Hostgator server and the same test worked there without any errors.

    • This reply was modified 2 years, 2 months ago by jimk1416.
    • This reply was modified 2 years, 2 months ago by jimk1416.
    Thread Starter jimk1416

    (@jimk1416)

    Follow up in case this helps anyone.
    I was not able to find anything about caching on Hostmonster or Hostgator.
    They just point you to Caching plugins.
    I was performing my test in Chrome browser.

    I cleared the cache in the browser and that seemed to solve the issue.
    I repeated the test with WP Optimize plugin and again with WP Super Cache plugin.
    No errors if either plugin was disabled or enabled.
    Not sure why there was no errors on the Hostgator website but this solved the error issue for the Hostmonster website.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error: Your access token has expired. Please request a new one.’ is closed to new replies.