Answers.Body: <p>We got this working using this rule:</p>
  
  <pre><code>{ "rules_friends_tag_account_create" : {
  "LABEL" : "Self Create User Account and login",
  "PLUGIN" : "reaction rule",
  "OWNER" : "rules",
  "TAGS" : [ "CiviCRM", "CiviCRM User" ],
  "REQUIRES" : [ "rules", "civicrm" ],
  "ON" : { "civicrm_entity_tag_create" : [] },
  "IF" : [ { "data_is" : { "data" : [ "civicrm-entity-tag:tag-id" ], "value" : "163" } }
  ],
  "DO" : [ { "civicrm_entity_action_load_create_user" : {
  "USING" : {
  "civicrm_contact" : [ "civicrm-entity-tag:entity-id-contact" ],
  "is_active" : "1",
  "notify" : "1" 
  },
  "PROVIDE" : { "civicrm_user" : { "civicrm_user" : "Created or Loaded Drupal User" } }
  }
  }
  ]
  }
  }
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-05T10:30:57.627Z
Answers.LastActivityDate: 2017-01-05T12:25:43.947Z
Answers.LastEditDate: 2017-01-05T12:25:43.947Z
Answers.UserDisplayName: Nicola
Answers.Body: <p>There's been some updated to the Create or Load Drupal User action in CiviCRM Entity beta6, that has improved handling of user creation. Grab beta6 or higher to get the improvement. </p>
  
  <p>If there are continued problems, make a support request / bug issue in the module issue queue on D.O and we'll figure it out </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-23T04:14:54.090Z
Answers.LastActivityDate: 2017-02-23T04:14:54.090Z
Answers.UserDisplayName: jackrabbithanna
Body: <p>I am trying to create a rule based on the blog post here: <a href="https://civicrm.org/blog/petednz/creating-drupal-users-made-easy-for-single-or-multiple-contacts-via-civi-imports-and" rel="nofollow noreferrer">https://civicrm.org/blog/petednz/creating-drupal-users-made-easy-for-single-or-multiple-contacts-via-civi-imports-and</a></p>
  
  <p>I'm recreating the rule manually but when I try to create the action 'Create linked drupal user account' I get this error, does anyone know why?</p>
  
  <blockquote>
    <p>2016/11/07 15:09:43 [error] 28899#28899: *113846 FastCGI sent in
    stderr: "PHP message: PHP Fatal error: Unsupported operand types in
    /var/www/xxxxxx/includes/form.inc on line 2760" while reading response
    header from upstream, client: x.x.x.x, server: example.com, request:
    "POST /system/ajax HTTP/1.1", upstream:
    "fastcgi://unix:/var/run/php5-fpm.sock:", host: "example.com",
    referrer:
    "<a href="https://example.com/admin/config/workflow/rules/reaction/manage/rules_entity_tag_create_drupal_user/add/1/action" rel="nofollow noreferrer">https://example.com/admin/config/workflow/rules/reaction/manage/rules_entity_tag_create_drupal_user/add/1/action</a>"</p>
  </blockquote>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-07T21:06:17.960Z
Comments.Text: Any reason you didn't try just with importing the Rule? Did you grab CiviCRM Entity from https://github.com/eileenmcnaughton/civicrm_entity
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-05T10:30:11.007Z
Comments.Text: Think we tried that but it didn't work. This did however:
Comments.UserDisplayName: Nicola
Tags: <drupal><user-account><drupal-rules>
Title: 500 error when creating action in rule ''Create linked drupal user account''
ThreadText: # 500 error when creating action in rule ''Create linked drupal user account''
  
  (Asked by: username_0 on 2016-11-07)
  
  I am trying to create a rule based on the blog post here: <https://civicrm.org/blog/petednz/creating-drupal-users-made-easy-for-single-or-multiple-contacts-via-civi-imports-and>
  
  I'm recreating the rule manually but when I try to create the action 'Create linked drupal user account' I get this error, does anyone know why?
  
  > 2016/11/07 15:09:43 [error] 28899#28899: \*113846 FastCGI sent in
  > stderr: "PHP message: PHP Fatal error: Unsupported operand types in
  > /var/www/xxxxxx/includes/form.inc on line 2760" while reading response
  > header from upstream, client: x.x.x.x, server: example.com, request:
  > "POST /system/ajax HTTP/1.1", upstream:
  > "fastcgi://unix:/var/run/php5-fpm.sock:", host: "example.com",
  > referrer:
  > "<https://example.com/admin/config/workflow/rules/reaction/manage/rules_entity_tag_create_drupal_user/add/1/action>"
  
  **Tags:** drupal, user-account, drupal-rules
  
  > **Comments:**
  > **username_1**: Any reason you didn't try just with importing the Rule? Did you grab CiviCRM Entity from https://github.com/eileenmcnaughton/civicrm_entity  
  > **username_0**: Think we tried that but it didn't work. This did however:  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2017-01-05. Score: 1 | Accepted answer
  
  We got this working using this rule:
  { "rules_friends_tag_account_create" : {
  "LABEL" : "Self Create User Account and login",
  "PLUGIN" : "reaction rule",
  "OWNER" : "rules",
  "TAGS" : [ "CiviCRM", "CiviCRM User" ],
  "REQUIRES" : [ "rules", "civicrm" ],
  "ON" : { "civicrm_entity_tag_create" : [] },
  "IF" : [ { "data_is" : { "data" : [ "civicrm-entity-tag:tag-id" ], "value" : "163" } }
  ],
  "DO" : [ { "civicrm_entity_action_load_create_user" : {
  "USING" : {
  "civicrm_contact" : [ "civicrm-entity-tag:entity-id-contact" ],
  "is_active" : "1",
  "notify" : "1" 
  },
  "PROVIDE" : { "civicrm_user" : { "civicrm_user" : "Created or Loaded Drupal User" } }
  }
  }
  ]
  }
  }
  
  
  ---
  
  ### Answer by username_2 on 2017-02-23. Score: 0
  
  There's been some updated to the Create or Load Drupal User action in CiviCRM Entity beta6, that has improved handling of user creation. Grab beta6 or higher to get the improvement.
  
  If there are continued problems, make a support request / bug issue in the module issue queue on D.O and we'll figure it out
  
  
  ---
  
  