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
Comment #1
vuquochuy commentedIn 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.
Comment #2
hejazee commentedThanks.
I had the same problem. I used your solution and the error disappeared.
It seems that it works.
Comment #3
maddentim commentedThis 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...
Comment #4
fromtheindia commentedThanks,
It worked for me!
Comment #5
carrierawks commented#1 worked for me, thanks!
Comment #6
rafiqj commentedThanks vuquochuy it helped me a lot :)