Jump to content

CSRF Error on unpublishing


cjx2240
 Share

Recommended Posts

Hi

I've just inherited a ProcessWire site built by someone else and I'm hitting an error when unpublishing a page. (The error appears like a js alert with "undefined" as the message)

In logs, I get the following:

URL: /login/page/?action=unpub&id=3769&render=json

Text: CSRF token does not match (in D:\sites\***\public_html\wire\modules\Process\ProcessPageList\ProcessPageList.module line 434)

Does anyone have any ideas? This happens locally and on the production server. I'm also hitting a lot of "Session appears to be forged" issues. Site is on ProcessWire 3.0.142

Thanks

Link to comment
Share on other sites

Hi @flydev ?? - thanks for the suggestions.

Actually this site is using Session Handler Database module but this pointed me towards that at least.

Removing that module fixes it (had to manually remove it because I got the "forged" CSRF exception when trying to uninstall it)

Not sure exactly why it was giving me grief with this particular site. I found another thread saying to change the sessions "data" column to mediumtext might solve this but it already was...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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