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) »
  • Civi Groups forced Parent
Pages: [1]

Author Topic: Civi Groups forced Parent  (Read 3300 times)

robbiemc

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
Civi Groups forced Parent
July 12, 2013, 10:31:37 am
Hi

I'm have a Civi 4.3.5 Drupal 7, Multi-site, multiple-language build but having an issue with Groups after the upgrade to 4.3.5.

When I create a Group be it regular or smart it is forcing a parent group even if I leave the 'Add Parent' dropdown to - select -. If I then go to settings and try to remove the parent group I get a Make sure at least one parent group is set error message...???

Has anybody else come across this problem and found a resolution?

Cheers
Robbie

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civi Groups forced Parent
July 15, 2013, 08:46:43 am
Can you try this on the demo site and see if it's the same there?
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.

robbiemc

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
  • CiviCRM version: 4.5.0
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.37
  • PHP version: 5.3.28
Re: Civi Groups forced Parent
July 15, 2013, 08:52:41 am
Hi Hershel

I tried on the demo site but there was no issue. I was able to add the groups as normal.

Robbie

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civi Groups forced Parent
July 17, 2013, 06:36:32 am
I'm not sure what the problem is. Hopefully someone else can answer....
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.

Agileware

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Civi Groups forced Parent
November 24, 2013, 07:37:09 pm
I reproduced this locally (4.4.2) and on the 4.4.1 demo site by enabling Multi-site.  If you're not editing the Domain Group, the parent group select widget becomes mandatory - which is a sure pain when you're trying to add a new domain - for other use cases you could probably argue that a domain parent should be selected.
At group creation, the domain group is automatically select as parent, even if you use '- select -'; if you haven't selected a domain group (= 0), it seems to assign the highest existing group id.

According to git blame, the offending lines changed before 4.2.1 ...

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Civi Groups forced Parent
November 24, 2013, 07:47:04 pm
Yes, part of enabling multisite is that you are required to have parent groups. If you enable the multisite extension this assumption is altered. However, the question is why you are enabling multisite because either it's not what you what you want, or you need to think it through & configure it correctly.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

LindseyM

  • I post frequently
  • ***
  • Posts: 229
  • Karma: 8
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3.6
Re: Civi Groups forced Parent
November 27, 2013, 01:00:04 pm
We also use multi-site and have exactly the same issue. Is there any way of altering the default parent group? As Agileware said, it defaults to the domain group which is a pain and I'd like to set an alternative default... even if that is Select. Can I?

Once a group has been parented to the domain group, I'm unable to 'unparent' it, even when I select a different new parent group at the same time. I get the following error message. Any thoughts on how to override this?


backTrace

#0 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/Error.php(148): CRM_Core_Error::backtrace()
#1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
#2 /mnt/disk/drupal7/sites/all/modules/civicrm/packages/PEAR.php(931): call_user_func((Array:2), Object(DB_Error))
#3 /mnt/disk/drupal7/sites/all/modules/civicrm/packages/DB.php(969): PEAR_Error->PEAR_Error("DB Error: unknown error", -1, 16, (Array:2), "INSERT IGNORE INTO civicrm_group_contact_cache (group_id,contact_id) (SELECT ...")
#4 /mnt/disk/drupal7/sites/all/modules/civicrm/packages/PEAR.php(564): DB_Error->DB_Error(-1, 16, (Array:2), "INSERT IGNORE INTO civicrm_group_contact_cache (group_id,contact_id) (SELECT ...")
#5 /mnt/disk/drupal7/sites/all/modules/civicrm/packages/DB/common.php(1905): PEAR->raiseError(NULL, -1, NULL, NULL, "INSERT IGNORE INTO civicrm_group_contact_cache (group_id,contact_id) (SELECT ...", "DB_Error", TRUE)
#6 /mnt/disk/drupal7/sites/all/modules/civicrm/packages/DB/mysql.php(898): DB_common->raiseError(-1, NULL, NULL, NULL, "1139 ** Got error 'unknown POSIX class name at offset 3' from regexp")
#7 /mnt/disk/drupal7/sites/all/modules/civicrm/packages/DB/mysql.php(327): DB_mysql->mysqlRaiseError()
#8 /mnt/disk/drupal7/sites/all/modules/civicrm/packages/DB/common.php(1216): DB_mysql->simpleQuery("INSERT IGNORE INTO civicrm_group_contact_cache (group_id,contact_id) (SELECT ...")
#9 /mnt/disk/drupal7/sites/all/modules/civicrm/packages/DB/DataObject.php(2421): DB_common->query("INSERT IGNORE INTO civicrm_group_contact_cache (group_id,contact_id) (SELECT ...")
#10 /mnt/disk/drupal7/sites/all/modules/civicrm/packages/DB/DataObject.php(1613): DB_DataObject->_query("INSERT IGNORE INTO civicrm_group_contact_cache (group_id,contact_id) (SELECT ...")
#11 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/DAO.php(155): DB_DataObject->query("INSERT IGNORE INTO civicrm_group_contact_cache (group_id,contact_id) (SELECT ...")
#12 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/DAO.php(917): CRM_Core_DAO->query("INSERT IGNORE INTO civicrm_group_contact_cache (group_id,contact_id) (SELECT ...", TRUE)
#13 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/GroupContactCache.php(476): CRM_Core_DAO::executeQuery("INSERT IGNORE INTO civicrm_group_contact_cache (group_id,contact_id) (SELECT ...")
#14 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(2634): CRM_Contact_BAO_GroupContactCache::load(Object(CRM_Core_DAO))
#15 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(2601): CRM_Contact_BAO_Query->addGroupContactCache((Array:1))
#16 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(2567): CRM_Contact_BAO_Query->savedSearch((Array:5))
#17 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(1394): CRM_Contact_BAO_Query->group((Array:5))
#18 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(1614): CRM_Contact_BAO_Query->whereClauseSingle((Array:5))
#19 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(481): CRM_Contact_BAO_Query->whereClause()
#20 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(442): CRM_Contact_BAO_Query->initialize()
#21 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(3973): CRM_Contact_BAO_Query->__construct((Array:1), (Array:1), NULL, TRUE, FALSE, 1, TRUE, TRUE, FALSE)
#22 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Group.php(211): CRM_Contact_BAO_Query::apiQuery((Array:1), (Array:1), NULL, NULL, 0, 0, FALSE)
#23 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/GroupContactCache.php(496): CRM_Contact_BAO_Group::getMember("654", FALSE)
#24 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(2634): CRM_Contact_BAO_GroupContactCache::load(Object(CRM_Core_DAO))
#25 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(2601): CRM_Contact_BAO_Query->addGroupContactCache((Array:1))
#26 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(2567): CRM_Contact_BAO_Query->savedSearch((Array:5))
#27 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(1394): CRM_Contact_BAO_Query->group((Array:5))
#28 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(1614): CRM_Contact_BAO_Query->whereClauseSingle((Array:5))
#29 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(481): CRM_Contact_BAO_Query->whereClause()
#30 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(442): CRM_Contact_BAO_Query->initialize()
#31 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Query.php(3973): CRM_Contact_BAO_Query->__construct((Array:1), (Array:1), NULL, TRUE, FALSE, 1, TRUE, TRUE, FALSE)
#32 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/GroupContactCache.php(202): CRM_Contact_BAO_Query::apiQuery((Array:1), (Array:1), NULL, NULL, 0, 0, FALSE)
#33 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Contact/BAO/Group.php(430): CRM_Contact_BAO_GroupContactCache::add("604")
#34 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Group/Form/Edit.php(454): CRM_Contact_BAO_Group::create((Array:30))
#35 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/Form.php(246): CRM_Group_Form_Edit->postProcess()
#36 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php(151): CRM_Core_Form->mainProcess()
#37 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php(128): CRM_Core_QuickForm_Action_Upload->realPerform(Object(CRM_Group_Form_Edit), "upload")
#38 /mnt/disk/drupal7/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Group_Form_Edit), "upload")
#39 /mnt/disk/drupal7/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Group_Form_Edit), "upload")
#40 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/Controller.php(316): HTML_QuickForm_Page->handle("upload")
#41 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/Page/Basic.php(374): CRM_Core_Controller->run()
#42 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/Page/Basic.php(178): CRM_Core_Page_Basic->edit(2, "692")
#43 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/Invoke.php(292): CRM_Core_Page_Basic->run((Array:2), NULL)
#44 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/Invoke.php(70): CRM_Core_Invoke::runItem((Array:13))
#45 /mnt/disk/drupal7/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:2))
#46 /mnt/disk/drupal7/sites/all/modules/civicrm/drupal/civicrm.module(436): CRM_Core_Invoke::invoke((Array:2))
#47 [internal function](): civicrm_invoke("group")
#48 /mnt/disk/drupal7/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:1))
#49 /mnt/disk/drupal7/index.php(21): menu_execute_active_handler()
#50 {main}

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Civi Groups forced Parent
November 27, 2013, 01:04:23 pm
Do you have the multisite extension enabled? The multisite extension moves the focus from a group hierarchy to shared group organisations in order to reduce the performance problems associated with hierarchical groups. With the multisite extension you can 'unparent' as long as the group_organisation is set.

Also, I don't enable multisite on the parent domain as it doesn't confer any benefit at that level.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

LindseyM

  • I post frequently
  • ***
  • Posts: 229
  • Karma: 8
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3.6
Re: Civi Groups forced Parent
November 27, 2013, 01:07:05 pm
Thanks for the speedy reply Eileen. I'll pass that info onto our tech team and see how we get on.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Civi Groups forced Parent

This forum was archived on 2017-11-26.