View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05135 | Bug reports | Survey taking | public | 2011-04-27 08:11 | 2011-05-07 20:47 |
| Reporter | medicnick | Assigned To | |||
| Priority | normal | Severity | partial_block | ||
| Status | closed | Resolution | unable to reproduce | ||
| Product Version | 1.91RC6 | ||||
| Summary | 05135: 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. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | 10018 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | FF4 | ||||
| Database type & version | MSSQL R2 | ||||
| Server OS (if known) | WIN 2008 | ||||
| Webserver software & version (if known) | IIS7.5 | ||||
| PHP Version | 5.2.5 | ||||
| Git branch / Pull Request URL | |||||
|
I can not reproduce this. Thanks. |
|
|
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. |
|
|
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. |
|
|
The error returned as: |
|
|
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? |
|
|
That message appears each time. |
|
|
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. ;-) |
|
|
This error does not occur when mailing users for new user or tokens, only inside a survey. ;-( |
|
|
Also, in global settings the PHP (default) method is being used. Would that prove that the mail() function is working? |
|
|
Strange! Ok, lemme have a look again. |
|
|
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 |
|
|
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. |
|
|
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. |
|
|
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. |
|
|
medicnick : Have you set different email addresses in this survey settings and global settings? |
|
|
magiclko: no, I use the same account/settings in both locations. |
|
|
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. |
|
|
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! |
|
| 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 |
|
Note Added: 14877 | |
| 2011-04-28 20:41 |
|
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 |
|
Note Added: 14882 | |
| 2011-04-29 20:53 | medicnick | Note Added: 14883 | |
| 2011-04-29 21:01 |
|
Note Added: 14884 | |
| 2011-04-29 21:03 | medicnick | Note Added: 14885 | |
| 2011-04-29 21:15 |
|
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 |
|
Note Added: 14889 | |
| 2011-04-30 13:08 |
|
Note Added: 14890 | |
| 2011-04-30 17:08 | medicnick | Note Added: 14891 | |
| 2011-04-30 19:33 |
|
Note Added: 14892 | |
| 2011-05-01 18:31 |
|
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 |
|
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 |