Welcome to the LimeSurvey Community Forum

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

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

  • ultimatte
  • ultimatte's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 11 months ago #182488 by 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
The topic has been locked.
More
4 years 11 months ago #182493 by 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
The topic has been locked.
  • ultimatte
  • ultimatte's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 11 months ago #182501 by 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
The topic has been locked.
More
4 years 11 months ago #182502 by 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
The topic has been locked.
  • ultimatte
  • ultimatte's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 11 months ago #182511 by 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
The topic has been locked.
  • ultimatte
  • ultimatte's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 11 months ago #182761 by ultimatte
FYI
It seems that this has solved the problem :)
Thank you very much
The topic has been locked.
More
4 years 11 months ago #182778 by jelo
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose