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) »
  • Fatal error: Class 'CRM_Core_BAO_CustomGroup' not found
Pages: [1]

Author Topic: Fatal error: Class 'CRM_Core_BAO_CustomGroup' not found  (Read 919 times)

trevorwood

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 4
  • CiviCRM version: 4.0.2
  • CMS version: Joomla 1.6
  • MySQL version: 5.0.51a
  • PHP version: 5.2.6-1+lenny8
Fatal error: Class 'CRM_Core_BAO_CustomGroup' not found
July 25, 2011, 03:44:38 am
I'm getting the error message

Fatal error: Class 'CRM_Core_BAO_CustomGroup' not found in D:\websites\joomla\administrator\components\com_civicrm\civicrm\api\v3\utils.php on line 1432

when executing the following code

<?php
defined('_JEXEC') OR defined('_VALID_MOS') OR die( "Direct Access Is Not Allowed" );

require_once JPATH_ROOT.'/'.'administrator/components/com_civicrm/civicrm.settings.php';
require_once 'CRM/Core/Config.php';
$civiConfig =& CRM_Core_Config::singleton( );

require_once 'api/api.php';

$params = array(
   'contact_type' => 'Organization',
   'version' => 3,
);

$result = civicrm_api( 'custom_group','get',$params );

?>


Any ideas please

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: Fatal error: Class 'CRM_Core_BAO_CustomGroup' not found
July 25, 2011, 04:43:13 am

can u add:

require_once 'CRM/Core/BAO/CustomGroup.php';

on line 1431 of api\v3\utils.php

should fix the issue. Can you let us know if so

thanx

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

trevorwood

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 4
  • CiviCRM version: 4.0.2
  • CMS version: Joomla 1.6
  • MySQL version: 5.0.51a
  • PHP version: 5.2.6-1+lenny8
Re: Fatal error: Class 'CRM_Core_BAO_CustomGroup' not found
July 27, 2011, 02:52:23 am
That seems to have fixed it thanks. Will this be fixed in the next release or do will I need to add this on the next update?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Fatal error: Class 'CRM_Core_BAO_CustomGroup' not found
July 27, 2011, 03:33:41 am
I'm pretty sure that one is already patched.

One possible gotcha in the next release is default limits - by default many api queries will be limited to 25 objects - this improves performance but lots of objects (like option_value) hadn't had it implemented until recently.

You can override with $params['options'] ['limit'] = 100000;
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

trevorwood

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 4
  • CiviCRM version: 4.0.2
  • CMS version: Joomla 1.6
  • MySQL version: 5.0.51a
  • PHP version: 5.2.6-1+lenny8
Re: Fatal error: Class 'CRM_Core_BAO_CustomGroup' not found
July 27, 2011, 04:15:34 am
Quote from: Eileen on July 27, 2011, 03:33:41 am
One possible gotcha in the next release is default limits

You can override with $params['options'] ['limit'] = 100000;

what are those?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Fatal error: Class 'CRM_Core_BAO_CustomGroup' not found
July 27, 2011, 12:57:03 pm
Ah, so by default a GET request will generally return no more than 25 results from next release on
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Fatal error: Class 'CRM_Core_BAO_CustomGroup' not found

This forum was archived on 2017-11-26.