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 when deleting contacts
Pages: [1]

Author Topic: Fatal error when deleting contacts  (Read 766 times)

JoopSJ

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 2
Fatal error when deleting contacts
January 25, 2010, 01:41:01 am
When i try to delete contacts i will get this error:

Fatal error: Call to undefined method CRM_Activity_BAO_Activity::cleanupactivity() in C: ....\sites\all\modules\civicrm\CRM\Contact\BAO\Contact.php on line 634

All the files, classes and methods are present in the install. I only see some differences in de camelCasings:
In Contact.php the method "cleanupActivity" is called, the error shows "cleanupactivity".
In Contact.php the class: CRM_Activity_BAO_activity:: i.s.o Activity

I commented out line 634 to able to proceed working for the time.

On the sandbox this can not be reproduced. But i'm on 3.0.4. Is there still a 3.0.x. demo site?
Before i file a bug report can anyone confirm this for 3.0.4?
Thanks

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Fatal error when deleting contacts
January 25, 2010, 02:05:33 am
JoopSJ :
I can't replicate it on my local install. Does the below patch fix it?
Quote
Index: CRM/Contact/BAO/Contact.php
===================================================================
--- CRM/Contact/BAO/Contact.php   (revision 26016)
+++ CRM/Contact/BAO/Contact.php   (working copy)
@@ -631,7 +631,7 @@
 
         // do activity cleanup, CRM-5604 
         require_once 'CRM/Activity/BAO/Activity.php';
-        CRM_Activity_BAO_activity::cleanupActivity( $id );
+        CRM_Activity_BAO_Activity::cleanupActivity( $id );

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Fatal error when deleting contacts

This forum was archived on 2017-11-26.