Download & Extend

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

Project:LDAP provisioning
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

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

#1

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.

#2

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.

#3

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.

#4

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

#5

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?

#6

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

#7

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;