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) »
  • Membership Price Set Error
Pages: [1]

Author Topic: Membership Price Set Error  (Read 1913 times)

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Membership Price Set Error
November 14, 2011, 02:41:42 pm
3.4.7 - Configured a membership price set and used it on a contribution page. When I try to submit the contribution page, I get a form validation message:

Quote
Please correct the following errors in the form fields below:

Please select one of the memberships.

Even though I've selected one of the membership options. Can't get past it.

Noticed this page referenced some possible issues with already setup contribution pages: http://wiki.civicrm.org/confluence/display/CRMDOC40/Membership+Price+Sets

So I tried starting with a brand new contribution page, but get the same result.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Membership Price Set Error
November 17, 2011, 01:42:50 am
Looks like price set fields which you created for your membership page is not linked to any membership. You need to have atleast one price set field linked to membership and need to be selected, so that membership record is created.

HTh
Kurund
Found this reply helpful? Support CiviCRM

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Membership Price Set Error
November 17, 2011, 11:06:44 am
The problem may be that once you select 'use Membership PRice Set' the section showing your Memberships collapses - so this is an improvement that needs to be made in the code - i suggest you temporarily unselect 'use membership price set' - choose the Memberships you want to use - then reselect the Price Set.
Hope that makes sense since I am writing from memory
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Membership Price Set Error
November 17, 2011, 11:45:21 am
Kurund, thank you, but I don't think that's the issue. I have one price set field in the price set called "Membership Dues". It's a required radio field and each one of the three options is attached to a valid membership type.

Pete, I've tried your procedure and it doesn't fix the issue.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Membership Price Set Error
November 17, 2011, 12:17:00 pm
Sorry that wasn't the solution Jay.

Kurund - can you look at the issue of being able to set a Membership Contribution Page to be using a Membership Price Set even though no Memberships are selected.

You can see this here on demo
http://drupal.demo.civicrm.org/civicrm/admin/contribute/amount?action=update&reset=1&id=2
If I don't select any Membvership Types and do select the Membership Price Set, then I do not get a warning but the form fails when user tries to join
Code: [Select]
Database Error Code: Unknown column 'hugi' in 'where clause', 1054
Additional Details:
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -19
    [message] => DB Error: no such field
    [mode] => 16
    [debug_info] =>
SELECT       count( pfv.id ) AS count, pfv.id AS id
FROM         civicrm_price_field_value pfv
INNER JOIN    civicrm_membership_type mt ON mt.id = pfv.membership_type_id
WHERE        pfv.id IN ( hugi )
GROUP BY     mt.member_of_contact_id [nativecode=1054 ** Unknown column 'hugi' in 'where clause']
    [type] => DB_Error
    [user_info] =>
SELECT       count( pfv.id ) AS count, pfv.id AS id
FROM         civicrm_price_field_value pfv
INNER JOIN    civicrm_membership_type mt ON mt.id = pfv.membership_type_id
WHERE        pfv.id IN ( hugi )
GROUP BY     mt.member_of_contact_id [nativecode=1054 ** Unknown column 'hugi' in 'where clause']
    [to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="
SELECT       count( pfv.id ) AS count, pfv.id AS id
FROM         civicrm_price_field_value pfv
INNER JOIN    civicrm_membership_type mt ON mt.id = pfv.membership_type_id
WHERE        pfv.id IN ( hugi )
GROUP BY     mt.member_of_contact_id [nativecode=1054 ** Unknown column 'hugi' in 'where clause']"]
)

I think the problem is that the PriceSet is selected before the membership types and causes the membership types table to disappear - should the Price Set be shown below the Member Types table so this isn't so confusing to admin.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Membership Price Set Error
November 17, 2011, 03:22:14 pm
hmm feel like i am getting the original problem now. when i set Price Set on the membership screen of the Contribution page config it keeps unsetting the Membership Types I have selected.
Results in
Code: [Select]
Please correct the following errors in the form fields below:
Please select at least one membership option.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Membership Price Set Error
November 17, 2011, 03:36:36 pm
so i have it working on one site with 3.4.7 but i may have set up that Price Set/membership when it was 3.4.6 - but cloning that working one and saving results in all the Membership Types that were set being lost.

Bug?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Membership Price Set Error
November 17, 2011, 04:27:42 pm
Pete - I tried to recreate this problem on the 3.4.7 demo - but couldn't get either issue to recreate.

I set up a membership price set w/ 2 price fields, 2 membership type options (radio button style) for each:
http://drupal.demo.civicrm.org/civicrm/admin/price/field?reset=1&action=browse&sid=2

I added that to a new contribution page:
http://drupal.demo.civicrm.org/civicrm/admin/contribute/membership?reset=1&action=update&id=5

I also made a copy of the price set and checked it's preview:
http://drupal.demo.civicrm.org/civicrm/admin/price?reset=1

Price option membership type links maintained throughout.

Possibly you're setup / options are quite different and are triggering this ???
Protect your investment in CiviCRM by  becoming a Member!

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Membership Price Set Error
November 17, 2011, 04:51:50 pm
dang - my bad - it was the 'make a radio button' option in the price set - i hadn't done that bit - and of course because I had already created a Text/Numeric I wasn't seeing the 'membership' options.

Scenario is Club joins up but pays on a per capita basis.

So I have made a $0 for the Club membership and done the per capita as a numeric @ $10 each - and now  just have to hide the Club $0 since it is the only option and is required/default.

Sweet - sorry for messing with your mind.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Membership Price Set Error

This forum was archived on 2017-11-26.