Title: [Plugin: BuddyPress Courseware] Warning: array_merge() [function.array-merge]: Argument #2
Last modified: August 20, 2016

---

# [Plugin: BuddyPress Courseware] Warning: array_merge() [function.array-merge]: Argument #2

 *  Resolved [Doug M](https://wordpress.org/support/users/nes-native-english-services/)
 * (@nes-native-english-services)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-buddypress-courseware-warning-array_merge-functionarray-merge-argument-2/)
 * Fresh installs, no extras…
 * BuddyPress – Version 1.6.
    BuddyPress Courseware – Version 0.9.7
 *     ```
       Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/dougm196/public_html/nes/wp-content/plugins/buddypress-courseware/roles/roles.class.php on line 269
   
       Warning: Invalid argument supplied for foreach() in /home/dougm196/public_html/nes/wp-content/plugins/buddypress-courseware/roles/roles.class.php on line 271
       ```
   
 * It shows up when I click on the courseware tab. The tab to setup courses. If 
   I click courseware under the admin section this is ok, I can change the settings.
 * [http://wordpress.org/extend/plugins/buddypress-courseware/](http://wordpress.org/extend/plugins/buddypress-courseware/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [S](https://wordpress.org/support/users/sushkov/)
 * (@sushkov)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-buddypress-courseware-warning-array_merge-functionarray-merge-argument-2/#post-3115382)
 * It’s a warning, you can ignore it.
 *  Thread Starter [Doug M](https://wordpress.org/support/users/nes-native-english-services/)
 * (@nes-native-english-services)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-buddypress-courseware-warning-array_merge-functionarray-merge-argument-2/#post-3115392)
 * It’s kind of hard to ignore being right in the middle of everything.
 * Don’t take this wrong but this shouldn’t be here for the rest of the time I’m
   running this site should it? Not making too much sense to me.
 * I should say it’s kind of a moot point at this point in time because I’m putting
   something a little different together but still doesn’t make too much sense, 
   for me anyways.
 *  [jimxxx](https://wordpress.org/support/users/jimxxx/)
 * (@jimxxx)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-buddypress-courseware-warning-array_merge-functionarray-merge-argument-2/#post-3115527)
 * put the (array) part in
    `$group_members = array_merge( $group_admins, (array)
   $group_members['members'] );`
 * it worked for me.
 *  [Levaire](https://wordpress.org/support/users/dr3amscap3/)
 * (@dr3amscap3)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-buddypress-courseware-warning-array_merge-functionarray-merge-argument-2/#post-3115536)
 * jimxxx,
    Where does one PUT IN this magic? Pretend some of us may not be coders.;
   o]
 * Add it to what file?
    Add it to what line in that file, if important? Where is
   that file located?
 * Thanks in advance.
 *  [jyakkudesu](https://wordpress.org/support/users/jyakkudesu/)
 * (@jyakkudesu)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-buddypress-courseware-warning-array_merge-functionarray-merge-argument-2/#post-3115537)
 * [@dr3amscap3](https://wordpress.org/support/users/dr3amscap3/),
    You want to 
   make the suggested changes to the following file: /wp-content/plugins/buddypress-
   courseware/roles/roles.class.php
 * Save it to your computer, open it up in an editor such as Notepad++, do a text
   search to find the right place, follow jimxxx suggestion as far as backup is 
   concerned, make the changes, save it and upload it. Worked for me also.
 * Cheers.
 *  [hkcharlie](https://wordpress.org/support/users/hkcharlie/)
 * (@hkcharlie)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-buddypress-courseware-warning-array_merge-functionarray-merge-argument-2/#post-3115545)
 * I had the same problem and this fixed it, thank you everyone!
 *  [Levaire](https://wordpress.org/support/users/dr3amscap3/)
 * (@dr3amscap3)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-buddypress-courseware-warning-array_merge-functionarray-merge-argument-2/#post-3115547)
 * Forget it. I moved to WP Courseware and I haven’t looked back. [http://flyplugins.com/wp-courseware-premium-wordpress-plugin/](http://flyplugins.com/wp-courseware-premium-wordpress-plugin/)
 * (Thank you for the assistance on this. Just ran into too many bugs.)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: BuddyPress Courseware] Warning: array_merge() [function.array-
merge]: Argument #2’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-courseware.svg)
 * [BuddyPress Courseware](https://wordpress.org/plugins/buddypress-courseware/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-courseware/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-courseware/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-courseware/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-courseware/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-courseware/reviews/)

 * 7 replies
 * 6 participants
 * Last reply from: [Levaire](https://wordpress.org/support/users/dr3amscap3/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/plugin-buddypress-courseware-warning-array_merge-functionarray-merge-argument-2/#post-3115547)
 * Status: resolved