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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • error message when creating organic groups with civicrm 1.9
Pages: [1] 2

Author Topic: error message when creating organic groups with civicrm 1.9  (Read 6060 times)

DaraghOBrien

  • Guest
error message when creating organic groups with civicrm 1.9
November 18, 2007, 02:46:39 pm
Hi,

I get the attached error message when I create or edit/update an organic group in my drupal/civicrm set up. The organic groups I have created are not being replicated in CiviCRM. I'm running Drupal 5.3, Organic Groups 5.x-4.0 and CiviCRM 1.9 with OG CiviCRM Sync module enabled. I'm running PHP5.2.3 and mysql 5.0.45

I think I have everything set up OK, but I'm probably missing something trivial.

Thanks in advance

Daragh

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: error message when creating organic groups with civicrm 1.9
November 18, 2007, 03:30:19 pm

Please enable backtrace in your administer civicrm >> global settings >> debugging and cut-and-paste the backtrace to this forum topic

thanx

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

DaraghOBrien

  • Guest
Re: error message when creating organic groups with civicrm 1.9
November 19, 2007, 02:23:23 am
Thanks for the (as ever) quick response.

Here's the backtrace output:

backTrace


/hsphere/local/home/celticti/obriend.net/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 255
/hsphere/local/home/celticti/obriend.net/sites/all/modules/civicrm/CRM/Bridge/OG/Utils.php, fatal, 111
/hsphere/local/home/celticti/obriend.net/sites/all/modules/civicrm/CRM/Bridge/OG/Drupal.php, groupID, 194
/hsphere/local/home/celticti/obriend.net/sites/all/modules/civicrm/drupal/civicrm_og_sync.module, og, 118
, civicrm_og_sync_og,
/hsphere/local/home/celticti/obriend.net/includes/module.inc, call_user_func_array, 406
/hsphere/local/home/celticti/obriend.net/modules/og/og.module, module_invoke_all, 425
/hsphere/local/home/celticti/obriend.net/modules/og/og.module, og_save_subscription, 1328
/hsphere/local/home/celticti/obriend.net/modules/node/node.module, og_nodeapi, 479
/hsphere/local/home/celticti/obriend.net/modules/node/node.module, node_invoke_nodeapi, 657
/hsphere/local/home/celticti/obriend.net/modules/node/node.module, node_save, 2319
, node_form_submit,
/hsphere/local/home/celticti/obriend.net/includes/form.inc, call_user_func_array, 429
/hsphere/local/home/celticti/obriend.net/includes/form.inc, drupal_submit_form, 257
/hsphere/local/home/celticti/obriend.net/includes/form.inc, drupal_process_form, 79
/hsphere/local/home/celticti/obriend.net/modules/node/node.module, drupal_get_form, 2204
, node_add,
/hsphere/local/home/celticti/obriend.net/includes/menu.inc, call_user_func_array, 418
/hsphere/local/home/celticti/obriend.net/index.php, menu_execute_active_handler, 15

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: error message when creating organic groups with civicrm 1.9
November 19, 2007, 09:54:57 am

The module assumes that OG groups and CiviCRM groups are synced at all times. Thus when an OG is created we create the equivalent civicrm group. This was the requriement of the client project that funded this module

I suspect you installed the module after creating a few OG's. Sync will not work in this case (and throw a fatal error). You will need to write a batch script to sync  the OG's to civicrm groups. You can invoke

CRM_Bridge_OG_Drupal::nodeapi( $params, 'add' );

to do most of the work. If you do go down this route, please share your code in the forums

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

DaraghOBrien

  • Guest
Re: error message when creating organic groups with civicrm 1.9
November 20, 2007, 02:10:44 am
Lobo

I hadn't created any OG's before installing CiviCRM. I'd moved to a new dev sandbox running php5 to do the install of civicrm1.9.

Also, my php skills may not be up to coding a batch script as you've described (and the time I can devote to it is limited). As this is just a dev/test site that I'm working with for demo purposes I'll just reinstall from scratch and see if that fixes the issue.

I will see if I can find someone to do that batch script you've suggested though as it sounds like a useful utility that is missing from the toolbox. If I do find someone I'll let you know.

DaraghOBrien

  • Guest
Re: error message when creating organic groups with civicrm 1.9
November 20, 2007, 05:42:00 am
Lobo

Did a full clean reinstall of Drupal 5.3, Civicrm 1.9 and OG 5.x-4.0 to see if that would resolve the issue.

I had no OGs created, I activated the OG module after CiviCRM and before OG Sync. Does the synch look for a specific content type machine-name (e.g. group)? Do I need to have users and Contacts populated before creating the groups?

As I had no groups created before activating the OG synch module, I'm not sure if the batch script you suggest will actually do anything for my problem... I've dumped out the back trace.


backTrace


/hsphere/local/home/celticti/castlebridge-associates.com/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 255
/hsphere/local/home/celticti/castlebridge-associates.com/sites/all/modules/civicrm/CRM/Bridge/OG/Utils.php, fatal, 111
/hsphere/local/home/celticti/castlebridge-associates.com/sites/all/modules/civicrm/CRM/Bridge/OG/Drupal.php, groupID, 194
/hsphere/local/home/celticti/castlebridge-associates.com/sites/all/modules/civicrm/drupal/civicrm_og_sync.module, og, 118
, civicrm_og_sync_og,
/hsphere/local/home/celticti/castlebridge-associates.com/includes/module.inc, call_user_func_array, 406
/hsphere/local/home/celticti/castlebridge-associates.com/modules/og/og.module, module_invoke_all, 425
/hsphere/local/home/celticti/castlebridge-associates.com/modules/og/og.module, og_save_subscription, 1328
/hsphere/local/home/celticti/castlebridge-associates.com/modules/node/node.module, og_nodeapi, 479
/hsphere/local/home/celticti/castlebridge-associates.com/modules/node/node.module, node_invoke_nodeapi, 657
/hsphere/local/home/celticti/castlebridge-associates.com/modules/node/node.module, node_save, 2319
, node_form_submit,
/hsphere/local/home/celticti/castlebridge-associates.com/includes/form.inc, call_user_func_array, 429
/hsphere/local/home/celticti/castlebridge-associates.com/includes/form.inc, drupal_submit_form, 257
/hsphere/local/home/celticti/castlebridge-associates.com/includes/form.inc, drupal_process_form, 79
/hsphere/local/home/celticti/castlebridge-associates.com/modules/node/node.module, drupal_get_form, 2204
, node_add,
/hsphere/local/home/celticti/castlebridge-associates.com/includes/menu.inc, call_user_func_array, 418
/hsphere/local/home/celticti/castlebridge-associates.com/index.php, menu_execute_active_handler, 15


 Sorry. A non-recoverable error has occurred.
We experienced an unexpected error. Please file an issue with the backtrace

Return to home page.

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: error message when creating organic groups with civicrm 1.9
November 20, 2007, 08:34:56 am

daragh:

can you please file an issue for this. We'll take a look at this and fix it in the 2.0 release cycle

thanx

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

kbeasley

  • Guest
Re: error message when creating organic groups with civicrm 1.9
November 28, 2007, 03:40:26 am
Is there a solution developed yet? I have a client's website that I am having the same problems which need to be created using OG_Sync. Is there a work around until 2.0 release? HELP!!!! :)

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: error message when creating organic groups with civicrm 1.9
November 28, 2007, 07:24:35 am

You can help by first posting the issue and then potentially contributing a patch. An issue for this has not yet been filed

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

kbeasley

  • Guest
Re: error message when creating organic groups with civicrm 1.9
November 28, 2007, 07:43:33 am
I would love to be able to help fix this problem. I have experience with PHP so if I could be directed in the right direction, I'm willing to help out.

Thanks in advance'
Kim Beasley
www.KimBeasley.com

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: error message when creating organic groups with civicrm 1.9
November 28, 2007, 08:06:42 am

1. can you please file an issue on the issue tracker

2. Talking about this on IRC might be easier. Since the code actually trips on a fatal error, you can follow the code path with backtrace enabled (in global settings >> debugging) and see the exact line and trace back from there

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

kbeasley

  • Guest
Re: error message when creating organic groups with civicrm 1.9
November 28, 2007, 05:51:12 pm
Please send me your IRC name via PM so that I can chat with you about his issue. Thanks!

Thanks in advance
Kim Beasley
www.KimBeasley.com

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: error message when creating organic groups with civicrm 1.9
November 29, 2007, 11:02:16 am
Lobo and other folks who might be able to help hang out at #civicrm on irc.freenode.net
Protect your investment in CiviCRM by  becoming a Member!

DaraghOBrien

  • Guest
Re: error message when creating organic groups with civicrm 1.9
November 30, 2007, 08:25:28 am
Lobo - issue for this has been raised... http://issues.civicrm.org/jira/browse/CRM-2438 which was raised 21/Nov.

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: error message when creating organic groups with civicrm 1.9
November 30, 2007, 11:26:00 am

Sorry that we did not catch it. It was in the 1.8 queue due to a bad filter expression. its on our 2.0 list now and we'll fix it over the next couple of weeks

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

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • error message when creating organic groups with civicrm 1.9

This forum was archived on 2017-11-26.