I have a form that I am using in a block that was generating the error:
Validation error, please try again. If this error persists, please contact the site administrator
Doing some research shows that it is to do with $session mismatches with the form token that cause this error.
Further to this I noticed that a default value I was using from the $user variable wasn't updating when I changed login.
Both of these together led me to the realisation that my block was being cached (confirmed by debugging and seeing that my form builder function was only being called after I cleared caches) so I changed caching of my block to
I am still getting the error and my $user isn't updating. Any ideas?