Welcome to the LimeSurvey Community Forum

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

get_session_key throws exception

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #199583 by DenisChenu
Replied by DenisChenu on topic get_session_key throws exception
Maybe i made error in my config.php (not closed ) or a , ).

BUt since you are a PHP dev, i think you know how to fix.

Else : here : server issue , not LS issue …

www.php.net/manual/function.require-once.php

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • debrota
  • debrota's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #199603 by debrota
Replied by debrota on topic get_session_key throws exception
I somehow damaged my LimeSurvey installation and had to do a reinstallation to get it functioning again. I still can't get get_session_key to work. Here's what I get:

Fatal error: Uncaught Exception: Unable to connect to debrota.com/limesurvey/index.php/admin/remotecontrol in /homepages/10/dxxxxxxxxxx/htdocs/debrota/limesurvey/application/libraries/jsonRPCClient.php:145 Stack trace: #0 /homepages/10/dxxxxxxxxx/htdocs/debrota/limesurvey/admin/addLSparticipant.php(24): jsonRPCClient->__call('get_session_key', Array) #1 {main} thrown in /homepages/10/dxxxxxxxxx/htdocs/debrota/limesurvey/application/libraries/jsonRPCClient.php on line 145
The topic has been locked.
  • debrota
  • debrota's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #199608 by debrota
Replied by debrota on topic get_session_key throws exception
Small bit of progress... I now see an application.log file in limesurvey/tmp/runtime:

2020/05/19 19:00:51 [error] [exception.CHttpException.400] CHttpException: The CSRF token could not be verified. in /homepages/10/dxxxxxxxxxx/htdocs/debrota/limesurvey/framework/web/CHttpRequest.php:1378
Stack trace:
#0 /homepages/10/dxxxxxxxxx/htdocs/debrota/limesurvey/framework/base/CComponent.php(561): CHttpRequest->validateCsrfToken(Object(CEvent))
#1 /homepages/10/dxxxxxxxxx/htdocs/debrota/limesurvey/framework/base/CApplication.php(212): CComponent->raiseEvent('onbeginrequest', Object(CEvent))
#2 /homepages/10/dxxxxxxxxx/htdocs/debrota/limesurvey/framework/base/CApplication.php(183): CApplication->onBeginRequest(Object(CEvent))
#3 /homepages/10/dxxxxxxxxx/htdocs/debrota/limesurvey/index0.php(182): CApplication->run()
#4 {main}
REQUEST_URI=/limesurvey/index0.php/admin/authentication/sa/login
HTTP_REFERER=http://debrota.com/limesurvey/index0.php/admin/authentication/sa/login
---

Can somebody suggest how I can get past this error?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #199617 by DenisChenu
Replied by DenisChenu on topic get_session_key throws exception
I just check : no issue for me in 4.2.4.

CRSF issue must be avoided by internal.php part …
github.com/LimeSurvey/LimeSurvey/blob/cd...ternal.php#L134-L137

I didn't have more idea

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose