Error: Website cannot be reached / CSRF token could not be verified

Plus d'informations
il y a 2 mois 3 semaines #182488 par ultimatte
Dear all,

I updated my Limesurvey version (2.??) to version 3.16 through ComfortUpdate. At the same time I changed my PHP version first to 5.6, then to 7.1.

Unfortunately, since then, at various occasions and on different Limesurvey sites, i.e. surveys and configuration, I cannot reach Limesurvey and receive separately the two above-mentioned errors:
Website cannot be reached
CSRF token could not be verified

Subsequently, I have to refresh the site several times to access it.
Usually, then, it works fine and I cannot reproduce the error.

My server provider says that they cannot find any problems with the server and it works fine for everybody else.

Do you have an idea and could you please help me?
Thanks a lot,
Daniel

MySQL version is 5.7.21
mbstring is enabled
LS 3.16

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 2 mois 3 semaines #182493 par jelo
What kind of hosting is used? Can you post the phpinfo() here? The PHP change might have changed the session paths and sessions are mixed up or deleted.

Check the cookie values in your browser too.

You might just need to change the LimeSurvey config a bit.
You can find some settings here:
manual.limesurvey.org/Optional_settings#Other_sessions_update

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 mois 3 semaines #182501 par ultimatte
Thank you for your reply.

Please, find the phpinfo attached.

I think it is shared hosting but I am not familiar with hosting types, I am sorry :/

Could you please tell me how I can fix the session paths and mixed-up sessions or can you recommend changes that I should make to config.php?

Thank you very much,
Daniel
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 mois 3 semaines #182502 par jelo
Looks like an All-Inkl Hostingpackage on a shared server with a shared session folder.

So it might help, to give your LimeSurvey session a special name.

// Set the name of the session
'session' => array (
'sessionName' => "DeinSessionName,
),

The manual (German is not offering complete translation) tells you how to change the config.php (Always have a backup of config.php).
manual.limesurvey.org/Optional_settings/...itzungseinstellungen


BTW: LimeSurvey is run under php-fpm, some settings in htaccess no longer work.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 mois 3 semaines #182511 par ultimatte
Thank you.

The code produced an error so I changed it and added:
// Set the name of the session
'session' => array(
'sessionName' => 'DeinSessionName',
),
to this part:
*/
return array(
'components' => array(

Hope that's correct :D And I will test it.

Thanks a lot,
Daniel

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 mois 3 semaines #182761 par ultimatte
FYI
It seems that this has solved the problem :)
Thank you very much

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 mois 3 semaines #182778 par jelo

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!