Jump to content

The CSRF protection key did not match - Cloud


Recommended Posts

Quote

The CSRF protection key did not match. This may indicate a plugin or theme is out of date. Please contact technical support for more information

I had this problem a few months ago. That time, it was due to an addon. It happened again a few days ago, but I had not updated the core of any addons (and still have not). Further, it was occurring only with Edge. The solution was to delete Edge cookies for my site. I logged in again a few minutes ago - no problem. Did a couple of things but received the error message when I visited the home page. I can continue to navigate other pages, post comments, etc. I can also access the ACP.

I can login and access all pages using Firefox.

I've cleared my cookies again - and again, everything now functions normally. Except, I have a consistent problem with logging in - and members have complained about this too - login fails and I must login via the domain.com/login page. I should also add, when I first logged in today, I did not receive the usual login error to the /login page.

Link to comment
Share on other sites

While I understand what you are saying about not having updated any addons, you have updated our software. So if something is no longer compatible with the latest release, of course it could cause issues. So our advice would still be to disable all 3rd party items, including theme while you are testing

Link to comment
Share on other sites

10 minutes ago, Marc Stridgen said:

Im a little lost there. According to our records you appear to be on 4.7.15?

Hi Marc,

I am not certain when I updated the core, but I note that 4.7.15 was released on January 23rd, which fits with my recolection of last updating the core 2-3 weeks ago. The CSRF error only started a few days ago.

Link to comment
Share on other sites

@Marc Stridgen I am trying disabling various addons and features to see if I can pin down the problem. Thinking about it, although as I recall the timing does not match, I have recently enabled some blocks - perhaps there is conflict with one of those and an addon.

Since the error is triggered inconsistently, this might take a while.

Link to comment
Share on other sites

1 minute ago, Jim M said:

You would want to ensure you did not create an custom blocks either which reference something as that can create conflicts as well.

Unlikely an issue issue given my very limited use of blocks (they are mostly just tests). But I'll keep this in mind. Thanks.

Link to comment
Share on other sites

Well. After several days of normal operation, I experienced problems again today with the CSRF error. I disabled addons, but it made no difference. But, again, I could login using Firefox (I had been using Edge). Using FF, I removed any blocks from the front-end - still no joy. Only when (like before) did I delete the cookies for my site from Edge could I login.

I've re-enabled everything except for one small change and will see what happens. Again, I have not updated the core or any add-ons - it is the inconsistency which is frustrating. And why does this apparently only affect Edge or (or its stored cookies my my site)?

Link to comment
Share on other sites

Hi @Marc Stridgen. I understand.

I keep being logged out every so often. Though, it would seem, only with Edge (with subsequent CSRF error too). I was logged with Edge and Firefox at the same time - my FF session so far is unaffected.

Edited by Como
Link to comment
Share on other sites

I've been logged out of FF too. This time, I took a closer look at something which occurred with an earlier login, and now again. When I login, I receive a PM notification, but it is from the 4th Feb. This has happened with both browsers. I presume the cause is connected with me being repeatedly logged out.

Link to comment
Share on other sites

The only option here at present would be to run default for a while to see if its still happening. I realise that the situation there would mean a stock theme for quite a while for your members, however there really isnt any other way you are going to find the issue, and it does seem to be just for you unfortunately

Link to comment
Share on other sites

Thanks, @Marc Stridgen

There is an extra complication as one of the bespoke addons improves privacy for members. I cannot simply disable this. So, I'll have change permissions so that guests and search engines cannot access any content. I really wished to avoid this. And, given Google's de-listing policies, I cannot run the site like this for long.

Link to comment
Share on other sites

FYI… if it’s a privacy plugin, there is a reasonable chance it is doing stuff with sessions that could be causing the issue. 

I don’t know the plugin and I don’t know your install, but if it were me… I would personally start my troubleshooting with things that have the potential to play with sessions, session tracking, or activity state change. 

Link to comment
Share on other sites

Hi @Randy Calvert

The plugin just obfuscates (partially redacts) usernames. It does not - as far as I know - act on sessions.

It looks like I will have go to stock code except for this plugin. If the problem persists, then I'll have no choice but to change access permissions for every part of the community, and for a maximum of 24 hours to avoid content being de-listed.

Edited by Como
Link to comment
Share on other sites

24 minutes ago, DawPi said:

I know. 😉

That mod do not touching anything related to sessions etc.

As I expected. But good to have it confirmed. 😉

I'll probably properly test out the platform tomorrow.

Link to comment
Share on other sites

Last Thursday evening, I switch my own account to the IPS theme. Although I have done nothing to theme except add a little CSS, and added the Trim Empty Lines plugin, I thought it worth a try. I was still logged out a little later.

However, I was not logged out when I returned Friday morning. And I have not been logged out since. I am at a loss to explain this. Of course, the intermittent nature of this makes determining the cause almost impossible.

And there was nothing in the logs corresponding with the logouts.

Link to comment
Share on other sites

Hi @Marc Stridgen

I've been logged out 2-3 times today. This is much less than last week (and no problems Friday through Monday). Nothing in the error logs.

I also have a general problem where the initial login attempt fails, and I can only login at the /login page. But, today, I could login at my first attempt. What I did not mention last week is that I would receive occasional notifications which are way out of date. I've now been logged in again for a few hours without being logged out. All these problems seem session-related to me. And happen in two different browsers, and even on a different computer.

I've made no changes. The intermittent nature of these problems makes no sense to me.

Edited by Como
Link to comment
Share on other sites

11 hours ago, Jim M said:

Do you have any browser extensions installed which may be deleting cookies? Whether intentionally or not. 

I make very little use of extensions. I can (and will) disable what I have (even though none obviously affect cookies). However, since this occurs in two different browsers, and at the same time, this seems highly unlikely.

Link to comment
Share on other sites

I have a member having a similar problem where they're constantly getting logged out. They're using Firefox as well, and they're on Rodgers Internet.

Before are my enabled plugins and applications if you want to see if there's any overlap.

Applications:

- Topic Thumbnails

- Font Awesome 6

- Antispam by Cleantalk

Plugins:

- Delete all system logs button

- Legend News

- Live Topics

Edited by FanClub Mike
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...