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) »
  • Undefined property: CRM_Contribute_Form_Contribution_Confirm::$_useForMember
Pages: [1]

Author Topic: Undefined property: CRM_Contribute_Form_Contribution_Confirm::$_useForMember  (Read 443 times)

karlg

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: 7.15
  • MySQL version: 5.1.65-cll
  • PHP version: 5.3.17
Undefined property: CRM_Contribute_Form_Contribution_Confirm::$_useForMember
November 09, 2012, 01:27:40 pm
Hi,

I'm setting up a site thusly:

- CiviCRM 4.2.6
- Drupal 7.16
- PayPal Express

So I think I'll try out paying my membership dues.
I get the form ok, go to PayPal and sign in ok
Come back to the site ok and click confirm.
Then I get this message:


    Notice: Undefined property: CRM_Contribute_Form_Contribution_Confirm::$_useForMember in CRM_Member_BAO_Membership::buildMembershipBlock() (line 679 of /home/aevaasna/public_html/sites/all/modules/civicrm/CRM/Member/BAO/Membership.php).
    OgException: OG membership for entity user with ID 23 for group ID 1 (Canberra) already exists. in og_membership_create() (line 1068 of /home/aevaasna/public_html/sites/all/modules/og/og.module).


I'm new, so I don't even know if this is an issue with the payment gateway or some other part of CiviCRM..


Please help!!


Regards,

Karl
« Last Edit: November 09, 2012, 01:29:49 pm by karlg »

karlg

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: 7.15
  • MySQL version: 5.1.65-cll
  • PHP version: 5.3.17
Re: Undefined property: CRM_Contribute_Form_Contribution_Confirm::$_useForMember
November 11, 2012, 01:32:57 pm
Further investigation:

What I believe is happening is that if you are renewing a membership and include groups in the form, og_membership_create will be called.  This function will cause an exception if the person is already a member of the group.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Undefined property: CRM_Contribute_Form_Contribution_Confirm::$_useForMember

This forum was archived on 2017-11-26.