View Issue Details

This bug affects 3 person(s).
 26
IDProjectCategoryView StatusLast Update
17632Bug reportsOtherpublic2022-01-05 09:37
Reporterdrodero Assigned Togabrieljenik  
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version3.25.19 
Summary17632: (v3.27.19) Basic and detailed admin notification email fails
Description

When you configure either basic or detailed admin notification email, the email you received is corrupted. In case of detailed, you don't recived the inputs of the user, and in case of basic notification, you received the same email. In both, the links to view/edit the answer don't "work"

Steps To Reproduce

Steps to reproduce

In any survey, set basic and detailed email notification with an email adress

Expected result

Basic: You received an email with valid links to edit the response
Detailed: You received the input of the user and an email with valid links to edit the response

Actual result

Basic: You received an email without any valid link to edit the response
Detailed: You received an email without any valid link to edit the response

TagsNo tags attached.
Attached Files
limesurvey_email_bug.png (29,364 bytes)   
limesurvey_email_bug.png (29,364 bytes)   
Bug heat26
Complete LimeSurvey version number (& build)3.27.19+210928
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5.7
Server OS (if known)Ubuntu 16
Webserver software & version (if known)
PHP Version7.4.18

Users monitoring this issue

aleixdorca

Activities

galads

galads

2021-09-29 09:40

reporter   ~66638

Hello,

It seems the placeholders were changed. Can you send the placeholder in your admin templates?

drodero

drodero

2021-09-29 10:24

reporter   ~66639

Last edited: 2021-10-04 09:32

Hello,

I haven't touched anything of the template (at least, consciously). Please, can you specify a bit more what I have to send?

Thanks!

galads

galads

2021-09-29 10:50

reporter   ~66640

Last edited: 2021-10-04 09:32

Please take a look at the manual https://manual.limesurvey.org/Email_templates#Basic_.26_Detailed_Admin_Notifications

drodero

drodero

2021-09-29 10:56

reporter   ~66641

Last edited: 2021-10-04 09:32

Thank you very much. Here you have:


Basic admin template:

Hello,

A new response was submitted for your survey '{SURVEYNAME}'.

Click the following link to reload the survey:
{RELOADURL}

Click the following link to see the individual response:
{VIEWRESPONSEURL}

Click the following link to edit the individual response:
{EDITRESPONSEURL}

View statistics by clicking here:
{STATISTICSURL}


Detail admin template:

Hello,

A new response was submitted for your survey '{SURVEYNAME}'.

Click the following link to reload the survey:
{RELOADURL}

Click the following link to see the individual response:
{VIEWRESPONSEURL}

Click the following link to edit the individual response:
{EDITRESPONSEURL}

View statistics by clicking here:
{STATISTICSURL}

The following answers were given by the participant:
{ANSWERTABLE}

ls.png (145,919 bytes)
galads

galads

2021-09-29 11:12

reporter   ~66642

Last edited: 2021-10-04 09:32

I cannot reproduce this issue you are reporting. It works perfectly for me. The email I get contains links to the response for example: https://xxx.limequery.com/admin/responses/sa/view/surveyid/181249/id/4

drodero

drodero

2021-09-29 11:23

reporter   ~66643

Last edited: 2021-10-04 09:32

The error happened when I updated to the latest build (Comfort Update). I have 403 active surveys. The problem happens with the current surveys and even if I create a new one. Can you give me any idea what to check?

Thanks!

Mazi

Mazi

2021-09-29 11:34

updater   ~66644

Last edited: 2021-10-04 09:32

@galads, we just faced the same issue at a system hosted at your cloud instance!

The solution was to re-set the email templates of all affected surveys which is quite a mess for large systems.

galads

galads

2021-09-29 11:44

reporter   ~66646

Last edited: 2021-10-04 09:32

Thank you @Mazi for confirming this issue. I think it happens after updates on the recent build. Thank you for reporting this issue.

drodero

drodero

2021-09-29 11:54

reporter   ~66647

Last edited: 2021-10-04 09:32

Hi @Mazi, how can I "re-set" the email templates? Thanks!

Mazi

Mazi

2021-09-29 12:06

updater   ~66649

Last edited: 2021-10-04 09:32

see screenshot, @drodero

image.png (131,162 bytes)
drodero

drodero

2021-10-04 14:03

reporter   ~66740

Thank you very much @Mazi

gabrieljenik

gabrieljenik

2021-10-07 15:52

manager   ~66799

Sorry, I can't reproduce the issue.
Email templates get corrupted after upgrading from which version?

Thanks!

Mazi

Mazi

2021-10-07 16:36

updater   ~66802

@gabrieljenik, we saw that at the cloud hosting, customer https://carlton.limequery.com/. They are now running Version 3.27.19. No idea what the previous version was.

galads

galads

2021-10-08 17:11

reporter   ~66815

Last edited: 2021-10-08 17:11

This happens on cloud hosting. Updating from 3.27.18 to the latest LTS.
I could reproduce it today.

gabrieljenik

gabrieljenik

2021-10-12 14:37

manager   ~66833

Last edited: 2021-10-12 14:38

I couldn't reproduce it on a regular LS installation.
Can I ask for instructions?

aleixdorca

aleixdorca

2021-10-14 18:07

reporter   ~66853

This happened to me as well. I have a regular LS installation. Most of the surveys in my environment are in Catalan, and this, I think, is important.

New and old surveys presented this problem because the catalan translation of the default basic and detailed admin notification emails include the RELOADURL field.

After hours going through the code I've noticed here https://manual.limesurvey.org/Email_templates#Basic_.26_Detailed_Admin_Notifications that the RELOADURL is no longer a valid email field. How this has changed in a LTS release is beyond my understanding.

As others have pointed, a workaround is to go through all the surveys and NOT ONLY reload the default email template (because in Catalan it still has the RELOADURL field) but reload the default template AND delete the offending field.

I believe this only happens in certain languages, while other translations don't have this problem.

Hope this helps.

gabrieljenik

gabrieljenik

2021-11-01 16:05

manager   ~67030

Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=32838

gabrieljenik

gabrieljenik

2021-11-04 00:16

manager   ~67082

PR for master: https://github.com/LimeSurvey/LimeSurvey/pull/2131

gabrieljenik

gabrieljenik

2021-11-05 09:38

manager   ~67127

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=32869

LimeBot

LimeBot

2022-01-05 09:37

administrator   ~67920

Fixed in Release 5.2.0+211110

Related Changesets

LimeSurvey: 3.x-LTS 90889587

2021-10-14 21:41:03

gabrieljenik

Details Diff
Fixed issue 17632: Basic and detailed admin notification email fails Affected Issues
17632
mod - application/helpers/expressions/em_core_helper.php Diff File
mod - application/helpers/expressions/em_manager_helper.php Diff File

LimeSurvey: 3.x-LTS e5ced862

2021-11-01 16:04:59

Ahmed Galad's


Committer: GitHub Details Diff
Merge pull request #2101 from gabrieljenik/bug/17632--Basic-and-detailed-admin-notification-email-fails

Fixed issue 17632: Basic and detailed admin notification email fails
Affected Issues
17632
mod - application/helpers/expressions/em_core_helper.php Diff File
mod - application/helpers/expressions/em_manager_helper.php Diff File

LimeSurvey: master 3b88a234

2021-11-05 09:36:20

gabrieljenik


Committer: GitHub Details Diff
Fixed issue 17632: Basic and detailed admin notification email fails (#2131)

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
Affected Issues
17632
mod - application/helpers/expressions/em_core_helper.php Diff File
mod - application/helpers/expressions/em_manager_helper.php Diff File

Issue History

Date Modified Username Field Change
2021-09-28 12:48 drodero New Issue
2021-09-28 12:48 drodero File Added: limesurvey_email_bug.png
2021-09-29 09:40 galads Note Added: 66638
2021-09-29 09:40 galads Bug heat 0 => 2
2021-09-29 09:40 galads Assigned To => galads
2021-09-29 09:40 galads Status new => feedback
2021-09-29 10:24 drodero Note Added: 66639
2021-09-29 10:24 drodero Bug heat 2 => 4
2021-09-29 10:24 drodero Status feedback => assigned
2021-09-29 10:50 galads Note Added: 66640
2021-09-29 10:51 galads Status assigned => feedback
2021-09-29 10:56 drodero Note Added: 66641
2021-09-29 10:56 drodero File Added: ls.png
2021-09-29 10:56 drodero Status feedback => assigned
2021-09-29 11:12 galads Note Added: 66642
2021-09-29 11:23 drodero Note Added: 66643
2021-09-29 11:34 Mazi Note Added: 66644
2021-09-29 11:34 Mazi Bug heat 4 => 6
2021-09-29 11:34 guest Bug heat 6 => 12
2021-09-29 11:44 galads Note Added: 66646
2021-09-29 11:44 galads Status assigned => confirmed
2021-09-29 11:54 drodero Note Added: 66647
2021-09-29 12:06 Mazi Note Added: 66649
2021-09-29 12:06 Mazi File Added: image.png
2021-10-04 09:32 galads Zoho Project Synchronization => |Yes|
2021-10-04 10:28 galads Assigned To galads => gabrieljenik
2021-10-04 10:28 galads Status confirmed => assigned
2021-10-04 14:03 drodero Note Added: 66740
2021-10-07 15:52 gabrieljenik Note Added: 66799
2021-10-07 15:52 gabrieljenik Bug heat 12 => 14
2021-10-07 16:36 Mazi Note Added: 66802
2021-10-08 17:11 galads Note Added: 66815
2021-10-08 17:11 galads Note Edited: 66815
2021-10-08 17:11 galads Note Edited: 66815
2021-10-12 14:37 gabrieljenik Note Added: 66833
2021-10-12 14:38 gabrieljenik Note Edited: 66833
2021-10-14 18:07 aleixdorca Note Added: 66853
2021-10-14 18:07 aleixdorca Bug heat 14 => 16
2021-10-16 10:49 guest Bug heat 16 => 22
2021-10-16 10:49 aleixdorca Issue Monitored: aleixdorca
2021-10-16 10:49 aleixdorca Bug heat 22 => 24
2021-11-01 16:05 Changeset attached => LimeSurvey 3.x-LTS e5ced862
2021-11-01 16:05 gabrieljenik Changeset attached => LimeSurvey 3.x-LTS 90889587
2021-11-01 16:05 gabrieljenik Note Added: 67030
2021-11-01 16:05 gabrieljenik Resolution open => fixed
2021-11-04 00:16 gabrieljenik Note Added: 67082
2021-11-05 09:38 gabrieljenik Changeset attached => LimeSurvey master 3b88a234
2021-11-05 09:38 gabrieljenik Note Added: 67127
2022-01-05 09:37 LimeBot Zoho Project Synchronization Yes => |Yes|
2022-01-05 09:37 LimeBot Note Added: 67920
2022-01-05 09:37 LimeBot Status assigned => closed
2022-01-05 09:37 LimeBot Bug heat 24 => 26