CSRF protection error on 4.7 upgrade

Discussion in 'Installation' started by microlinx, Sep 14, 2015.

  1. microlinx

    microlinx aMember Pro Customer

    Joined:
    Oct 26, 2004
    Messages:
    246
    Getting the following error when trying to upgrade to 4.7 from 4.6.3
    "CSRF protection error - form must be submitted within 60 minutes after displaying, please repeat"
    Cleared cookies & cache, still no joy.
  2. booforum

    booforum aMember Pro Customer

    Joined:
    May 20, 2005
    Messages:
    180
    I'm getting the same thing.
  3. microlinx

    microlinx aMember Pro Customer

    Joined:
    Oct 26, 2004
    Messages:
    246
    I believe this is caused when you enter the wrong username and password for the AMEMBER site during the upgrade. If you entered your admin username & password, that is wrong. You need to enter the username and password you use to access your aMember support account.

    There is a way to reset it, by going to http://www.yourdomain.com/amember/admin-upgrade/get-token
    It allowed me to seemingly upgrade, but did not really DO the upgrade...gonna try to clear cache & cookies and try again.
  4. tahititatou

    tahititatou aMember Pro Customer

    Joined:
    Jun 12, 2007
    Messages:
    14
    Same issue.
    Last edited: Sep 14, 2015
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    I believe the problem is in upgrade length. 4.7.0 upgrade has a lot of modifications and changelog is too big, so depends on server configuration or aMember configuration there could be issues. Try to follow manual upgrade steps:
    http://www.amember.com/docs/Upgrading_to_New_Version
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Also, just want to add we of course will check what is wrong with automatic upgrade, so if you have this issue, contact us in helpdesk we will help.
  7. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    Update: Issue was fixed. Upgrades should work now.
  8. blue_vision

    blue_vision aMember Pro Customer

    Joined:
    Sep 27, 2011
    Messages:
    79
    I had this issue as well and was told to do another manual upgrade. Frustrating and manual upgrades with this many files surely couldn't be recommended as the safest way as it's easy to lose track and put files in the wrong places. Either way, I put the time in now doing the manual upgrade file overwrites so I guess I'll proceed with mine so I didn't totally waste my time.
  9. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    That is not necessary to upload files one by one.
    Most ftp clients allow recursive upload, so when you upload folder recursively, ftp client will create all subfolders and will put files into correct location.
    blue_vision likes this.
  10. blue_vision

    blue_vision aMember Pro Customer

    Joined:
    Sep 27, 2011
    Messages:
    79
    That would have been a helpful reply in my support tickets last week ;)

    Good to know for the future though.
  11. microlinx

    microlinx aMember Pro Customer

    Joined:
    Oct 26, 2004
    Messages:
    246
    Also getting this error when trying to run any reports: "CSRF protection error - form must be submitted within 60 minutes after displaying, please repeat".

Share This Page