Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Blocker
-
Resolution: Duplicate
-
Affects Version/s: 4.6.24
-
Fix Version/s: 4.6.25
-
Component/s: None
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Contributed Code
-
Verified?:No
Description
CiviCRM_API3_Exception: "DB Error: unknown error"
#0 /var/www/drupal7/sites/all/modules/civicrm/CRM/Contribute/BAO/ContributionRecur.php(449): civicrm_api3("Contribution", "get", (Array:4))
#1 /var/www/drupal7/sites/all/modules/civicrm/CRM/Contribute/BAO/ContributionRecur.php(429): CRM_Contribute_BAO_ContributionRecur::getTemplateContribution("1")
#2 /var/www/drupal7/sites/all/modules/civicrm/CRM/Contribute/Page/ContributionRecur.php(71): CRM_Contribute_BAO_ContributionRecur::supportsFinancialTypeChange("1")
#3 /var/www/drupal7/sites/all/modules/civicrm/CRM/Contribute/Page/ContributionRecur.php(113): CRM_Contribute_Page_ContributionRecur->view()
#4 /var/www/drupal7/sites/all/modules/civicrm/CRM/Core/Invoke.php(312): CRM_Contribute_Page_ContributionRecur->run((Array:4), NULL)
#5 /var/www/drupal7/sites/all/modules/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:13))
#6 /var/www/drupal7/sites/all/modules/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:4))
#7 /var/www/drupal7/sites/all/modules/civicrm/drupal/civicrm.module(482): CRM_Core_Invoke::invoke((Array:4))
#8 [internal function](): civicrm_invoke("contact", "view", "contributionrecur")
#9 /var/www/drupal7/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:3))
#10 /var/www/drupal7/index.php(21): menu_execute_active_handler()
#11
Sorry but we are not able to provide this at the moment.
DB Error: unknown error
Return to home page.
Steps to Replicate:
Create Recurring contribution and try to view recurring contribution from Contribution tab of contact.
or by using api get
$result = civicrm_api3('Contribution', 'get', array(
'sequential' => 1,
'contribution_recur_id' => 1,
'options' => array('limit' => 1, 'sort' => array("id DESC", 'contact_id ASC')),
'contribution_test' => 1,
));