Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

error The CSRF token could not be verified

  • tboy
  • tboy's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 9 months ago #156284 by tboy
Hello,
I'm trying to add new a label set for a "menu dropdown" , 436 total rows .. when I click on "save" I receive this error

Bad Request

The CSRF token could not be verified.

The request could not be understood by the server due to malformed syntax. Please do not repeat the request without modifications.

If you think this is a server error, please contact the webmaster.

Is there a limitation or something like that , to adjust in php.ini ?

Thank you.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago #156293 by tpartner
Replied by tpartner on topic error The CSRF token could not be verified
I can't answer your question directly but I don't think any respondent will scroll through 400+ options in a drop-down. I would search this forum for "autocomplete " or look for another solution.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • tboy
  • tboy's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 9 months ago #156297 by tboy
I'm trying to understand whether there is something wrong in my list... but it doesn't seems so..
I've tried to add a restrict number of rows until the error appears again... it seems that my dropdown accept at most 330 rows.. if I add 331 rows and try to "save" my list, the error appears again.
Very strange, isn't it ?
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
6 years 9 months ago #156300 by LouisGac
Replied by LouisGac on topic error The CSRF token could not be verified
this sounds like a server configuration problem. Change max post value, execution time, etc
see:
stackoverflow.com/questions/6135427/incr...he-maximum-post-size
The topic has been locked.
  • tboy
  • tboy's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 9 months ago #156310 by tboy
ok,
I've added those lines on my /var/www/html/.../.htaccess

php_value session.gc_maxlifetime 10800
php_value max_input_time 10800
php_value max_execution_time 10800
php_value upload_max_filesize 110M
php_value post_max_size 120M

then stop/start httpd
Thank you very much
The following user(s) said Thank You: LouisGac, igorzeng
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose