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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • CiviGroup Roles Sync (was "The official demo site")
Pages: [1]

Author Topic: CiviGroup Roles Sync (was "The official demo site")  (Read 1239 times)

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
CiviGroup Roles Sync (was "The official demo site")
January 18, 2011, 11:10:08 pm
Hello,

I am wondering if it is possible to have admin access to Drupal portion of the demo site. The reason is that the module Group Role Sync does not seem to be working on my end, and I'd like to try it on the demo site.

The question I posted about this question is in this thread http://forum.civicrm.org/index.php/topic,18083.0.html .

Looking forward to your reply.

Thanks!
« Last Edit: January 19, 2011, 07:17:53 pm by charleslcso »

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: The official demo site
January 19, 2011, 01:05:00 am
Can you update your forum profile with CMS, CiviCRM version etc.

Kurund
Found this reply helpful? Support CiviCRM

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: The official demo site
January 19, 2011, 06:42:13 am

sorry no admin access on demo site

would be great if you can help debug that module and figure out what the issue is. might be worth upgrading to 3.3.3 and see if its fixed

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

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: The official demo site
January 19, 2011, 08:31:21 am
Hi Kurund and Lobo,

OK. Got the no admin access msg.

Can anyone confirm if this function is working on your production systems? I need to make sure that it is me who has got the configuration wrong...

Thanks!

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: The official demo site
January 19, 2011, 07:17:15 pm
Quote from: Donald Lobo on January 19, 2011, 06:42:13 am

sorry no admin access on demo site

would be great if you can help debug that module and figure out what the issue is. might be worth upgrading to 3.3.3 and see if its fixed

lobo

Hi Lobo

I tried using Drupal 6.20 and CiviCRM 3.3.3 this morning. Basically I do the following steps:
* enabled CiviGroup Roles Sync module
* added an Association Rule
* create a role named "church member" in Drupal
* create a group named "church member" in CiviCRM
* in Permissions, "church member" :
** has "access CiviCRM" checked
** has "civicrm_group_roles module | access settings" checked
* modified the default Profile in CiviCRM "Name and address" to:
** "Drupal User Registration" checked
** "Add new contacts to a Group" to "church member"
** "Drupal user account registration option" is set to "Account creation required"

Then I created a new user using "create new account" link using the above Profile. After the registration I got "warning: Parameter 1 to civicrm_group_contact_add() expected to be a reference, value given in /sites/all/modules/civicrm/drupal/modules/civicrm_group_roles/civicrm_group_roles.module on line 515."

I checked in Drupal and CiviCRM and the user has been created in both applications.

However, the Drupal Roles is still blank for this user. In CiviCRM, this user has been added to group "church member" successfully.

In conclusion, two things seem to be broken :
* the error msg above
* CiviGroup Roles Sync is not sync'ing

Kindly advise me if I should file a bug.

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: CiviGroup Roles Sync (was "The official demo site")
January 19, 2011, 07:52:56 pm

Hey charles:

the notice is just a warning message and can be ignored. this will be fixed in our next release of 3.3

For the next error, your best bet would be to debug the code in the file:

civicrm/drupal/modules/civicrm_group_roles/civicrm_group_roles.module

and figure out why the role is not being assigned. If you are not a developer and this is important to your org, you might want to consider hiring someone to do the needful

the drupal modules that we ship with civicrm are for the most part community contributed and maintained

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

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: CiviGroup Roles Sync (was "The official demo site")
January 19, 2011, 08:27:15 pm

i took a closer look at this to see what was happening and why. Seems like in this case the order of things mattered:

When Civi creates a contact via the profile the drupal user has not yet been created and hence cannot be assigned a role.

You might want to change things by adding a profile to drupal user registration form (via profile settings) and see if that works

you might also want to try logging in as the newly created user and see if that gives the user the role

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

rjb

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Re: CiviGroup Roles Sync (was "The official demo site")
January 31, 2011, 03:25:14 am
Quote from: Donald Lobo on January 19, 2011, 07:52:56 pm

the notice is just a warning message and can be ignored. this will be fixed in our next release of 3.3


Hi, Lobo. I just upgraded to 3.3.3 and still get this warning message upon any login. Did it make the fixlist?

Thanks,

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: CiviGroup Roles Sync (was "The official demo site")
February 02, 2011, 05:35:01 am
I am getting the same message on 6.20 and 3.3.3  company staff should be members of the drupal admin role, but it's not happening, I need to add them manually.... And even when I add them manually, I still get the error message.

B.

bdanza

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 3
  • CiviCRM version: 3.4.6
  • CMS version: Joomla 1.5, Drupal 6.2x
Re: CiviGroup Roles Sync (was "The official demo site")
February 02, 2011, 05:45:58 am
Just ran a little test,

Created a new drupal role,
staff <-----> new drupal role (sync)
put user in staff group, they still get the error message.

B.

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: CiviGroup Roles Sync (was "The official demo site")
February 02, 2011, 07:01:05 am

the warning message fix will be part of 3.3.4 which will be out sometime in the second half of this month

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

rjb

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Re: CiviGroup Roles Sync (was "The official demo site")
February 02, 2011, 07:23:17 am
Very good news - thanks, Lobo.

r

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • CiviGroup Roles Sync (was "The official demo site")

This forum was archived on 2017-11-26.