View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17320 | Bug reports | Survey editing | public | 2021-05-22 04:26 | 2021-05-23 22:38 |
Reporter | jrromanow | Assigned To | ollehar | ||
Priority | none | Severity | block | ||
Status | closed | Resolution | no change required | ||
Product Version | 4.5.x | ||||
Summary | 17320: Unable to edit email templates | ||||
Description | We are suddenly unable to update email templates. After pressing the Save button on the Edit email templates page, the page repaints with the old template contents. This occurs in LimeSurvey versions 4.6.3 and 3.17.1. Our webhost has recently updated the PHP version on our servers. This problem occurs with PHP versions 7.2 and 7.4. I have done some debugging and discovered that when execution gets to the update() function in emailtemplates.php line 120, $sSaveMethod is set to the empty string so that the if statement on line 121 returns false. Further investigation shows that $_POST (referenced many times in the function) is an empty array. The browser debugger shows that the form data being posted includes the contents of all the editors, a save with the value 'save', action with the value 'token' and language with the value 'en'. | ||||
Steps To Reproduce | All surveys in both of our installations now exhibit this problem, many of which are 3 years old and worked properly when created. Just change an email template editor's contents and hit the Save button. | ||||
Tags | No tags attached. | ||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 4.6.3+210518, 3.17.1+190408 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Firefox 88.0.1 (64 bit), Edge 90.0.818.62 (64-bit) | ||||
Database type & version | MySQL 5.7.28 | ||||
Server OS (if known) | Ubuntu 18.04.4 | ||||
Webserver software & version (if known) | Apache | ||||
PHP Version | 7.2, 7.4 | ||||
Can you enable debug = 2 in application/config/config.php and try again, please? Paste the complete error message here, if any. |
|
If this happened for all your installation at once, maybe it's more related to server config? |
|
There was no indication of error when I turned on the debug flag -- emailtemplate.php only looked for the "save" value and terminated processing if it was not there. But I have worked with the server support staff and discovered it is a problem with the server security scan -- it objects to requests containing "http;//" in the form data. I'm working with them now to abate this problem. You may close this from your end. Sorry for the false alarm. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2021-05-22 04:26 | jrromanow | New Issue | |
2021-05-22 04:26 | jrromanow | Issue Monitored: jrromanow | |
2021-05-22 12:26 | ollehar | Assigned To | => ollehar |
2021-05-22 12:26 | ollehar | Status | new => feedback |
2021-05-22 12:26 | ollehar | Note Added: 64512 | |
2021-05-22 12:27 | ollehar | Note Added: 64513 | |
2021-05-22 23:52 | jrromanow | Note Added: 64518 | |
2021-05-22 23:52 | jrromanow | Status | feedback => assigned |
2021-05-23 01:30 | jrromanow | Issue End Monitor: jrromanow | |
2021-05-23 22:38 | ollehar | Status | assigned => closed |
2021-05-23 22:38 | ollehar | Resolution | open => no change required |