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 CiviMember (Moderator: Deepak Srivastava) »
  • Renewing membership -- payment amount not set
Pages: [1]

Author Topic: Renewing membership -- payment amount not set  (Read 1138 times)

jackrabbithanna

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 3
  • Quick like bunny
    • http://www.skvare.com
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.23
  • MySQL version: 5.1
  • PHP version: 5.3.3
Renewing membership -- payment amount not set
July 12, 2013, 12:26:03 pm
This occurs via the admin UI, everthing works fine through a contribution form.
In Civi 4.3.5
When I look at some contacts memberships, click the more link, and click renew....I set the amount correctly, sane values for the other fields...save....when I then go to look at the payment, the amount is 0.  If I manually edit the payment, I get an error...
Sorry but we are not able to provide this at the moment.

looking at the code in Contribution.php the call to getFieldValue errors out, apparently the value for $this->_priceSetId is empty or null because the first thing the getFieldValue function does is check the $searchValue variable to see if its empty of null and if so returns an error.

Why would the priceSetId be null.....

looking up in the file Contribution.php $this->_priceSetId if empty is supposed to be set by a call (line 1028) $this->_priceSetId = $priceSetId = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_Set', 'default_contribution_amount', 'id', 'name');  or later by (line 1073)CRM_Core_DAO::getFieldValue('CRM_Price_DAO_Field', $lineItems[$itemId]['price_field_id'], 'price_set_id');

Obviously its not getting a value.  In over my head, but I've got to figure this out....any thoughts?

backtrace is as follows:
#0 modules/civicrm/CRM/Core/Error.php(308): CRM_Core_Error::backtrace()
#1 modules/civicrm/CRM/Core/DAO.php(754): CRM_Core_Error::fatal()
#2 modules/civicrm/CRM/Contribute/Form/Contribution.php(1075): CRM_Core_DAO::getFieldValue("CRM_Price_DAO_Field", NULL, "price_set_id")
#3 modules/civicrm/CRM/Core/Form.php(246): CRM_Contribute_Form_Contribution->postProcess()
#4 modules/civicrm/CRM/Core/QuickForm/Action/Upload.php(151): CRM_Core_Form->mainProcess()
#5 modules/civicrm/CRM/Core/QuickForm/Action/Upload.php(128): CRM_Core_QuickForm_Action_Upload->realPerform(Object(CRM_Contribute_Form_Contribution), "upload")
#6 modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Contribute_Form_Contribution), "upload")
#7 modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contribute_Form_Contribution), "upload")
#8 modules/civicrm/CRM/Core/Controller.php(316): HTML_QuickForm_Page->handle("upload")
#9 modules/civicrm/CRM/Contribute/Page/Tab.php(302): CRM_Core_Controller->run()
#10 modules/civicrm/CRM/Contribute/Page/Tab.php(351): CRM_Contribute_Page_Tab->edit()
#11 modules/civicrm/CRM/Core/Invoke.php(292): CRM_Contribute_Page_Tab->run((Array:4), NULL)
#12 modules/civicrm/CRM/Core/Invoke.php(70): CRM_Core_Invoke::runItem((Array:13))
#13 modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4))
#14modules/civicrm/drupal/civicrm.module(436): CRM_Core_Invoke::invoke((Array:4))
#15 [internal function](): civicrm_invoke("contact", "view", "contribution")
#16 drupal7/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:3))
#17 drupal7/index.php(21): menu_execute_active_handler()
« Last Edit: July 12, 2013, 12:37:40 pm by jackrabbithanna »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Renewing membership -- payment amount not set

This forum was archived on 2017-11-26.