View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
05135Bug reportsSurvey takingpublic2011-05-07 20:47
Reportermedicnick Assigned Tomagiclko 
PrioritynormalSeveritypartial_block 
Status closedResolutionunable to reproduce 
Product Version1.91RC6 
Summary05135: Resume later email error
Description

A user pressed “resume later” and got the message "Error: Email failed, this may indicate a PHP Mail Setup problem on your server. Your survey details have still been saved, however you will not get an email with the details. You should note the \"name\" and \"password\" you just used for future reference." and got the pop-up "Your survey was successfully saved"

Token based invitations/reminder emails function correctly. The user was never asked for a username and password so the error message reference is ambiguous. The Saved_Control table does not contain a record of this users submission.

TagsNo tags attached.
Attached Files
BugReport05135.zip (137,483 bytes)
Bug heat6
Complete LimeSurvey version number (& build)10018
I will donate to the project if issue is resolvedNo
BrowserFF4
Database type & versionMSSQL R2
Server OS (if known)WIN 2008
Webserver software & version (if known)IIS7.5
PHP Version5.2.5
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

magiclko

magiclko

2011-04-28 20:40

reporter   ~14877

I can not reproduce this.
medicnick : Can you reproduce it? Is this happening with every user of the survey? Can you attach a sample survey or a link to the survey?

Thanks.

medicnick

medicnick

2011-04-29 06:20

reporter   ~14881

magiclko: Yes it is reproducible for me. I am attaching a zip with the survey exported and a screenshot from my machine. To reproduce, select one of the two choices for the first question, press next to get to the second group, then press resume later.

magiclko

magiclko

2011-04-29 19:56

reporter   ~14882

medicnick: Can you add "echo $maildebug;" after "$maildebug=$mail->ErrorInfo;" in function SendEmailMessage() in common_functions.php {without double quotes} (would be around line no. 4979) and tell me what additional errors/warnings do you get? Delete this line of code after you get (if any) error/warning. I am now able to reproduce this error message at top but in my case, it should appear there.

medicnick

medicnick

2011-04-29 20:53

reporter   ~14883

The error returned as:
Could not instantiate mail function.

magiclko

magiclko

2011-04-29 21:01

reporter   ~14884

Ok. And the message "Error: Email failed, this may indicate a PHP Mail Setup problem on your server. Your survey details have still been saved, however you will not get an email with the details. You should note the \"name\" and \"password\" you just used for future reference" appear every time or occasionally?

medicnick

medicnick

2011-04-29 21:03

reporter   ~14885

That message appears each time.

magiclko

magiclko

2011-04-29 21:15

reporter   ~14886

Ok. Well, this error generally comes up when your server has mail() function disabled. Its phpmailer way of saying that mail() is disabled or mail sever is not configured properly(if at all), not a bug in LS code. ;-)

medicnick

medicnick

2011-04-29 21:17

reporter   ~14887

This error does not occur when mailing users for new user or tokens, only inside a survey. ;-(

medicnick

medicnick

2011-04-29 21:23

reporter   ~14888

Also, in global settings the PHP (default) method is being used. Would that prove that the mail() function is working?

magiclko

magiclko

2011-04-29 21:26

reporter   ~14889

Strange! Ok, lemme have a look again.

magiclko

magiclko

2011-04-30 13:08

reporter   ~14890

medicnick : "This error does not occur when mailing users for new user or tokens, only inside a survey. ;-("

what exactly you mean by mailing user for new user? Are they able to register for your survey and get any email from you? Are you able to send tokens to any user? Is there any error message that appear at top or inside LS like "Email error" or "Email to <name><email> failed. Error message: .."?

"Also, in global settings the PHP (default) method is being used. Would that prove that the mail() function is working?"

No, it's just your preference that LS use PHP way to deal with emails. If you want to check if its working or not, you can try
"mail("youremail@domain.com", "Subject", "Message");" and see if some error appear at top!

medicnick

medicnick

2011-04-30 17:08

reporter   ~14891

magiclko: In the admin area of LS you can create a new user. It then sends an email to that new user. There are no error messages.

After creating tokens in a survey I am able to send invites and reminders without any error messages here either.

I submitted this as a bug because the email seems to be a problem only when using the resume later feature.

magiclko

magiclko

2011-04-30 19:33

reporter   ~14892

medicnick : I just tested your survey both on my local machine(once again) and on one of my client's hosting space ;) And i can't reproduce the same situation as you are facing. On my local machine, all the times(sending tokens,registering,taking survey) i got same error as you got("Could not instantiate mail function" coz i haven't configured it). On other hosting space, i didn't get any error in all three cases.

c_schmitz

c_schmitz

2011-05-06 18:25

administrator   ~14944

Well, the question is why the 'New user email' sending works and the 'Save survey' email sending does not. magiclko, you should compare both function calls and check out what might be different.

magiclko

magiclko

2011-05-06 22:08

reporter   ~14949

medicnick : Have you set different email addresses in this survey settings and global settings?

medicnick

medicnick

2011-05-07 04:24

reporter   ~14951

magiclko: no, I use the same account/settings in both locations.

c_schmitz

c_schmitz

2011-05-07 08:03

administrator   ~14952

medicnick, are you sure you set the same email address in the survey setttings as the one in the global settings? If not please do and try again. There is no other difference than that.

medicnick

medicnick

2011-05-07 19:05

reporter   ~14955

magiclko and c_schmitz: following the recent updates to database, browse, and other files I've updated my install to build 10041 and this bug has been resolved! I do not know for sure which update fixed it but it was one of the changes in the last two weeks. I really appreciate your time and efforts!

Issue History

Date Modified Username Field Change
2011-04-27 08:11 medicnick New Issue
2011-04-28 15:08 c_schmitz Assigned To => magiclko
2011-04-28 15:08 c_schmitz Status new => assigned
2011-04-28 20:40 magiclko Note Added: 14877
2011-04-28 20:41 magiclko Status assigned => feedback
2011-04-29 06:20 medicnick File Added: BugReport05135.zip
2011-04-29 06:20 medicnick Note Added: 14881
2011-04-29 06:20 medicnick Status feedback => assigned
2011-04-29 19:56 magiclko Note Added: 14882
2011-04-29 20:53 medicnick Note Added: 14883
2011-04-29 21:01 magiclko Note Added: 14884
2011-04-29 21:03 medicnick Note Added: 14885
2011-04-29 21:15 magiclko Note Added: 14886
2011-04-29 21:17 medicnick Note Added: 14887
2011-04-29 21:23 medicnick Note Added: 14888
2011-04-29 21:26 magiclko Note Added: 14889
2011-04-30 13:08 magiclko Note Added: 14890
2011-04-30 17:08 medicnick Note Added: 14891
2011-04-30 19:33 magiclko Note Added: 14892
2011-05-01 18:31 magiclko Assigned To magiclko => c_schmitz
2011-05-06 18:24 c_schmitz Assigned To c_schmitz => magiclko
2011-05-06 18:25 c_schmitz Note Added: 14944
2011-05-06 22:08 magiclko Note Added: 14949
2011-05-07 04:24 medicnick Note Added: 14951
2011-05-07 08:03 c_schmitz Note Added: 14952
2011-05-07 19:05 medicnick Note Added: 14955
2011-05-07 20:47 c_schmitz Status assigned => closed
2011-05-07 20:47 c_schmitz Resolution open => unable to reproduce