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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error adding role sync rule
Pages: [1]

Author Topic: Error adding role sync rule  (Read 875 times)

sdstern

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal 7
  • MySQL version: 5.1.47
  • PHP version: 5.3.5
Error adding role sync rule
September 27, 2011, 12:07:54 pm
On a brand new CiviCRM install on Drupal 7. What's the fix?

I'm attempting to link the member role "Member" to the Civicrm role "member".  When I click the submit button,
 
PDOException: SQLSTATE[HY000]: General error: 1364 Field 'rule_id' doesn't have a default value: INSERT INTO{civicrm_member_roles_rules} (rid, type_id, status_codes) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 5 [:db_insert_placeholder_1] => 1 [:db_insert_placeholder_2] => a:4:{i:0;s:7:"current";i:1;s:7:"expired";s:7:"current";a:3:{i:0;s:1:"1";i:1;s:1:"2";i:2;s:1:"3";}s:7:"expired";a:4:{i:0;s:1:"4";i:1;s:1:"5";i:2;s:1:"6";i:3;s:1:"7";}} ) in civicrm_member_roles_add_rule_form_submit() (line 454 of /var/www/ooga-crm/drupal/sites/all/modules/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module)



Update:  Using Synchronize Users To Contacts produces:

Sorry. A non-recoverable error has occurred.
DB Error: no such table
Error Details
Return to home page.


« Last Edit: September 27, 2011, 01:56:05 pm by sdstern »

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Error adding role sync rule
September 28, 2011, 10:38:44 am
Do you have roles created...and what membership types do you have created?

If not, try that.

If so, you may have found a bug please report it on the issue tracker at:

http://issues.civicrm.org/jira/browse/CRM
Try CiviTeacher: the online video tutorial CiviCRM learning library.

sdstern

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.0.8
  • CMS version: Drupal 7
  • MySQL version: 5.1.47
  • PHP version: 5.3.5
Re: Error adding role sync rule
September 28, 2011, 11:39:26 am
In Drupal, I created a role called "Members".  I created  a group in CiviCRM called "Members".  I created a membership type called "Member".  Not very imaginative, but there you are. :)

I'm trying to link the Drupal role "Members" to the CiviCRM membership type "Member".  I'll file a bug report because it appears that the installation does not correctly create tables.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error adding role sync rule

This forum was archived on 2017-11-26.