Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
fagoIt'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.
Comment #2
ISI-2 CreditAttribution: ISI-2 commentedHi 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.
Comment #3
fagoHanding over to LDAP provisioning.
Might it be that $user->roles is unset? I think it shouldn't be that way.
Comment #4
ISI-2 CreditAttribution: ISI-2 commentedHi 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
Comment #5
miglius CreditAttribution: miglius commentedWhich rules events and actions do you use? I cannot replicate this issue? Do you use the latest dev version of the ldap_provisioning?
Comment #6
ISI-2 CreditAttribution: ISI-2 commentedCurrently I use 6.x-1.0-alpha2 version of Ldap-provisioning.
It cause this problem?
Comment #7
drecute CreditAttribution: drecute commentedThis 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: