Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17649

Online Contribution Page: fatal on Pay Later when Recurring is available

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7
    • Component/s: CiviContribute
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Fatal error when submitting Confirm page with the following configuration:

      • Sample online contribution page id=1
      • Pay-later - ON
      • Test processor
      • Pledges = OFF
      • Recurring contributions = ON

      Go to make online contribution. Do NOT check is_recur checkbox. Select Pay Later and continue. Click Confirm on next page.

      Fatal error (code is erroneously trying to insert a contribution_recur record)
      ===============
      INSERT INTO civicrm_contribution_recur (contact_id , amount , currency , frequency_unit , frequency_interval , start_date , create_date , modified_date , trxn_id , invoice_id , contribution_status_id , is_test , payment_processor_id , financial_type_id , payment_instrument_id , is_email_receipt ) VALUES ( 202 , 50.00 , 'USD' , 'month' , 1 , 20151202125803 , 20151202125803 , 20151202125803 , '9390618d311b9d56b1a5c55e422efb9c' , '9390618d311b9d56b1a5c55e422efb9c' , 2 , 0 , 0 , 1 , 1 , 1 ) [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`civicrm47`.`civicrm_contribution_recur`, CONSTRAINT `FK_civicrm_contribution_recur_payment_processor_id` FOREIGN KEY (`payment_processor_id`) REFERENCES `civicrm_payment_processor` (`id`) ON )]

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: