Survey submission is excruciatingly slow

More
1 year 11 months ago #173336 by jnuneziglesias
Hi all,

I'm having trouble with a survey instance I've installed on a VM. Everything is working great, but when I (or users) click "Submit", there is a good 10s+ pause until the confirmation page is shown. (Until then, it just scrolls to the top, which seems "broken".) I am using local MySQL as a backend.

1) any idea why this would be this slow?
2) is there any way to have a splash page, like the typical "don't press the back button" pages on some payment processors?

Thanks!

Juan.
The following user(s) said Thank You: mrli999

Please Log in to join the conversation.

More
1 year 11 months ago #173344 by tpartner
Have a look at this post which describes how to implement a modal spinner when clicking "Submit" - www.limesurvey.org/forum/design-issues/1...e-immediately#172405

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
1 year 11 months ago #173351 by jnuneziglesias
Thanks Tony! Just a quick Q, I added that code to a file custom.js under themes/survey/fruity/scripts/custom.js, (I'm using the fruity theme in my survey), but don't get a spinner. The file permissions are root/root, same as the (template custom.js file in the vanilla theme. Any ideas?

Please Log in to join the conversation.

More
1 year 11 months ago #173352 by jnuneziglesias
@jelo

> Create a one question survey and check again. Is the submit lag issue the same?

Good suggestion, thanks! I don't have time to try it now but will in the morning.

Please Log in to join the conversation.

More
1 year 11 months ago #173355 by tpartner
You should extend that theme and only modify files in the extended theme. You may need to reset the assets.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
1 year 11 months ago #173373 by jnuneziglesias
@jelo

I tried the test survey and it took a long time also. I'm not really sure what that means though!

Please Log in to join the conversation.

More
1 year 11 months ago #173374 by jnuneziglesias
@tpartner Ah, sure. However my hack above *should* have worked, shouldn't it? Despite the poor practice? I don't understand what "reset the assets" means here.

Please Log in to join the conversation.

More
1 year 11 months ago - 1 year 11 months ago #173380 by tpartner
The assets manager may not have reset the files in the /tmp directory. You should see a reset button for each theme in the themes screen.

Failing that, you can set debug =1 in /application/config/config.php. This will bypass the assets manager so all files are loaded from the theme directory.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 1 year 11 months ago by tpartner.

Please Log in to join the conversation.

More
1 year 11 months ago #173404 by jnuneziglesias
Thanks everyone for your help!

@tpartner, resetting the assets appears to have changed the behavior for the better. Now the browser appears to be loading the next page after hitting "submit", rather than just sending me back to the top of the survey. So, as far as I'm concerned, it's usable now. Thank you!

@jelo, the version is Version 3.14.5+180815. The dokuwiki site running on the same VM is fast enough, so it doesn't seem to be some Apache issue, for example. However now that the waiting time looks like regular browser load time, I'm happy enough not to pursue this further.

If anyone is motivated enough to actually figure out what's going on, I'm happy to discuss more in private. Thanks again!

Please Log in to join the conversation.

More
2 months 3 weeks ago #198918 by mrli999
I also came with this problem. My version is: 2.73.1+171220.

Does anyone know how to resolve this problem? Thanks.

Please Log in to join the conversation.

More
2 months 3 weeks ago #199019 by mrli999

mrli999 wrote: I also came with this problem. My version is: 2.73.1+171220.

Does anyone know how to resolve this problem? Thanks.


The problem was caused by the smtp account. My smtp account is not on the same server as the web site. It took some times to send email out using that smtp account. Thanks.

Please Log in to join the conversation.

More
2 months 3 weeks ago #199073 by holch
Yes, this is a problem. When the emails are not working properly, it can cause problems with the survey. Not sure if this problem has been solved in LS3 and LS4

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

More
2 months 3 weeks ago #199084 by DenisChenu
Using php mail can fix the issue,
And php mail use default server system, this one can use another smtp relay.

Seems to be difficult to send an email without waiting result , if you have advice on a how to do this.

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.

Please Log in to join the conversation.

More
2 months 3 weeks ago - 2 months 3 weeks ago #199086 by holch

Seems to be difficult to send an email without waiting result , if you have advice on a how to do this.

I don't know, but I would prefer the completion of the survey to be independent of the sending of the email. Yes, of course the email should be sent. But when there is an issue with email, I'd rather have at least the survey completed with no email sent than having no email sent and the survey not being finished.

So couldn't we trigger the email sending by submitting, but not require the survey to wait until this has happened to finalize? At least then we have the completed survey. Yes, we still have a problem with the email, but at least 50% of the "goal" is completed. In many cases the email sent is a nice to have and probably would count rather just 5-10% of what should be achieved and the survey completion is 90-95% of that goal.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Last edit: 2 months 3 weeks ago by holch.

Please Log in to join the conversation.

More
2 months 3 weeks ago #199094 by DenisChenu
For information : if you use php mail, it's really quick .
No control of done or not

And you can set your server use a SMTP relay …

So couldn't we trigger the email sending by submitting, but not require the survey to wait until this has happened to finalize?

Use php mail …

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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now