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) »
  • error when emailing contribution receipt to donor
Pages: [1] 2

Author Topic: error when emailing contribution receipt to donor  (Read 4684 times)

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
error when emailing contribution receipt to donor
October 12, 2011, 02:13:01 pm
I'm trying to re-send the contribution receipt to a donor but when I click the 'print or email receipt' and click process I get this error:

Could not find membership record:

drupal 6.22
Civi   3.4.6

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: error when emailing contribution receipt to donor
October 12, 2011, 02:22:53 pm
Failure: Could not find membership record:

backTrace

/var/www/.../modules/civicrm/CRM/Core/Error.php, backtrace, 296
/var/www/.../modules/civicrm/CRM/Contribute/Form/Task/PDF.php, fatal, 209
/var/www/.../modules/civicrm/CRM/Core/Form.php, postProcess, 250
/var/www/.../modules/civicrm/CRM/Core/StateMachine.php, mainProcess, 167
/var/www/.../modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 64
/var/www/.../modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/var/www/.../modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/var/www/.../modules/civicrm/CRM/Core/Controller.php, handle, 284
/var/www/.../modules/civicrm/CRM/Core/Invoke.php, run, 223
/var/www/.../modules/civicrm/drupal/civicrm.module, invoke, 360
, civicrm_invoke,
/var/www/public/includes/menu.inc, call_user_func_array, 349
/var/www/public/index.php, menu_execute_active_handler, 17

TwoMice

  • I post frequently
  • ***
  • Posts: 214
  • Karma: 16
    • Emphanos
  • CiviCRM version: Always current stable version
  • CMS version: Drupal 7
Re: error when emailing contribution receipt to donor
October 12, 2011, 05:04:50 pm
It's odd that there's no membership id reported. The error message should say something like "Failure: Could not find membership record: 123" where 123 is the membership ID that couldn't be found. FWIW, that fact seems to be caused by a bug in the error message itself.  So I filed a patch for that problem here: http://issues.civicrm.org/jira/browse/CRM-9024

That doesn't fix your problem, but it would at least help you see what membership record is being sought for and not found, and you might be able to debug further with that info.

- Allen
Please consider contributing to help improve CiviCRM with the Make it Happen! initiative.

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: error when emailing contribution receipt to donor
October 21, 2011, 10:47:42 am
What does the membership id refer too? the receipts I want to print are for donations and not memberships....

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: error when emailing contribution receipt to donor
October 21, 2011, 06:04:31 pm
I am getting the same error, but it's because of the civievent discount module, I posted the error here.

http://drupal.org/node/1308098


kenahoo

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63
  • PHP version: 5.3.16
Re: error when emailing contribution receipt to donor
December 07, 2011, 07:32:19 pm
Did this problem ever get sorted out?  I'm having what seems to be the exact same problem.  I'm trying to send a receipt to a single donor (myself, in this case), so I do this:

 1) search for contributions
 2) on the next page, tick the checkbox by my contribution
 3) select "print or email contribution receipts"
 4) hit the "go" button
 5) on the next page, tick the "email receipts" radio button
 6) hit "Process Receipt(s)"

and then I get the error.  For me, the error message actually gets output before the opening HTML header, so the source looks like this:

   Failure: Could not find membership record: <p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   ...

I'm using:

CiviCRM 3.4.7
Drupal 6.22
PHP 5.2.17
civicrm_theme 6.x-1.4
civicrm_group_roles 6.x-3.1

 -Ken

kenahoo

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63
  • PHP version: 5.3.16
Re: error when emailing contribution receipt to donor
December 07, 2011, 07:41:44 pm
Here's my backtrace - just figured out how to generate it.

Code: [Select]
sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 296
sites/all/modules/civicrm/CRM/Contribute/Form/Task/PDF.php, fatal, 209
sites/all/modules/civicrm/CRM/Core/Form.php, postProcess, 250
sites/all/modules/civicrm/CRM/Core/StateMachine.php, mainProcess, 167
sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 64
sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 284
sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 223
sites/all/modules/civicrm/drupal/civicrm.module, invoke, 347
, civicrm_invoke,
includes/menu.inc, call_user_func_array, 349
index.php, menu_execute_active_handler, 17%

 -Ken

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: error when emailing contribution receipt to donor
December 08, 2011, 04:30:45 pm
 
Checked the code to see whats happening and the code is failing on validating the data.

Can one of you take a look at CiviCRM.*.log file and see what Failure messages are generated. There should be a string

Could not find ...

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

kenahoo

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63
  • PHP version: 5.3.16
Re: error when emailing contribution receipt to donor
December 08, 2011, 08:45:47 pm
I'd be happy to, but I'm having some trouble finding my logs, is there a standard location they should be at?  Or somewhere to look in the configuration that would tell me where they're written?

Thanks.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: error when emailing contribution receipt to donor
December 09, 2011, 09:09:52 am
Log location depends on CMS and Civi version - can you update your Forum Profile w/ that info.
Protect your investment in CiviCRM by  becoming a Member!

zesgar

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5
Re: error when emailing contribution receipt to donor
December 09, 2011, 09:29:17 am
This is from my log file... Is there something else you need from the log file?

Dec 08 13:43:59  [info] Could not find membership record:

Dec 08 13:43:59  [info] $Fatal Error Details = Array
(
    [message] => We experienced an unexpected error. Please post a detailed description and the backtrace on the CiviCRM forums: http://forum.civicrm.org/
   
 =>
)


Dec 08 13:43:59  [info] $backTrace = /home/wesley/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 303
/home/wesley/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Form/Task/PDF.php, fatal, 209
/home/wesley/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Form.php, postProcess, 250
/home/wesley/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/StateMachine.php, mainProcess, 167
/home/wesley/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 64
/home/wesley/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/wesley/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/wesley/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, handle, 284
/home/wesley/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, run, 224
/home/wesley/public_html/administrator/components/com_civicrm/admin.civicrm.php, invoke, 85
/home/wesley/public_html/administrator/components/com_civicrm/admin.civicrm.php, civicrm_invoke, 45
/home/wesley/public_html/libraries/joomla/application/component/helper.php, require_once, 156
/home/wesley/public_html/administrator/includes/application.php, renderComponent, 153
/home/wesley/public_html/administrator/index.php, dispatch, 47

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: error when emailing contribution receipt to donor
December 09, 2011, 11:03:41 am

and these are contributons only?

memberships are not involved. Seems like the code is looking for  membership record

can u reproduce this on the demo server (seems likely that you should)

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

zesgar

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5
Re: error when emailing contribution receipt to donor
December 09, 2011, 11:57:31 am
I just tried the same steps on the demo site that I walk through.  It successfully downloads a pdf or tries to email without throwing the same error we are getting yet.  The pdf it downloads is blank.  And yes I am just trying it on a simple contact with 1 contribution.  I have 4 different sites that I have civi on and tried it on all 4 and it produces the same error.  3 are on my vps one on another shared server.  3 on 4.0.7 1 on 3.2.1
« Last Edit: December 09, 2011, 12:13:08 pm by zesgar »

zesgar

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5
Re: error when emailing contribution receipt to donor
December 09, 2011, 12:23:55 pm
SOLUTION::::  I currently have no memberships defined on my site.  When I simply added a membership.  Added one of my people to the membership processed a payment....Now everyone works  I can successfully generate a pdf for anybody....Membership due or regular contribution.  I think all you need to do is create a membership type!!!

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: error when emailing contribution receipt to donor
December 09, 2011, 12:56:15 pm

this is a bug (albeit there is a workaround!) thanx for digging and figuring it out :)

can you please post an issue along with your findings and a link to this forum post. We'll fix it for the 4.1 version so other folks dont get tripped on it

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

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • error when emailing contribution receipt to donor

This forum was archived on 2017-11-26.