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 CiviEvent (Moderator: Yashodha Chaku) »
  • Fatal error: Class 'CRM_Contribute_BAO_Contribution' not found
Pages: [1]

Author Topic: Fatal error: Class 'CRM_Contribute_BAO_Contribution' not found  (Read 1741 times)

jddarling

  • Guest
Fatal error: Class 'CRM_Contribute_BAO_Contribution' not found
March 13, 2008, 12:40:15 pm
One my customers randomly got this error today signing up for an event

Fatal error: Class 'CRM_Contribute_BAO_Contribution' not found in /shop/sites/all/modules/civicrm/CRM/Event/Form/Registration/Confirm.php on line 459

I'm running 1.9.13019 on Drupal 5.7+ with PHP5 and mySQL 5+ - and clue what would cause this?

I found this:
http://issues.civicrm.org/jira/browse/CRM-2144

But that only seems to affect v1.7 and appears to be resolved in 1.8. I attached a picture of the error as well.

jddarling

  • Guest
Re: Fatal error: Class 'CRM_Contribute_BAO_Contribution' not found
March 13, 2008, 01:13:19 pm
One other notable point - his payment still went through to my Authorize.net account, thought he didn't receive an email from CiviEvent like usual. He tried to register a few more times and got the same error each time. I'm guessing he triggered something (double submit, refresh mid-submit, etc.) and that's what kept it going. I'd just like to be able to present a better error if that's the case.

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_Contribute_BAO_Contribution' not found
March 13, 2008, 01:23:59 pm

Can you add:

        require_once 'CRM/Contribute/BAO/Contribution.php';

to line 458

that should fix the problem

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

jddarling

  • Guest
Re: Fatal error: Class 'CRM_Contribute_BAO_Contribution' not found
March 13, 2008, 01:27:49 pm
done - anyway I can test that?

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_Contribute_BAO_Contribution' not found
March 13, 2008, 01:46:55 pm

I think the error is triggered when a contact already exists. So you can try to reproduce the same thing as your user

can you also run the same test on our demo server and ensure the bug is not present in 2.x :)

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

jddarling

  • Guest
Re: Fatal error: Class 'CRM_Contribute_BAO_Contribution' not found
March 13, 2008, 01:55:04 pm
Gotcha - very strange indeed. I will try it out on the demo for sure, thanks a ton for the help. I'll let you know what I find.

jddarling

  • Guest
Re: Fatal error: Class 'CRM_Contribute_BAO_Contribution' not found
March 13, 2008, 02:06:08 pm
one other thing- I did check and there was no contact for him before he tried to sign up.

Also, I'm trying to test it on the demo, but the only event requires you to login to the paypal developers sandbox - I don't think I have a login for the sandbox, but I'll check


jddarling

  • Guest
Re: Fatal error: Class 'CRM_Contribute_BAO_Contribution' not found
March 14, 2008, 06:44:43 am
It appears to only be happening to this user when he's logged in (I have the "create account" feature on) - logged out works fine. He tried again after i made the change, but I don't think he cleared his cache, maybe that would help.

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: Fatal error: Class 'CRM_Contribute_BAO_Contribution' not found
March 14, 2008, 09:30:24 am
If user is "logged in", he won't get "create account" feature. If you are able to replicate this on demo, file an issue in jira.

thanx

kurund
Found this reply helpful? Support CiviCRM

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

This forum was archived on 2017-11-26.