File upload: You don't have a valid session

More
3 years 10 months ago #104104 by joss
joss created the topic: File upload: You don't have a valid session
Limesurvey ver 1.92+

when using the survey on Chrome, everything works great.
When on any other browser the file upload function throws this message.

In debug mode no problems found.

Can anyone help?
Thanks

Please Log in to join the conversation.

More
3 years 10 months ago #104282 by joss
joss replied the topic: File upload: You don't have a valid session
Is there a solution to this issue?
Can someone please help?
Thanks

Please Log in to join the conversation.

More
3 years 10 months ago #104327 by DenisChenu
DenisChenu replied the topic: File upload: You don't have a valid session
In my old 1.92 version : it work without problem.

Maybe you have a bugged build of 1.92 : you can find 1.92 in our archived release : www.limesurvey.org/en/archived-releases

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 10 months ago #104656 by joss
joss replied the topic: File upload: You don't have a valid session
I installed a new 1.92 version in Demo url, copied the survey questions and everything worked ok.

When I moved the site from Demo to live url, I started getting the same message.

I only changed values at config.php ($rooturl and $database). Do I need to do more?

Thanks

Please Log in to join the conversation.

More
3 years 10 months ago - 3 years 10 months ago #104899 by DenisChenu
DenisChenu replied the topic: File upload: You don't have a valid session
Hi Joss,

Can you activate a simple survey with only ne upload question and give us the link ?

I think we can not have the same error on 2.00 version and up.

And:
- Can you give us the session part of your phpinof (you can access it via the 'general settings' menu).

Denis
PS: in this kinf of situation : mlaybe you can use DB session : look at your ./config.php and add this:
$sessionhandler     =  'db';

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 3 years 10 months ago by DenisChenu.

Please Log in to join the conversation.

More
3 years 9 months ago #104951 by joss
joss replied the topic: File upload: You don't have a valid session
Hello,
thank you for your interest.

Demo survey is
Demo.mundo.gr/applicationform/index.php?sid=98116&lang=en

The odd part is that it works on chrome.
I tried with $sessionhandler = 'db';
and I have the same results.

the session in phpinfo is:
Session Support	enabled
Registered save handlers	files user sqlite memcache
Registered serializer handlers	php php_binary wddx
 
Directive	Local Value	Master Value
session.auto_start	Off	Off
session.bug_compat_42	Off	Off
session.bug_compat_warn	On	On
session.cache_expire	180	180
session.cache_limiter	nocache	nocache
session.cookie_domain	no value	no value
session.cookie_httponly	Off	Off
session.cookie_lifetime	0	0
session.cookie_path	/	/
session.cookie_secure	Off	Off
session.entropy_file	no value	no value
session.entropy_length	0	0
session.gc_divisor	1000	1000
session.gc_maxlifetime	1440	1440
session.gc_probability	1	1
session.hash_bits_per_character	5	5
session.hash_function	0	0
session.name	PHPSESSID	PHPSESSID
session.referer_check	no value	no value
session.save_handler	files	files
session.save_path	/tmp	/tmp
session.serialize_handler	php	php
session.use_cookies	On	On
session.use_only_cookies	Off	Off
session.use_trans_sid	0	0

Please Log in to join the conversation.

More
3 years 9 months ago #104952 by DenisChenu
DenisChenu replied the topic: File upload: You don't have a valid session
You have a compte $_SESSION issue here : resume later give " We are sorry but your session has expired."

Did a 2 page survey work ?

Maybe best is to set $_SESSION in db. And i think you must contact your web hoster for $_SESSION files.
Add this in you config.php file:
$sessionhandler     =  'db';

And : you have an old version of LimeSurvey here ? Why not 2.00 and up version ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 9 months ago - 3 years 9 months ago #104953 by joss
joss replied the topic: File upload: You don't have a valid session
OK found some hint!

It works with default template.

So might be the problem that it works with /upload/templates/.. folder? OR there is something wrong with my template? The only thing I did is copy the "clear_logo" template.

Thanks

PS: I'm working for this survey a while now where I started it with 1.92 version. I didn't need to update till now
Last Edit: 3 years 9 months ago by joss.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!