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_UFField' - with solution
Pages: [1]

Author Topic: Fatal error: Class 'CRM_Core_BAO_UFField' - with solution  (Read 1168 times)

amazon

  • Guest
Fatal error: Class 'CRM_Core_BAO_UFField' - with solution
August 02, 2007, 09:08:43 am
Fatal error: Class 'CRM_Core_BAO_UFField' not found in /civicrm/CRM/Core/BAO/UFGroup.php on line 503

This was caused when clicking on a one time link in a Drupal user registration email.

We looked at the code in UFGroup.php

if ( $profileID ) {
// make sure profileID and ctype match if ctype exists
if ( $ctype ) {
$profileType = CRM_Core_BAO_UFField::getProfileType( $profileID );
if ( $profileType != $ctype ) {
return null;
}
}

Lobo instructed us to add

if ( $profileID ) {
// make sure profileID and ctype match if ctype exists
if ( $ctype ) {
require_once 'CRM/Core/BAO/UFField.php';  <----- Add line here
$profileType = CRM_Core_BAO_UFField::getProfileType( $profileID );
if ( $profileType != $ctype ) {
return null;
}
}

This made it work.  I'll follow up and post why this fixed it.

Kieran

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_UFField' - with solution
August 02, 2007, 02:40:48 pm

This has been fixed in v1.8. Should be part of the next 1.8 beta release

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) »
  • Fatal error: Class 'CRM_Core_BAO_UFField' - with solution

This forum was archived on 2017-11-26.