Body: <p>Using default contribution receipt message template, the receipt email shows <code>"array"</code> rather than <code>custom field values</code>.  It works correctly if no custom fields are used in profile.</p>
  
  <p>This seems like this issue which does not seem to be closed.
  <a href="https://forum.civicrm.org/index.php?topic=27587.0" rel="nofollow noreferrer">https://forum.civicrm.org/index.php?topic=27587.0</a></p>
  
  <p>Using <code>Civi 4.6.8</code>
  <a href="https://i.sstatic.net/Qny1b.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Qny1b.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-24T09:38:18.060Z
Comments.Text: I just tested this out and `custom_fields` used  for Contribution are properly retrieved in the mail. Can you provide some more details, screenshot, etc ? eg. Type of the `custom_field` ?
Comments.UserDisplayName: jitendra - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-24T11:03:33.993Z
Comments.Text: I have done more testing and the problem is not consistent.   Where might I look for error details that would better indicate the cause of the problem?   Thanks for help.
Comments.UserDisplayName: Dave T
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-24T11:56:03.357Z
Comments.Text: More testing - seems to work OK if I am logged in (as admin user) but not if I am completing form as an anonymous user (using Drupal).   Profile permissions are checked for anonymous user.  Are there other permissions that might be necessary to complete a membership contribution page with profile?
Comments.UserDisplayName: Dave T
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-24T12:28:24.290Z
Comments.Text: I have checked and rechecked permissions including profile, contribute permissions.  The form successfully creates new contacts with all of the profile information.  Any different permissions that would affect the email receipt template behavior?
Comments.UserDisplayName: Dave T
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-24T12:34:38.410Z
Comments.Text: Can you recreate this on our sandbox site http://d46.demo.civicrm.org/. If yes, then it seem to be a bug in core:(
Comments.UserDisplayName: jitendra - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-24T13:43:23.880Z
Comments.Text: It first showed up as a problem in receipts sent immediately after upgrading to 4.6.8 on 8/28/15.   I don't think I can trigger an email from the demo site.
Comments.UserDisplayName: Dave T
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-03T00:56:33.093Z
Comments.Text: Further testing - giving anonymous user ALL permissions, it still does not populate the array when logged out when completing the contribution form for membership.  Is there something about email receipt template (Smarty?) that would care whether the form is completed by a logged in user or not?
Comments.UserDisplayName: Dave T
Tags: <custom-fields><receipts>
Title: Contribution email receipt with custom fields shows array in template
ThreadText: # Contribution email receipt with custom fields shows array in template
  
  (Asked by: username_0 on 2015-09-24)
  
  Using default contribution receipt message template, the receipt email shows `"array"` rather than `custom field values`. It works correctly if no custom fields are used in profile.
  
  This seems like this issue which does not seem to be closed.
  <https://forum.civicrm.org/index.php?topic=27587.0>
  
  Using `Civi 4.6.8`
  [![enter image description here](https://i.sstatic.net/Qny1b.png)](https://i.sstatic.net/Qny1b.png)
  
  **Tags:** custom-fields, receipts
  
  > **Comments:**
  > **username_1**: I just tested this out and `custom_fields` used  for Contribution are properly retrieved in the mail. Can you provide some more details, screenshot, etc ? eg. Type of the `custom_field` ?  
  > **username_0**: I have done more testing and the problem is not consistent.   Where might I look for error details that would better indicate the cause of the problem?   Thanks for help.  
  > **username_0**: More testing - seems to work OK if I am logged in (as admin user) but not if I am completing form as an anonymous user (using Drupal).   Profile permissions are checked for anonymous user.  Are there other permissions that might be necessary to complete a membership contribution page with profile?  
  > **username_0**: I have checked and rechecked permissions including profile, contribute permissions.  The form successfully creates new contacts with all of the profile information.  Any different permissions that would affect the email receipt template behavior?  
  > **username_1**: Can you recreate this on our sandbox site http://d46.demo.civicrm.org/. If yes, then it seem to be a bug in core:(  
  > **username_0**: It first showed up as a problem in receipts sent immediately after upgrading to 4.6.8 on 8/28/15.   I don't think I can trigger an email from the demo site.  
  > **username_0**: Further testing - giving anonymous user ALL permissions, it still does not populate the array when logged out when completing the contribution form for membership.  Is there something about email receipt template (Smarty?) that would care whether the form is completed by a logged in user or not?  
  
  ---
  
  ## 0 answers
  
  