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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Names missing on labels for individual contacts who are imported
Pages: [1]

Author Topic: Names missing on labels for individual contacts who are imported  (Read 5767 times)

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Names missing on labels for individual contacts who are imported
February 07, 2012, 10:23:58 am
I printed some labels for individuals and noticed that for some individuals names were missing but addresses are ok.  I realised that these were individuals who I had imported into the system.  Other individuals on the labels, who had not been imported,  were correctly printed.   The names of the people who didn't print on the labels show up just fine otherwise in the system, which is puzzling.  I have reproduced this on the sandbox >:(   The name of the individual in the sandbox whose name does not print on labels is Judy Smashski of 777 Manor Park, Newport.  Give it a try!

Andy Clark
I'm running 4.1b3 under WP.
Andy Clark

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Names missing on labels for individual contacts who are imported
February 07, 2012, 10:40:23 am
Update on this... I tried printing labels for households and organisations that have been a mixture of imported and entered as well as individuals.  The same problem exists for these as well -  those that have been imported are missing the first line on the labels, whereas those that have been entered online are ok.

Andy Clark
I'm running 4.1b3 under WP.
Andy Clark

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: Names missing on labels for individual contacts who are imported
February 07, 2012, 11:03:13 pm
Since you imported contacts, I think you addressee greeting is not set, hence {contact.addressee} token is not evaluated and you get empty line.

I would suggest running updateGreeting script to fix this problem. Check "Update Greetings and Addressees" section on below link:
http://wiki.civicrm.org/confluence/display/CRMDOC41/Managing+Scheduled+Jobs

Hth
Kurund
Found this reply helpful? Support CiviCRM

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Names missing on labels for individual contacts who are imported
February 07, 2012, 11:16:14 pm
Alternatively, you could modify the label so it uses {contact.displayname} instead of contact.addressee. We dot it (with first name & last name) but don't have mixed household with individuals

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Names missing on labels for individual contacts who are imported
February 08, 2012, 01:54:53 am
Thanks for the responses.  Bear with me here, I'm new at this but I can't figure out the command line format for running the updateGreeting script from the scheduled jobs screen.  I seem to have tried every combination without success. e.g. I entered 'ct=individual gt=addressee' but that doesn't work.  I get this msg 'Error message: Mandatory key(s) missing from params array: gt'      What should these parms be?
Andy Clark

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Names missing on labels for individual contacts who are imported
February 08, 2012, 02:07:49 am
I did try contact.displayname but it didn't work.  The help doesn't list this as an available token, by the way.
Andy Clark

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: Names missing on labels for individual contacts who are imported
February 08, 2012, 03:16:20 am
Quote
  I seem to have tried every combination without success. e.g. I entered 'ct=individual gt=addressee' but that doesn't work.  I get this msg 'Error message: Mandatory key(s) missing from params array: gt'      What should these parms be?

I tried below and worked for me.
Quote
php bin/cli.php -u user -p password -e Job -a update_greeting --ct=Individual --gt=addressee

Kurund
Found this reply helpful? Support CiviCRM

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Names missing on labels for individual contacts who are imported
February 08, 2012, 03:47:10 am
Thanks for the reply.  I'm running this by adding these parms to the 'Scheduled jobs' screen, and so I added --ct=Individual --gt=addressee, executed the job and it failed (see below).  In this screen do I need to put the other parms in as well i.e. "-u user -p password -e Job -a update_greeting"  ?

Parameters raw (from db settings):
--ct=Individual --gt=addressee

Parameters parsed (and passed to API method):
a:2:{s:7:"version";i:3;s:4:"--ct";s:15:"Individual --gt";}

Full message:
Finished execution of Update Greetings and Addressees with result: Failure, Error message: Mandatory key(s) missing from params array: ct, gt
Andy Clark

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: Names missing on labels for individual contacts who are imported
February 08, 2012, 05:10:07 am
Oh ok, I thought you were running via command prompt. In this case you just need to enter ct=Individual and then on next line gt=addressee

Let me know if that works

Kurund
Found this reply helpful? Support CiviCRM

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Names missing on labels for individual contacts who are imported
February 08, 2012, 09:07:10 am
Thanks, that worked  :)  I guess the problem is that this is a new way of running jobs with 4.1?  So I didn't find any documentation on how to set these parms, as they were all related to previous methods.  Anyway, many thanks, this seemed a big problem to me and I'm so glad it's fixed.
Andy Clark

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: Names missing on labels for individual contacts who are imported
February 08, 2012, 12:12:59 pm
Quote
So I didn't find any documentation on how to set these parms, as they were all related to previous methods.

Can you please update the wiki instruction on this.

Thanks
Kurund
Found this reply helpful? Support CiviCRM

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Names missing on labels for individual contacts who are imported
February 08, 2012, 12:20:36 pm
OK, will do.
Andy Clark

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Names missing on labels for individual contacts who are imported

This forum was archived on 2017-11-26.