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) »
  • Error in Sending Email to Selected Records of Activity Search Results
Pages: [1]

Author Topic: Error in Sending Email to Selected Records of Activity Search Results  (Read 1116 times)

rajm

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.beta1
  • CMS version: drupal 6.6
  • MySQL version: 5.1.59
  • PHP version: 5.2.17
Error in Sending Email to Selected Records of Activity Search Results
January 02, 2012, 06:43:13 pm
Hi!

Upon searching an activity and getting results of the contacts for the activity, I tried to do select Send Email to Contacts action.

There are two radio button options for the activity action either select all records or selected records.

When the all records button is checked, the next screen for composing the message shows up fine.

But when selected records only button is checked, the screen goes blank and the error is logged in webserver with the following  PHP fatal error:
Class 'CRM_Core_BAO_CustomField not found in /civicrm/CRM/Utils/Token.php on line 939.
referrer: /civicrm/activity/search?_qf_PickOption_display=true&qfKey=<key>

Raj

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: Error in Sending Email to Selected Records of Activity Search Results
January 03, 2012, 06:07:48 am
You can get the fix from below patch: ( fix will be part of next beta release )


Index: CRM/Utils/Token.php
===================================================================
--- CRM/Utils/Token.php (revision 38131)
+++ CRM/Utils/Token.php (working copy)
@@ -937,6 +937,7 @@
         }
 
         $custom = array( );
+        require_once 'CRM/Core/BAO/CustomField.php';
         foreach ( $returnProperties as $name => $dontCare ) {
             $cfID = CRM_Core_BAO_CustomField::getKeyID( $name );
             if ( $cfID ) {

Thanks
Kurund
Found this reply helpful? Support CiviCRM

rajm

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.beta1
  • CMS version: drupal 6.6
  • MySQL version: 5.1.59
  • PHP version: 5.2.17
Re: Error in Sending Email to Selected Records of Activity Search Results
January 03, 2012, 09:05:57 am
That Fixed It, Thanks

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) »
  • Error in Sending Email to Selected Records of Activity Search Results

This forum was archived on 2017-11-26.