Welcome to the LimeSurvey Community Forum

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

error messages when restarting survey

  • SarcoidosisUK
  • SarcoidosisUK's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #190446 by SarcoidosisUK
error messages when restarting survey was created by SarcoidosisUK
Hi.

Users on my survey are receiving one of two errors when they reload the survey (via a 'restart the survey' link on the last page): 1. Session expired or 2. 400: Bad request. Screenshots attached. I have been unable to replicate the issue. They have tested on multiple devices and browsers and have the same errors.

Survey: www.sarcoidosisuk.org/survey/
Version 3.19.3+191023

Help appreciated with this.

Many thanks,
Jack
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #190454 by DenisChenu
Replied by DenisChenu on topic error messages when restarting survey
Seems you have another system maybe with login part etc …

Then best : separate the 2 system.

This can be done using config.php
manual.limesurvey.org/Optional_settings#Session_settings

In my opinion :
1. Give a specific SessionName
2. Put the 2 cookies on 'path' => '/survey/',

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.
  • SarcoidosisUK
  • SarcoidosisUK's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #190456 by SarcoidosisUK
Replied by SarcoidosisUK on topic error messages when restarting survey
Hi Denis,

Thanks for your speedy reply and for identifying the issue. Can you please provide some more information on the problem and how to fix it. I have had a look at the link you sent and the related documentation but am not at all experienced in this and do not understand. I don't want to cause more issues!

Thanks,
Jack
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #190470 by tpartner
Replied by tpartner on topic error messages when restarting survey
Can you give more details on "a 'restart the survey' link on the last page"? What and where is that?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #190473 by DenisChenu
Replied by DenisChenu on topic error messages when restarting survey
I‘m unsure it was the issue,

But :
You can update your generated config.php file
And approximately here : github.com/LimeSurvey/LimeSurvey/blob/c3...sample-mysql.php#L52

Adding something like this1
Code:
'session' => array (
            'sessionName' => "LimeSurveyN1",
            'cookieParams' => array(
                'path' => '/survey/',
            ),
        ),
       'request' => array(
            'csrfCookie' => array( 
                'path' => '/survey/',
            )
        ),
I can't give more detail …

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.
More
4 years 4 months ago #190516 by jelo
Replied by jelo on topic error messages when restarting survey

SarcoidosisUK wrote: Users on my survey are receiving one of two errors when they reload the survey (via a 'restart the survey' link on the last page)

Users or respondents? User with a login into LimeSurvey to design and conduct surveys?
Or only respondents?

If they are just respondents, are they using other webapps on your websites?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • SarcoidosisUK
  • SarcoidosisUK's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #190536 by SarcoidosisUK
Replied by SarcoidosisUK on topic error messages when restarting survey
Hi Tony.
In the survey end message there is a URL to restart the survey embedded in text. Link is: sarcoidosisuk.org/survey/index.php/767447?lang=en
I hope that helps.
Thanks
The topic has been locked.
  • SarcoidosisUK
  • SarcoidosisUK's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #190538 by SarcoidosisUK
Replied by SarcoidosisUK on topic error messages when restarting survey
Apologies - I am talking about respondents. As a user I do not receive the same errors.
I'm not aure if they are using other webapps. Does this include any installations on the same server, i.e. our website and online shop?
Thanks
Jack
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago - 4 years 4 months ago #190543 by tpartner
Replied by tpartner on topic error messages when restarting survey
Try adding the newtest parameter to the URL to enforce a new survey.

Code:
example.org/survey/index.php/767447?lang=en&newtest=Y

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 4 months ago by tpartner.
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose