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 CiviContribute (Moderator: Donald Lobo) »
  • 3.4.7 Upgrade Saving Failure: Could not find membership record
Pages: [1]

Author Topic: 3.4.7 Upgrade Saving Failure: Could not find membership record  (Read 1538 times)

VedaConsulting

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6.22
  • MySQL version: 5.5.16
  • PHP version: 5.3.8
3.4.7 Upgrade Saving Failure: Could not find membership record
October 27, 2011, 05:05:32 am
Drupal 6.22 / Civicrm 3.4.7

When editing a contribution (contribution type - donation) and clicking 'Save' gives me the below error.


Failure: Could not find membership record:

backTrace

C:\wamp\www\ll\sites\all\modules\civicrm\CRM\Core\Error.php, backtrace, 296
C:\wamp\www\ll\sites\all\modules\civicrm\CRM\Contribute\BAO\Contribution.php, fatal, 1404
C:\wamp\www\ll\sites\all\modules\civicrm\CRM\Contribute\Form\Contribution.php, transitionComponents, 1612
C:\wamp\www\ll\sites\all\modules\civicrm\CRM\Contribute\Form\Contribution.php, updateRelatedComponent, 1507
C:\wamp\www\ll\sites\all\modules\civicrm\CRM\Core\Form.php, postProcess, 250
C:\wamp\www\ll\sites\all\modules\civicrm\CRM\Core\QuickForm\Action\Upload.php, mainProcess, 153
C:\wamp\www\ll\sites\all\modules\civicrm\CRM\Core\QuickForm\Action\Upload.php, realPerform, 130
C:\wamp\www\ll\sites\all\modules\civicrm\packages\HTML\QuickForm\Controller.php, perform, 203
C:\wamp\www\ll\sites\all\modules\civicrm\packages\HTML\QuickForm\Page.php, handle, 103
C:\wamp\www\ll\sites\all\modules\civicrm\CRM\Core\Controller.php, handle, 284
C:\wamp\www\ll\sites\all\modules\civicrm\CRM\Contribute\Page\Tab.php, run, 207
C:\wamp\www\ll\sites\all\modules\civicrm\CRM\Contribute\Page\Tab.php, edit, 261
C:\wamp\www\ll\sites\all\modules\civicrm\CRM\Core\Invoke.php, run, 223
C:\wamp\www\ll\sites\all\modules\civicrm\drupal\civicrm.module, invoke, 347
, civicrm_invoke,
C:\wamp\www\llr\includes\menu.inc, call_user_func_array, 349
C:\wamp\www\llr\index.php, menu_execute_active_handler, 17

Seems it is trying to update the related component (membership record), which has to happen only for member dues.

tcorbin

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal
  • MySQL version: ?
  • PHP version: ?
Re: 3.4.7 Upgrade Saving Failure: Could not find membership record
October 28, 2011, 04:32:11 pm
Same thing is happening to us.  The updated info is appearing in the record.

markimus

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
Re: 3.4.7 Upgrade Saving Failure: Could not find membership record
November 02, 2011, 03:19:11 pm
I got the same message  for me too.
Any suggestions? 
Success is the ability to go from one failure to another with no loss of enthusiasm.

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: 3.4.7 Upgrade Saving Failure: Could not find membership record
November 02, 2011, 06:03:03 pm

would be great if one / all of u'll get on IRC, so we can track and fix this

can u reproduce this issue on our demo server?

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

markimus

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
Re: 3.4.7 Upgrade Saving Failure: Could not find membership record
November 02, 2011, 06:08:23 pm
I tried but was not able to reproduce this error on the demo.   :(
Success is the ability to go from one failure to another with no loss of enthusiasm.

GingerFeet

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 4
  • CiviCRM version: 3.4.6 / 3.4.7
  • CMS version: Drupal 6.22
  • MySQL version: 5.1
  • PHP version: 5.3.6
Re: 3.4.7 Upgrade Saving Failure: Could not find membership record
November 09, 2011, 01:54:23 pm
I'm getting the same error & backtrace.

Has anyone found a solution to this?

GF

marketman

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: 3.4.7 Upgrade Saving Failure: Could not find membership record
November 10, 2011, 04:37:30 pm
I am trying to do the same, and getting the same errors although different line numbers.

Failure: Could not find membership record:
backTrace

/home/hectorme/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 296
/home/hectorme/public_html/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php, fatal, 1404
/home/hectorme/public_html/sites/all/modules/civicrm/CRM/Contribute/Form/Contribution.php, transitionComponents, 1612
/home/hectorme/public_html/sites/all/modules/civicrm/CRM/Contribute/Form/Contribution.php, updateRelatedComponent, 1507
/home/hectorme/public_html/sites/all/modules/civicrm/CRM/Core/Form.php, postProcess, 250
/home/hectorme/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php, mainProcess, 153
/home/hectorme/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php, realPerform, 130
/home/hectorme/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/hectorme/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/hectorme/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 284
/home/hectorme/public_html/sites/all/modules/civicrm/CRM/Contribute/Page/Tab.php, run, 207
/home/hectorme/public_html/sites/all/modules/civicrm/CRM/Contribute/Page/Tab.php, edit, 261
/home/hectorme/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 223
/home/hectorme/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 347
, civicrm_invoke,
/home/hectorme/public_html/includes/menu.inc, call_user_func_array, 349
/home/hectorme/public_html/index.php, menu_execute_active_handler, 17

Kirk

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 2
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7.39
  • MySQL version: 5.5.44
  • PHP version: 5.6.13
Re: 3.4.7 Upgrade Saving Failure: Could not find membership record
November 15, 2011, 04:08:59 am
Yep, same here.

kckrupp_emphanos

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.5 / 4.0.5
  • CMS version: Drupal 6 / 7
  • MySQL version: -
  • PHP version: -
Re: 3.4.7 Upgrade Saving Failure: Could not find membership record
November 21, 2011, 11:10:40 am
To make this error even stranger:

Because the error stated that a Membership Record could not be found, I decided to see what would happen if I created a Membership Type and a Membership record in our environment.

Action:
I created a Fixed, 1 year-long membership with no fee named "Test."

Result:
Opened up existing contribution record, saved, got same error.

Action 2:
I created a New Membership under a record.

Result:
Opened up existing contribution record, saved, and the error was gone.

Action 3:
I deleted the Membership I had created.

Result:
Opened up Existing contribution record, saved, and the error was back again.

I played with this a few times and it seems that it doesn't matter who has the Membership Record just that a contact record somewhere in the database has a Membership Record.

CiviCRM.org DEMO:
I decided to see if the same thing would happen in the demo site, so I deleted all of the Memberships and then went to edit one of the existing contributions, and the error was reproduced.

« Last Edit: November 21, 2011, 11:12:21 am by kckrupp_emphanos »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: 3.4.7 Upgrade Saving Failure: Could not find membership record
November 21, 2011, 02:02:35 pm
Kevin -
Thx for the detailed analysis. I was also able to recreate on my local 3.4.7 and filed an issue:

http://issues.civicrm.org/jira/browse/CRM-9218

In the meantime - it seems like there is a workaround for this - which is to create a membership record for some "fake" contact. If your site isn't using CiviMember at all you can actually:

* Enable the CiviMember component
* Create 1 membership type
* Create 1 membership for some "fake" contact
* Disable CiviMember component

In my testing, the contribution edit still worked after those steps.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • 3.4.7 Upgrade Saving Failure: Could not find membership record

This forum was archived on 2017-11-26.