I get the following fatal error when CREATING a user through LDAP provisioning:

Fatal error: Unsupported operand types in .../rules/rules/modules/rules.events.inc on line 45

For the solution you might have a look at http://drupal.org/node/362799. It suggests $account->roles is not an array.

Comments

fago’s picture

Priority: Critical » Minor

It's surely not critical, when it's only occurring with those ldap module.

> For the solution you might have a look at http://drupal.org/node/362799. It suggests $account->roles is not an array.

That might be the cause, yes. But the question is, shouldn't it be there? I think so. Probably, the ldap module should add this array, even if it's empty.

ISI-2’s picture

Hi Jan,
integrating the module LDAP provisioning with Drupal I have the same problem.
Then you have solved this problem? The state is yet active. Thank you for your cooperation.
Angelo.

fago’s picture

Project: Rules » LDAP provisioning
Version: 6.x-1.0 » 6.x-1.x-dev
Component: Rules Engine » Code

Handing over to LDAP provisioning.

Might it be that $user->roles is unset? I think it shouldn't be that way.

ISI-2’s picture

Hi Jan,
excuse me but I am new in Drupal and I am inexperienced. You might suggest precisely what you did to resolve the anomaly?
You tried to set the variable $user-> roles?
In what way?
Thanks in advance

Angelo

miglius’s picture

Status: Active » Postponed (maintainer needs more info)

Which rules events and actions do you use? I cannot replicate this issue? Do you use the latest dev version of the ldap_provisioning?

ISI-2’s picture

Currently I use 6.x-1.0-alpha2 version of Ldap-provisioning.
It cause this problem?

drecute’s picture

This issue is not caused by ldap-provisioning module alone.

If you are implementing hook_user in any custom module and you want to perform op 'insert' as well as modifying the user role, make sure you add this:

  $edit['roles'] += $account->roles;