with a fresh version od drupal 7.12 and the latest dev of og and related modules when enabling modules and when first creating Group content type I get the following error

Warning: array_key_exists() expects parameter 2 to be array, null given in og_create_perms_list_bundles() (line 118 of D:\wamp\www\ogtest\sites\all\modules\og_create_perms\og_create_perms.module).
Warning: array_key_exists() expects parameter 2 to be array, null given in og_create_perms_list_bundles() (line 118 of D:\wamp\www\ogtest\sites\all\modules\og_create_perms\og_create_perms.module).
Warning: array_key_exists() expects parameter 2 to be array, null given in og_create_perms_list_bundles() (line 118 of D:\wamp\www\ogtest\sites\all\modules\og_create_perms\og_create_perms.module).

Comments

alesr’s picture

Same warning for me when I reinstalled the module og_create_perms.

amitaibu’s picture

wrong project... og_create_perms isn't part of OG core

alesr’s picture

@Amitaibu, I agree. This should be moved to the right project.
@artatac, I got this warning when I enabled some content type Features and got an error. The tables in db were created and when I reverted the db with Backup and Migrate it only changed the tables that were existing. The tables from failed features stayed. I did removed those tables that were causing problems like "table x already exists..." and this warning was gone.

amitaibu’s picture

Project: Organic Groups » Organic Groups create permissions
Version: 7.x-2.x-dev » 7.x-1.x-dev
Component: og.module » Code
leninfu’s picture

windsurfitaly’s picture

Warning: array_key_exists() expects parameter 2 to be array, null given in og_create_perms_list_bundles() (line 118 of /Users/leo/Sites/acquia-drupal722/sites/all/modules/contrib/og_create_perms/og_create_perms.module).

ufok’s picture

Notice: Undefined index: gid in og_create_perms_field_attach_validate() (line *** of /sites/all/modules/og_create_perms/og_create_perms.module).
You are not permitted to create article content outside a group

And the group was selected...

It using "/node/add" path to create content inside group...

manu56’s picture

Issue summary: View changes

Any update on this? I am getting the same problem after migrating to OG-2

jacktiong92’s picture

I am getting the same problem as well..No idea why.

czigor’s picture

Status: Active » Needs review
StatusFileSize
new5.82 KB

Effectively only 1 line has been changed, the rest is trailing whitespace etc.

tormi’s picture

StatusFileSize
new546 bytes

Patch with only that 1 important change (patch #10 failing currently).

tormi’s picture

.