Closed (fixed)
Project:
Workflow-ng
Version:
5.x-2.1
Component:
State Machines
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2008 at 20:24 UTC
Updated:
31 Jul 2008 at 04:47 UTC
If a user tries to register with a username that is already in use (regardless of case), the following error is thrown:
"Fatal error. Unsupported operand types in home/public_html/sites/all/modules/workflow_ng/states.module on line 163
Comments
Comment #1
yuriy.babenko commentedI'm getting the same error.
Comment #2
yuriy.babenko commentedLine 163 is
I printed out
$user->rolesanddrupal_map_assoc($edit['roles']), and saw that$user->rolesis simply empty, so I added a check right above it to set it to an empty array:This seems to have fixed it...
Comment #3
fagohm, I can't reproduce it. Anyway, I've added this check to the state module.
Comment #4
yuriy.babenko commentedI'm not sure how to reproduce it, or why it was even happening.
The way I came across is was this: I was browsing administration pages... suddenly I get two drupal errors: one shows a query trying to insert `UID` and `created` data into {users}, with a "duplicate uid" error, and the other something similar from one of my custom modules. I look at my module and that query is under the 'insert' case of hook_user(). I then went to mysite.com/cron.php, and saw the error reported above.
Basically, something was trying to create a new user. Wasn't me, and the site is in development, so there aren't any active users. It's possible that the client was messing with it at the time, but unlikely... weird.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.