CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Registration confirmation email has Name & address fields as Arrays
Pages: [1]

Author Topic: Registration confirmation email has Name & address fields as Arrays  (Read 2636 times)

webguy2

  • Guest
Registration confirmation email has Name & address fields as Arrays
December 18, 2008, 11:49:53 am
Using CiviCRM 2.0, PHP 5, MySQL 5 on Drupal 5.

Here's what the bottom of the registration confirmation looks like:

REGISTRANT CONTACT INFORMATION
===========================================================
first_name : Array
last_name : Array
custom_6 : Array
street_address-1 : Array
supplemental_address_1-1 : Array
city-1 : Array
state_province-1 : Array
postal_code-1 : Array
phone-Primary-Phone : Array
phone-Primary-Fax : Array
custom_3 : Array
custom_5 : Array
custom_8 : Array
custom_9 : Array
custom_7 : Array

Any ideas how to fix this?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Registration confirmation email has Name & address fields as Arrays
December 18, 2008, 03:20:35 pm
I did a search on the forums for "first_name : Array" and came up with this post that might be relevant:

http://forum.civicrm.org/index.php/topic,4539.msg19937.html#msg19937

Otherwise, not sure what's up ??
Protect your investment in CiviCRM by  becoming a Member!

webguy2

  • Guest
Re: Registration confirmation email has Name & address fields as Arrays
December 19, 2008, 05:32:02 am
thanks for checking but that solution did not work.  All fields in profile used are individual or custom.  I disabled all but standard individual fields and it still did the same thing.

For anyone who might be able to help, I have a registration form with all individual fields in the profile.  In the confirmation email, I receive:
REGISTRANT CONTACT INFORMATION
===========================================================
first_name : Array
last_name : Array
custom_6 : Array
street_address-1 : Array
supplemental_address_1-1 : Array
city-1 : Array
state_province-1 : Array

webguy2

  • Guest
almost there - FOUND where the error is - please help
December 19, 2008, 06:51:10 am
The error is ocurring in the following code (around line # 98) of the following file name.  Can anyone help diagnose where $value is pitting out "array" instead of the value?

/sites/all/modules/civicrm/templates/CRM/Event/Form/Registration/ReceiptMessage.tpl

{if $customPre}
===========================================================
{ts} {$customPre_grouptitle} {/ts}

===========================================================
{foreach from=$customPre item=value key=name}
 {$name} : {$value}
{/foreach}



The above code outputs:
Name:  array
Last Name: array
Address 1: array
...
{/if}
« Last Edit: December 19, 2008, 07:02:15 am by webguy2 »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Registration confirmation email has Name & address fields as Arrays
December 19, 2008, 11:58:42 am
webguy2:

Are you on CiviCRM v2.0.7?

Kurund
Found this reply helpful? Support CiviCRM

webguy2

  • Guest
Re: Registration confirmation email has Name & address fields as Arrays
December 19, 2008, 12:48:07 pm
Yes, sorry, I just upgraded to hope to fix the issue.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Registration confirmation email has Name & address fields as Arrays
December 20, 2008, 03:14:41 am
Sorry it's bit hard to guess the cause for this problem. If you are familiar with coding you might have to do some debugging else hire someone from http://civicrm.org/professional

If you are debugging you should check CRM/Event/BAO/EventPage.php sendMail() function.

Kurund
Found this reply helpful? Support CiviCRM

sungoddess

  • Guest
Re: Registration confirmation email has Name & address fields as Arrays
January 01, 2009, 07:03:06 am
I have had this problem as well, but with a Contribution page and the confirmation sent out.

I had to turn the email receipt off.  :(

webguy2

  • Guest
Re: Registration confirmation email has Name & address fields as Arrays
January 01, 2009, 07:19:29 am
Yeah, In afraid I haven't received much help on this one.  If I find a solution, I'll try to remember to post it here.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Registration confirmation email has Name & address fields as Arrays
January 01, 2009, 08:29:42 am
Quote from: sungoddess on January 01, 2009, 07:03:06 am
I have had this problem as well, but with a Contribution page and the confirmation sent out.

I had to turn the email receipt off.  :(


I assume this is with 2.0? Upgrading to 2.1 is strongly recommended :) We will start to roll out 2.2 alpha releases etc soon, so folks should definitely start moving to 2.1

lobo
 
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

webguy2

  • Guest
Re: Registration confirmation email has Name & address fields as Arrays
January 02, 2009, 06:42:27 am
DL - I certainly would if I could.  I am on Centos 5 which does not have an upgrade path to PHP 5.2 so I am sol.  I would if I could.  There are other Drupal modules and apps I want to use requiring 5.2.

greenmachine

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 6
Re: Registration confirmation email has Name & address fields as Arrays
September 03, 2009, 08:35:53 am
I had a similar problem with CiviCRM 2.2.8, except with a Contribution Page (not event registration). It had to do with which type of custom fields I had enabled, and making sure the right contact ID was chosen by the code. Not sure if it is relevant to this issue here but here's what I found: http://forum.civicrm.org/index.php/topic,9677.0.html

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Registration confirmation email has Name & address fields as Arrays

This forum was archived on 2017-11-26.