- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Error when adding question to new group
- ndnalibi
- Topic Author
- Offline
- New Member
Less
More
3 years 8 months ago #202977
by ndnalibi
Error when adding question to new group was created by ndnalibi
I have a user reporting the following error when she tries to add a question to a new group. I am able to dublicate the problem on Chrome and Firefox. I do not see any errors in the error_log or access_log. I am running Limesurvey 4.3.2+200629 on RHEL 7 with apache 2.4.6 and php 7.2.31
Any idea what could be happening?
Notice: Unknown: file created in the system's temporary directory in Unknown on line 0
Warning: Cannot modify header information - headers already sent in Unknown on line 0
{"success":false,"message":"The CSRF token could not be verified.","error":{"code":400,"type":"CHttpException","errorCode":0,"message":"The CSRF token could not be verified.","file":"\/var\/www\/html\/limesurvey\/framework\/web\/CHttpRequest.php","line":1378,"trace":"#0 \/var\/www\/html\/limesurvey\/framework\/base\/CComponent.php(561): CHttpRequest->validateCsrfToken(Object(CEvent))\n#1 \/var\/www\/html\/limesurvey\/framework\/base\/CApplication.php(212): CComponent->raiseEvent('onbeginrequest', Object(CEvent))\n#2 \/var\/www\/html\/limesurvey\/framework\/base\/CApplication.php(183): CApplication->onBeginRequest(Object(CEvent))\n#3 \/var\/www\/html\/limesurvey\/index.php(182): CApplication->run()\n#4 {main}","traces":[{"file":"\/var\/www\/html\/limesurvey\/framework\/base\/CComponent.php","line":561,"function":"validateCsrfToken","class":"CHttpRequest","type":"->","args":[{"sender":{"defaultController":"surveys","layout":"main","controllerMap":[],"catchAllRequest":null,"controllerNamespace":null,"name":"LimeSurvey","charset":"UTF-8","sourceLanguage":"en_us","localeClass":"LSYii_Locale","preload":["log"],"behaviors":[]},"handled":false,"params":null}]},{"file":"\/var\/www\/html\/limesurvey\/framework\/base\/CApplication.php","line":212,"function":"raiseEvent","class":"CComponent","type":"->","args":["onbeginrequest",{"sender":{"defaultController":"surveys","layout":"main","controllerMap":[],"catchAllRequest":null,"controllerNamespace":null,"name":"LimeSurvey","charset":"UTF-8","sourceLanguage":"en_us","localeClass":"LSYii_Locale","preload":["log"],"behaviors":[]},"handled":false,"params":null}]},{"file":"\/var\/www\/html\/limesurvey\/framework\/base\/CApplication.php","line":183,"function":"onBeginRequest","class":"CApplication","type":"->","args":[{"sender":{"defaultController":"surveys","layout":"main","controllerMap":[],"catchAllRequest":null,"controllerNamespace":null,"name":"LimeSurvey","charset":"UTF-8","sourceLanguage":"en_us","localeClass":"LSYii_Locale","preload":["log"],"behaviors":[]},"handled":false,"params":null}]},{"file":"\/var\/www\/html\/limesurvey\/index.php","line":182,"function":"run","class":"CApplication","type":"->","args":[]}]}}
Any idea what could be happening?
Notice: Unknown: file created in the system's temporary directory in Unknown on line 0
Warning: Cannot modify header information - headers already sent in Unknown on line 0
{"success":false,"message":"The CSRF token could not be verified.","error":{"code":400,"type":"CHttpException","errorCode":0,"message":"The CSRF token could not be verified.","file":"\/var\/www\/html\/limesurvey\/framework\/web\/CHttpRequest.php","line":1378,"trace":"#0 \/var\/www\/html\/limesurvey\/framework\/base\/CComponent.php(561): CHttpRequest->validateCsrfToken(Object(CEvent))\n#1 \/var\/www\/html\/limesurvey\/framework\/base\/CApplication.php(212): CComponent->raiseEvent('onbeginrequest', Object(CEvent))\n#2 \/var\/www\/html\/limesurvey\/framework\/base\/CApplication.php(183): CApplication->onBeginRequest(Object(CEvent))\n#3 \/var\/www\/html\/limesurvey\/index.php(182): CApplication->run()\n#4 {main}","traces":[{"file":"\/var\/www\/html\/limesurvey\/framework\/base\/CComponent.php","line":561,"function":"validateCsrfToken","class":"CHttpRequest","type":"->","args":[{"sender":{"defaultController":"surveys","layout":"main","controllerMap":[],"catchAllRequest":null,"controllerNamespace":null,"name":"LimeSurvey","charset":"UTF-8","sourceLanguage":"en_us","localeClass":"LSYii_Locale","preload":["log"],"behaviors":[]},"handled":false,"params":null}]},{"file":"\/var\/www\/html\/limesurvey\/framework\/base\/CApplication.php","line":212,"function":"raiseEvent","class":"CComponent","type":"->","args":["onbeginrequest",{"sender":{"defaultController":"surveys","layout":"main","controllerMap":[],"catchAllRequest":null,"controllerNamespace":null,"name":"LimeSurvey","charset":"UTF-8","sourceLanguage":"en_us","localeClass":"LSYii_Locale","preload":["log"],"behaviors":[]},"handled":false,"params":null}]},{"file":"\/var\/www\/html\/limesurvey\/framework\/base\/CApplication.php","line":183,"function":"onBeginRequest","class":"CApplication","type":"->","args":[{"sender":{"defaultController":"surveys","layout":"main","controllerMap":[],"catchAllRequest":null,"controllerNamespace":null,"name":"LimeSurvey","charset":"UTF-8","sourceLanguage":"en_us","localeClass":"LSYii_Locale","preload":["log"],"behaviors":[]},"handled":false,"params":null}]},{"file":"\/var\/www\/html\/limesurvey\/index.php","line":182,"function":"run","class":"CApplication","type":"->","args":[]}]}}
The topic has been locked.
- ndnalibi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
3 years 8 months ago #203033
by ndnalibi
Replied by ndnalibi on topic Error when adding question to new group
In the course of troubleshooting this, I now have the errors down to these two but questions still cannot be saved. However they can be imported.
Notice: Unknown: file created in the system's temporary directory in Unknown on line 0
Warning: Cannot modify header information - headers already sent in Unknown on line 0
Here are the sources of the errors:
[Wed Jul 22 15:30:29.777389 2020] [php7:notice] [pid 2702] [client 192.168.150.61:5065] PHP Notice: Unknown: file created in the system's temporary directory in Unknown on line 0, referer: example.com/limesurvey/index.php/questio...ideMenuTab=structure
[Wed Jul 22 15:30:29.803632 2020] [php7:warn] [pid 2702] [client 192.168.150.61:5065] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0, referer: example.com/limesurvey/index.php/questio...ideMenuTab=structure
[Wed Jul 22 15:35:18.279910 2020] [php7:notice] [pid 3057] [client 192.168.150.61:5120] PHP Notice: Unknown: file created in the system's temporary directory in Unknown on line 0, referer: example.com/limesurvey/index.php/questio...ideMenuTab=structure
[Wed Jul 22 15:35:18.301910 2020] [php7:warn] [pid 3057] [client 192.168.150.61:5120] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0, referer: example.com/limesurvey/index.php/questio...ideMenuTab=structure
Notice: Unknown: file created in the system's temporary directory in Unknown on line 0
Warning: Cannot modify header information - headers already sent in Unknown on line 0
Here are the sources of the errors:
[Wed Jul 22 15:30:29.777389 2020] [php7:notice] [pid 2702] [client 192.168.150.61:5065] PHP Notice: Unknown: file created in the system's temporary directory in Unknown on line 0, referer: example.com/limesurvey/index.php/questio...ideMenuTab=structure
[Wed Jul 22 15:30:29.803632 2020] [php7:warn] [pid 2702] [client 192.168.150.61:5065] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0, referer: example.com/limesurvey/index.php/questio...ideMenuTab=structure
[Wed Jul 22 15:35:18.279910 2020] [php7:notice] [pid 3057] [client 192.168.150.61:5120] PHP Notice: Unknown: file created in the system's temporary directory in Unknown on line 0, referer: example.com/limesurvey/index.php/questio...ideMenuTab=structure
[Wed Jul 22 15:35:18.301910 2020] [php7:warn] [pid 3057] [client 192.168.150.61:5120] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0, referer: example.com/limesurvey/index.php/questio...ideMenuTab=structure
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10631
- Thank you received: 3696
3 years 8 months ago #203043
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Error when adding question to new group
Please file a bug report.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.