- Posts: 16
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
4 years 11 months ago #182488
by ultimatte
Error: Website cannot be reached / CSRF token could not be verified was created 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
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
4 years 11 months ago #182493
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Error: Website cannot be reached / CSRF token could not be verified
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
4 years 11 months ago #182501
by ultimatte
Replied by ultimatte on topic Error: Website cannot be reached / CSRF token could not be verified
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
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
Attachments:
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
4 years 11 months ago #182502
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Error: Website cannot be reached / CSRF token could not be verified
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.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
4 years 11 months ago #182511
by ultimatte
Replied by ultimatte on topic Error: Website cannot be reached / CSRF token could not be verified
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 And I will test it.
Thanks a lot,
Daniel
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 And I will test it.
Thanks a lot,
Daniel
The topic has been locked.
- ultimatte
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
4 years 11 months ago #182761
by ultimatte
Replied by ultimatte on topic Error: Website cannot be reached / CSRF token could not be verified
FYI
It seems that this has solved the problem
Thank you very much
It seems that this has solved the problem
Thank you very much
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
4 years 11 months ago #182778
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Error: Website cannot be reached / CSRF token could not be verified
You're welcome.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.