Hi all,

I'm running....

Drupal Pressflow 6.22
Content Profile 6.x-1.0
Auto Assign Role 6.x-1.2

After I create my content profile node type and then go to this page: www.mysite.com/admin/content/node-type/my-node-type/profile to edit the Content Profile settings I get the following error message when the screen loads.

Warning: Invalid argument supplied for foreach() in form_type_checkboxes_value() (line 1212 /includes/form.inc)

To replicate on a blank install.

1.) Install/enable Content Profile.
2.) Install/enable Auto Assign Role.
3.) Create your Content Profile Node Type.
4.) Go to the edit page to edit your new node type.
5.) Click on Content Profile to edit the Content Profile Settings for that node type.

You should see the error at the top of the screen. Disable Auto Assign Role module and the error will go away.

Thanks for reading,
-Tim

Comments

vuquochuy’s picture

In autoassignrole_content_profile_settings function of autoassignrole.module, you change
$autoassignrole['values'] = array_keys(user_roles((TRUE)));
with
$autoassignrole['autoassignrole_use'] = array_keys(user_roles((TRUE)));
It works.

hejazee’s picture

Thanks.
I had the same problem. I used your solution and the error disappeared.
It seems that it works.

maddentim’s picture

Status: Active » Closed (duplicate)

This is fixed in 6.x-1.x-dev. Dup of #755308: Content profile settings are not saved

Would be nice to get a release out someday...

fromtheindia’s picture

Thanks,
It worked for me!

carrierawks’s picture

#1 worked for me, thanks!

rafiqj’s picture

Thanks vuquochuy it helped me a lot :)