0

This is happening inconsistently, but often enough to be a problem.

So far, we have come across two issues with it:

#1 - A new user registers for the site. That user is then taken to a CiviCRM form for them to choose their payment level. Sometimes, the user is logged out between the drupal registration form and the CiviCRM form, leading to them being prompted to log in again when they reach the Civi payment form.

#2 - Background: We are currently testing some changes to our site, and so the admins all have multiple accounts, most of which have admin permissions.

An admin logs into the drupal site, and then goes to CiviCRM. For some reason, though, they are logged into one of their other admin accounts on CiviCRM. They go to "Find a member", and then click the link to the member's drupal profile. When Civi takes them back to drupal, it throws an error because they are logged into a different account on Drupal than on Civi.

We are using Drupal 7 and CiviCRM 4.6.28

  • Kimberlie - you may need to flesh this out more, ie be very specific about what you means by 'a user registers for the site'. Are they filling in the Drupal User form, are there any Civi Profiles set to be filled in as part of that, etc etc. Also what do you mean by 'admins have multiple accounts'? Each user should have a record in the uf_match table which links them to a unique civi contact. – petednz - fuzion May 25 '17 at 2:13
1

Are your users perhaps logging into an https page and then following a link to a http page (or vice-versa) ? I have seen such issues in that case. You need to be consistent, and set the Drupal $base_url, Civi CIVICRM_UF_BASEURL, and $civicrm_setting['URL Preferences'][] values all to either http or to https, and change any links in your content to use that same scheme also.

If you are not defining all four $civicrm_setting['URL Preferences'][] values in civicrm.settings.php, then those values are instead defined at Administer | System Settings | Resource URLs. While there, verify that the value of "Force Secure URLs (SSL)" is consistent with your intended scheme.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.