Title: PHP Warning:  Creating default object from empty value in
Last modified: August 22, 2016

---

# PHP Warning: Creating default object from empty value in

 *  [chuckingit](https://wordpress.org/support/users/chuckingit/)
 * (@chuckingit)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-in/)
 * Hi – this plugin seems awesome with BuddyPress 2.02 and BP Group Hierarchy 1.4.3
   however it does generate a php warning thus something is not quite 100% … the
   warning shows within the Group Organizer tab “Organize” and reads as follows -
   > “Add groups using the box to the left, or arrange groups below. Warning: Creating
   default object from empty value in /home/mysite/public_html/wp-content/plugins/
   bp-group-organizer/includes/group-organizer.php on line 60” …
 * maybe this is nothing, maybe it is indicative of something that needs to be tweaked
   hence this sharing … cordially, chuck scott
 * [https://wordpress.org/plugins/bp-group-organizer/](https://wordpress.org/plugins/bp-group-organizer/)

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

 *  [jturet](https://wordpress.org/support/users/jturet/)
 * (@jturet)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-in/#post-5184838)
 * same
 *  [borisj](https://wordpress.org/support/users/borisj/)
 * (@borisj)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-in/#post-5184842)
 * Yes, have the same issue since the latest version of BP.
 * It seems only to affect the re-arrangement of groups and the hierarchies, resp.
 *  [jturet](https://wordpress.org/support/users/jturet/)
 * (@jturet)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-in/#post-5184852)
 * Any Tips?
 *  [Garrett Hyder](https://wordpress.org/support/users/garrett-eclipse/)
 * (@garrett-eclipse)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-in/#post-5184853)
 * Try adding this into line 60 before the `$groups_template->group = $item`
 *     ```
       if (!is_object($groups_template)) {
       	$groups_template = new BP_Groups_Template();
       }
       ```
   
 * This seemed to resolve the issue for me.
    Cheers

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

The topic ‘PHP Warning: Creating default object from empty value in’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-group-organizer.svg)
 * [BP Group Organizer](https://wordpress.org/plugins/bp-group-organizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-group-organizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-group-organizer/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-group-organizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-group-organizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-group-organizer/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [Garrett Hyder](https://wordpress.org/support/users/garrett-eclipse/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-in/#post-5184853)
 * Status: not resolved