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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Class 'CRM_Core_OptionGroup' not found (after upgrade to 3.1.3)
Pages: [1]

Author Topic: Class 'CRM_Core_OptionGroup' not found (after upgrade to 3.1.3)  (Read 1596 times)

H4nsie

  • Guest
Class 'CRM_Core_OptionGroup' not found (after upgrade to 3.1.3)
March 03, 2010, 05:40:29 am
After upgrading to 3.1.3 we got this error when adding manually a participant to a event.

Code: [Select]
Fatal error: Class 'CRM_Core_OptionGroup' not found in /public_html/civicrm/CRM/Event/Form/Participant.php on line 206
The solution was to add the class in Participant.php on line 206, so the code would read:

file: /public_html/civicrm/CRM/Event/Form/Participant.php
Code: [Select]
line 206 is inserted:

205 // get the option value for custom data type
206 require_once 'CRM/Core/OptionGroup.php';
207 $this->_roleCustomDataTypeID      = CRM_Core_OptionGroup::getValue( 'custom_data_type', 'ParticipantRole', 'name' );
208 $this->_eventNameCustomDataTypeID = CRM_Core_OptionGroup::getValue( 'custom_data_type', 'ParticipantEventName', 'name' );
209 $this->_eventTypeCustomDataTypeID = CRM_Core_OptionGroup::getValue( 'custom_data_type', 'ParticipantEventType', 'name' );

Regards,
H4nsie
« Last Edit: March 03, 2010, 10:36:51 pm by H4nsie »

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: Class 'CRM_Core_OptionGroup' not found (after upgrade to 3.1.3)
March 03, 2010, 07:30:07 am

fixed in rev 26442

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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Class 'CRM_Core_OptionGroup' not found (after upgrade to 3.1.3)

This forum was archived on 2017-11-26.