Forum (forum) 7.26
OG Forum (og_forum) 7.x-2.0-alpha1+1-dev
Forum Access (forum_access) 7.x-1.2
ACL (acl) 7.x-1.0

Gets phat error when creating a new container/forum and assigning it to a group;

( ! ) Fatal error: Call to undefined function og_get_users_by_roles() in D:\Wamp\www\project_m\sites\all\modules\og_forum_D7\og_forum.module on line 314
Call Stack
#	Time	Memory	Function	Location
1	0.0003	156744	{main}( )	..\index.php:0
2	0.1909	21388848	menu_execute_active_handler( )	..\index.php:21
3	0.1914	21443168	call_user_func_array ( )	..\menu.inc:517
4	0.1914	21443352	forum_form_main( )	..\menu.inc:517
5	0.1914	21443520	drupal_get_form( )	..\forum.admin.inc:29
6	0.1914	21444144	drupal_build_form( )	..\form.inc:131
7	0.1932	21681848	drupal_process_form( )	..\form.inc:380
8	0.2162	22550192	form_execute_handlers( )	..\form.inc:868
9	0.2162	22553384	forum_form_submit( )	..\form.inc:1478
10	0.2162	22554392	taxonomy_term_save( )	..\forum.admin.inc:101
11	0.2379	23994448	field_attach_insert( )	..\taxonomy.module:641
12	0.2382	23994592	_field_invoke( )	..\field.attach.inc:938
13	0.2383	23996000	entityreference_field_insert( )	..\field.attach.inc:209
14	0.2398	23996496	OgBehaviorHandler->insert( )	..\entityreference.module:258
15	0.2398	23996520	OgBehaviorHandler->OgMembershipCrud( )	..\OgBehaviorHandler.class.php:43
16	0.2435	24427440	og_group( )	..\OgBehaviorHandler.class.php:134
17	0.2495	24785424	OgMembership->save( )	..\og.module:2039
18	0.2695	24796944	Entity->save( )	..\og.membership.inc:77
19	0.2695	24796976	EntityAPIController->save( )	..\entity.inc:197
20	0.2710	24808976	EntityAPIController->invoke( )	..\entity.controller.inc:455
21	0.2719	24811032	module_invoke_all( )	..\entity.controller.inc:352
22	0.2722	24812168	call_user_func_array ( )	..\module.inc:895
23	0.2722	24812352	og_forum_og_membership_insert( )	..\module.inc:895

Comments

smscotten’s picture

Looks to me as thought that call ought to be og_forum_get_users_by_roles() since I see no og_get_users_by_roles() in either OG or OG Forum D7.

hoersche’s picture

smscotten is correct.

Patch attached.

vegantriathlete’s picture

Note: This function call occurs only when you have Forum Access installed. It is called from within hook_og_membership_insert() and hook_og_membership_delete().

vegantriathlete’s picture

Status: Active » Closed (duplicate)

I'm going to mark this as duplicate and let #1844104: non-group-member can post in private forum fix the problem, even though it's an overreach by 1844104. It's just going to make it easier for me to finally get all this sorted out.