implode(): Bad arguments. in /home/httpd/vhosts/sharedbans.com/httpdocs/modules/user.module on line 342.

Getting this message for specific users only while the function itself looks just fine,
anybody have any idea on how to fix this?

Comments

paddy_deburca’s picture

The only thing that I can see that _could_ be problematic is the code line 348 on Drupal 4.7 RC2

implode(',', array_keys($account->roles))

if $account->roles is not an array you would get such an error message.

Can you assign some roles, and re-perform what ever action you did to see if you can reproduce the error? If this solves the problem it either means that a check should be made before the implode - or the roles should be set _more_ correctly at account creation.

Paddy.

http://deburca.org, and http://amadain.net

jwilde’s picture

I am having the same problem on a couple of sites. It seems to depend on which contrib modules are installed. All registered users default to auth role so I am not sure changing the role status will have any affect. I suspect it might have something to do with the new $base_url stuff.

Jim