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

Membership create throws error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.1
    • Fix Version/s: 4.7.1
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      Steps to replicate:
      ------------------------

      Go to standalone 'New Membership' form.
      Select 'Contact' for membership and save.

      It throws following error:
      backTrace

      #0 /Users/yashodha/git/civicrm/CRM/Core/Error.php(362): CRM_Core_Error::backtrace()
      #1 /Users/yashodha/git/civicrm/CRM/Core/DAO.php(1037): CRM_Core_Error::fatal()
      #2 /Users/yashodha/git/civicrm/CRM/Member/Form/Membership.php(293): CRM_Core_DAO::getFieldValue("CRM_Member_DAO_MembershipType", "0", "member_of_contact_id", "id")
      #3 /Users/yashodha/git/civicrm/CRM/Core/Form.php(542): CRM_Member_Form_Membership->setDefaultValues()
      #4 /Users/yashodha/git/civicrm/CRM/Core/QuickForm/Action/Upload.php(126): CRM_Core_Form->buildForm()
      #5 /Users/yashodha/git/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Member_Form_Membership), "upload")
      #6 /Users/yashodha/git/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Member_Form_Membership), "upload")
      #7 /Users/yashodha/git/civicrm/CRM/Core/Controller.php(351): HTML_QuickForm_Page->handle("upload")
      #8 /Users/yashodha/git/civicrm/CRM/Member/Page/Tab.php(296): CRM_Core_Controller->run()
      #9 /Users/yashodha/git/civicrm/CRM/Member/Page/Tab.php(369): CRM_Member_Page_Tab->edit()
      #10 /Users/yashodha/git/civicrm/CRM/Core/Invoke.php(312): CRM_Member_Page_Tab->run((Array:3), NULL)
      #11 /Users/yashodha/git/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:15))
      #12 /Users/yashodha/git/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:3))
      #13 /Users/yashodha/git/civicrm/drupal/civicrm.module(451): CRM_Core_Invoke::invoke((Array:3))
      #14 [internal function](): civicrm_invoke("member", "add")
      #15 /Users/yashodha/public_html/drupal7/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:2))
      #16 /Users/yashodha/public_html/drupal7/index.php(21): menu_execute_active_handler()
      #17

      {main}

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              yashodha Yashodha Chaku
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: