Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accounts & Contacts variables are not being parsed/populated by Email Template #5944

Closed
LuminisIndia opened this issue May 25, 2018 · 1 comment
Assignees
Labels
Area: Campaigns Issues & PRs related to all things regarding campaigns Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type:Bug Bugs within the core SuiteCRM codebase
Milestone

Comments

@LuminisIndia
Copy link

LuminisIndia commented May 25, 2018

I have created a target list containing contacts. Then set an email campaign which includes this target list. The email template used in this campaign is having this at the top of body text:
image

Issue
You can see that the template includes variable or custom fields from both contacts and accounts modules. When the campaign is being triggered by the schedular, the following errors:
`Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $contact_first_name could not be parsed, because attribute first_name does not set in contact bean

Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $contact_middle_name_c could not be parsed, because attribute middle_name_c does not set in contact bean

Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_name could not be parsed, because attribute name does not set in account bean

Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_billing_address_city could not be parsed, because attribute billing_address_city does not set in account bean

Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_billing_address_state could not be parsed, because attribute billing_address_state does not set in account bean

Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_name could not be parsed, because attribute name does not set in account bean

Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_billing_address_city could not be parsed, because attribute billing_address_city does not set in account bean

Thu May 24 08:25:48 2018 [229486][1][FATAL] Variable $account_billing_address_state could not be parsed, because attribute billing_address_state does not set in account bean

Expected Behavior
I hope these variables should have populated properly.

Actual Behavior

the one space after each 'contacts' variable is being considered as a character  and causing error/problem. However, the 'accounts' variables are not being parsed

Possible Fix

Steps to Reproduce

Context

Your Environment

  • SuiteCRM Version used: 7.10.5
  • Browser name and version: Chrome Version 66.0.3359.181 (Official Build) (64-bit)
  • Environment name and version : PHP 7.1
@LuminisIndia LuminisIndia changed the title Accounts & Contacts variables are being parsed/populated by Email Template Accounts & Contacts variables are not being parsed/populated by Email Template May 26, 2018
@Dillon-Brown Dillon-Brown added Type:Bug Bugs within the core SuiteCRM codebase Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Area: Campaigns Issues & PRs related to all things regarding campaigns labels May 31, 2018
@samus-aran
Copy link
Contributor

@LuminisIndia Have you had an update that a fix has been proposed here: #5964
Are you able to test this and let us know if this resolves your issues 👍

@Dillon-Brown Dillon-Brown self-assigned this Nov 5, 2018
@Dillon-Brown Dillon-Brown added this to the 7.11.0 milestone Nov 5, 2018
@samus-aran samus-aran modified the milestones: 7.11.0, 7.10.12 Dec 6, 2018
@samus-aran samus-aran added Resolved: Next Release and removed Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution labels Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Campaigns Issues & PRs related to all things regarding campaigns Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type:Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

4 participants