View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
11330Bug reportsSurvey participants (Tokens)public2016-06-21 12:17
Reporterakeyser Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionunable to reproduce 
Product Version2.50.x 
Summary11330: [2.5 and 2.06+] Email Invites using old values or null values for token attributes
Description

This is a tough one to really track down, but here's what I'm seeing:

If a token attribute is used in an e-mail template, sometimes the result is blank, sometimes it prints out an out-of-date value; both when used alone (e.g., {TOKEN:ATTRIBUTE_1} ) and when used as part of a function (e.g., {strtotime(TOKEN:ATTRIBUTE_1)} ).

After enough editing and saving of the token fields, the attribute will eventually update in the invitations. It's almost as if the e-mail template engine is using an internally cached value for the attribute that is either stale or may not be initialized yet (in the case of freshly added tokens or token attributes).

Surveys do not have this issue; they seem to update immediately if the token attribute is edited.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)160512(2.5) / 151018(2.06+)
I will donate to the project if issue is resolvedNo
BrowserGoogle Chrome 49
Database type & versionMySQL 5.6.27-log
Server OS (if known)Windows Server 2008 R2
Webserver software & version (if known)IIS 7.5
PHP Version5.6.14

Users monitoring this issue

There are no users monitoring this issue.

Activities

akeyser

akeyser

2016-06-02 20:04

reporter   ~39114

I did some more testing on this and it seems time-related; after a certain amount of time, the token attribute value used by the email template will update to the correct value. Cache related?

c_schmitz

c_schmitz

2016-06-07 11:42

administrator   ~39272

I cannot reproduce that at all with the latest 2.50 Build 160606

Please update and see if you can.
If you do please let us knw the exact steps how to reproduce the issue.
A small example survey a *.lsa file would be certainly helpful.

Issue History

Date Modified Username Field Change
2016-06-02 19:59 akeyser New Issue
2016-06-02 20:04 akeyser Note Added: 39114
2016-06-07 11:42 c_schmitz Note Added: 39272
2016-06-07 11:42 c_schmitz Assigned To => c_schmitz
2016-06-07 11:42 c_schmitz Status new => feedback
2016-06-21 12:17 LouisGac Status feedback => closed
2016-06-21 12:17 LouisGac Resolution open => unable to reproduce
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)