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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Issues with labels
Pages: [1]

Author Topic: Issues with labels  (Read 973 times)

ibhola

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Drupal v7.22
  • MySQL version: 5.5.23
  • PHP version: 5.3.27
Issues with labels
March 02, 2012, 03:55:52 pm
Hi
I m having a problem with the Print Labels function in CIVI. After I select the label type and the option "do not contact by mail" and print I get the error

 ...\task\labels.php  TCPDF error: Some data has already been output, can't send PDF file

This is the first time I am trying the Label feature in search
Please advice.

Thanks

chankartat

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.1.63
  • PHP version: 5.3.8
Re: Issues with labels
March 24, 2012, 04:45:14 am
Am having the same problem.

Notice: Undefined index: location_type_id in <joomla root>/administrator/components/com_civicrm/civicrm/CRM/Contact/Form/Task/Label.php on line 282
TCPDF ERROR: Some data has already been output, can't send PDF file

chankartat

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.2.2
  • CMS version: Joomla 2.5.7
  • MySQL version: 5.1.63
  • PHP version: 5.3.8
Re: Issues with labels
March 24, 2012, 04:59:05 am
If I set location to "Home" i will get this problem. Setting location to "Primary" works.

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: Issues with labels
March 24, 2012, 08:01:11 am

can u try this patch: (search google to learn more about applying a patch)

Code: [Select]

svn diff -r PREV CRM/Contact/Form/Task/Label.php
Index: CRM/Contact/Form/Task/Label.php
===================================================================
--- CRM/Contact/Form/Task/Label.php     (revision 39262)
+++ CRM/Contact/Form/Task/Label.php     (working copy)
@@ -279,7 +279,8 @@
                 $valuesothers = CRM_Core_BAO_Location::getValues( $paramsothers, $valuesothers );
                 if ( CRM_Utils_Array::value('location_type_id', $fv ) ) {
                     foreach ( $valuesothers as $vals ) {
-                        if ( $vals['location_type_id'] == CRM_Utils_Array::value('location_type_id', $fv ) ) {
+                        if ( CRM_Utils_Array::value('location_type_id', $vals) ==
+                             CRM_Utils_Array::value('location_type_id', $fv ) ) {
                             foreach ( $vals as $k => $v ){
                                 if ( in_array( $k, array( 'email', 'phone', 'im','openid' ) ) ) {
                                     if ( $k == 'im' ) {

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Issues with labels

This forum was archived on 2017-11-26.