Validation error, please try again. If this error persists, please contact the site administrator.
caelan - June 26, 2009 - 15:00
| Project: | Drupal |
| Version: | 6.12 |
| Component: | page.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
every time i try to create content or change current content i get the error "Validation error, please try again. If this error persists, please contact the site administrator." what is the cause/fix of this

#1
I believe this is a browser cache issue. Make sure you don't click back and try to change the form, instead, go back then refresh, or click on the edit tab.
#2
Are you using Suhosin to protect your PHP environment?
I was, and I got this error message whenever I tried to submit a complex page (permissions/large menu etc.etc.)
I changed the suhosin.post.max_vars to 1000 (it's in the suhosin.ini file in the conf.d folder for php (normally /etc/php5/conf.d )
This appears to NOT be a Drupal bug, just the security on your server being over enthusiastic.
#3
Another place where Drupal and suhosin don't get along so well is in array depth. I generally set max_vars and max_array_depth to 512.
#4
#240828: "Validation error, please try again..." is terrible UI and confuses users (among others)
#5
Thanks elvis2! You solved my problem. I was getting this error trying to save changes to a block, and most instances of this issue referred to Suhosin, so I was in a panic since I'm using shared hosting and can't change those variables.
But your post made me realize that I had loaded the block editing page in my browser yesterday, so caching seemed a likely problem. I reloaded the page and pasted my changes back in and, voila, problem solved.