Welcome to the LimeSurvey Community Forum

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

The CSRF token could not be verified

More
4 years 7 months ago - 4 years 7 months ago #188719 by JackAttack
Replied by JackAttack on topic The CSRF token could not be verified
I am using the latets version limesurvey3.17.16

I am running a shell script which was used with an older limesurvey version which should delete a specific survey and import it again. so to say reset it

I get severals "HTTP request sent, awaiting response... 400 Bad Request" responses but the output then is "400: bad request - The CSRF token could not be verified"

I can send you the link to the php file which then executes the shell script

edit: maybe the error is in the shell line 'IN=$(grep "\"YII_CSRF_TOKEN\"" login.rsp)' ?

edit2: still get the same error but here are some options to disable CSRF or set a CSRF cookie but still no difference manual.limesurvey.org/Optional_settings
Last edit: 4 years 7 months ago by JackAttack. Reason: how to cope with that?
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
4 years 7 months ago #188727 by Mazi
Replied by Mazi on topic The CSRF token could not be verified
Sorry, but it is nearly impossible for us to help with custom coded scripts. There can be a dozen reasons why this fails.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
More
4 years 7 months ago #188734 by JackAttack
Replied by JackAttack on topic The CSRF token could not be verified
I found out that the 'grep' command is not available at my host. so it has nothing to do with LimeSurvey. thanks anyways for your offer

I will come back if I need further help
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose