I got this on the content type creation page:

Notice : Undefined index: create_roles dans content_type_extras_node_type_form() (ligne 167 dans [...]/content_type_extras/includes/content_type_extras.node_type_form.inc).
Notice : Undefined index: edit_roles dans content_type_extras_node_type_form() (ligne 168 dans [...]/content_type_extras/includes/content_type_extras.node_type_form.inc).
Notice : Undefined index: delete_roles dans content_type_extras_node_type_form() (ligne 169 dans [...]/content_type_extras/includes/content_type_extras.node_type_form.inc).
Warning : array_keys() expects parameter 1 to be array, null given dans content_type_extras_node_type_form() (ligne 187 dans [...]/content_type_extras/includes/content_type_extras.node_type_form.inc).
Warning : array_keys() expects parameter 1 to be array, null given dans content_type_extras_node_type_form() (ligne 193 dans [...]/content_type_extras/includes/content_type_extras.node_type_form.inc).
Warning : array_keys() expects parameter 1 to be array, null given dans content_type_extras_node_type_form() (ligne 199 dans [...]/content_type_extras/includes/content_type_extras.node_type_form.inc).
Warning : Invalid argument supplied for foreach() dans form_type_checkboxes_value() (ligne 2251 dans [...]/includes/form.inc).
Warning : Invalid argument supplied for foreach() dans form_type_checkboxes_value() (ligne 2251 dans [...]/includes/form.inc).
Warning : Invalid argument supplied for foreach() dans form_type_checkboxes_value() (ligne 2251 dans [...]/includes/form.inc).

This occurs when no role is selected for default permissions. $selected_perms[$type] = array(); should be added in content_type_extras.node_type_form.inc at line 268 in function content_type_extras_get_selected_roles().

Comments

wOOge’s picture

Same here - this error occurs when:

- No administrative role is selected in /admin/config/people/accounts
- AND no role is selected to Administer content type defaults in /admin/people/permissions

Clean install of D7, 7.12, using 7.x-1.7 of the module.

bocaj’s picture

Status: Needs review » Fixed

This should now be resolved in the latest commit: http://drupalcode.org/project/content_type_extras.git/commit/0540ddf. Will show in next dev release which will be released shortly.

Thanks to @GaelG and @wOOge for reporting this!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

file name added