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) »
  • [solved]How does civicrm know "its me" even if I'm not logged in @ contrib page?
Pages: [1]

Author Topic: [solved]How does civicrm know "its me" even if I'm not logged in @ contrib page?  (Read 4579 times)

shinzan

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5.8
  • MySQL version: 5
  • PHP version: 5
[solved]How does civicrm know "its me" even if I'm not logged in @ contrib page?
February 16, 2013, 02:36:58 pm
So I have written a custom dashboard that makes some functionality hacks to civicrm and one of them is it logs a user out of Joomla before redirecting them to the membership contrib page. 

I know the logout code works because its just an api call, and the fact that i have registered menu items that dissappear when i get to the contribution page, thus confirming I've logged out.  I can further confirm I'm logged out by clicking the home link and seeing the login module so I just want to get that out of the way, I'm logged out.

However when i hit the contribution page, I see the "renewal text" that is it displays the text that people see when renewing a membership not when signing up for the first time.

This is creating problems for parents who are signing up several childeren they all get assigned the same membership number despite them making membership contributions at the membership page and they are not logged in!  It is somehow retaining the civicrm_id of the contact table they were when the initially logged in and just keeps renewing the same membership over and over.  Is there a cookie that retains this info somehwere?  There has to be something other than the session that is retaining this info somewhere can anyone point me in the right direction?

Best Regards,

David
« Last Edit: February 17, 2013, 10:12:47 pm by shinzan »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: How does civicrm know "its me" even if I'm not logged in @ contrib page?
February 17, 2013, 03:11:46 am
You see this renewal text before you enter your email address and submit?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

shinzan

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5.8
  • MySQL version: 5
  • PHP version: 5
Re: How does civicrm know "its me" even if I'm not logged in @ contrib page?
February 17, 2013, 07:59:48 pm
I see the "NEW MEMBER" text before filling out the form (as expected on a new member) however it does not treat the membership as a new it magically combines it and overwrites another members in the database with the same email.

Ok let me start over,

Scenario is this:

I login and I have 3 memberships under the same email.
Lets call them guy1 Lifemember, guy2 annual, guy3 annual.

I login and JOOMLA tags guy1 as the CMS Linked membership in the civicrm_uf_match as expected. (Fine)
So I manually delete that record in the civicrm_uf_match table for testing my theory

Next i COMPLETELY log out of joomla and this is fully confirmed by not having access to any registered menu items

Next I go to the membership contribution page and i get the text that says you are creating a brand new member (FINE)

HOWEVER when i add in the data and make the contribution for the new member (even though I use the same email address) CIVCRM overwrites all of Guy1's data and his life membership with Guy4 (the new test) and gives him an annual membership and the civicrm_uf_match record is remade matching this contact

It seems that the contribution page is taking it upon itself to find the duplicate email address in the contact table and being 'helpful' by not allowing a 2nd membership to be made under this single email.

How can I stop that behavior.  We must have multiple memberships under the same email address its our business model we do not do family memberships.


UPDATE #3
http://forum.civicrm.org/index.php?topic=27183.0
Definately must be my problem, I don't see how to turn off these rules I don't want it merging people based on household or email. Still looking on how to disable.

Best regards,

David
« Last Edit: February 17, 2013, 09:57:31 pm by shinzan »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How does civicrm know "its me" even if I'm not logged in @ contrib page?
February 17, 2013, 09:51:45 pm

have u tried changing the civicrm dedupe rules to use a different dedupe than the default.

the default basically says: "match on email address" and hence u get the below behavior

if you change that, your problems might be resolved

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

shinzan

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5.8
  • MySQL version: 5
  • PHP version: 5
Re: How does civicrm know "its me" even if I'm not logged in @ contrib page?
February 17, 2013, 10:12:27 pm
I did find it just now, the problem was indeed the duplicate rules, my custom hack allows people to have multiple memberships with only 1 email address and edit them all independantly, it was absolutely the default duplicate email with its 10 weight.  I switched away from the duplicate default rule to the  'Individual Complete Inbuilt'  and lowere the email to 1 and everything is working as it should now whew!

Best Regards and thanks for the help!

David

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • [solved]How does civicrm know "its me" even if I'm not logged in @ contrib page?

This forum was archived on 2017-11-26.