Title: warning, creating default obeject from empty value.
Last modified: August 21, 2016

---

# warning, creating default obeject from empty value.

 *  Resolved [UgoDimma](https://wordpress.org/support/users/lovecoinz/)
 * (@lovecoinz)
 * [12 years ago](https://wordpress.org/support/topic/warning-creating-default-obeject-from-empty-value/)
 * after installing the plugin, i recieved this message,
 * > Warning: Creating default object from empty value in C:\xampp\htdocs\lovecoinz\
   > wp-content\plugins\cubepoints-buddypress-integration\includes\bp-cubepoint-
   > core.php on line 46
   > Warning: Creating default object from empty value in C:\xampp\htdocs\lovecoinz\
   > wp-content\plugins\cubepoints-buddypress-integration\includes\bp-cubepoint-
   > core.php on line 47
   > Warning: Creating default object from empty value in C:\xampp\htdocs\lovecoinz\
   > wp-content\plugins\cubepoints-buddypress-integration\includes\bp-cubepoint-
   > core.php on line 48
   > Warning: Creating default object from empty value in C:\xampp\htdocs\lovecoinz\
   > wp-content\plugins\cubepoints-buddypress-integration\includes\bp-cubepoint-
   > core.php on line 50
   > Warning: Creating default object from empty value in C:\xampp\htdocs\lovecoinz\
   > wp-content\plugins\cubepoints-buddypress-integration\includes\bp-cubepoint-
   > core.php on line 52
   > Warning: Creating default object from empty value in C:\xampp\htdocs\lovecoinz\
   > wp-content\plugins\cubepoints-buddypress-integration\includes\bp-cubepoint-
   > core.php on line 53
   > Warning: Creating default object from empty value in C:\xampp\htdocs\lovecoinz\
   > wp-content\plugins\cubepoints-buddypress-integration\includes\bp-cubepoint-
   > core.php on line 54
   > Warning: Creating default object from empty value in C:\xampp\htdocs\lovecoinz\
   > wp-content\plugins\cubepoints-buddypress-integration\includes\bp-cubepoint-
   > core.php on line 55
   > Warning: Creating default object from empty value in C:\xampp\htdocs\lovecoinz\
   > wp-content\plugins\cubepoints-buddypress-integration\includes\bp-cubepoint-
   > core.php on line 56
   > Warning: Creating default object from empty value in C:\xampp\htdocs\lovecoinz\
   > wp-content\plugins\cubepoints-buddypress-integration\includes\bp-cubepoint-
   > core.php on line 103
 *  How will i solve it?
    When i tried the solution provided on this thread [http://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-9?replies=13](http://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-9?replies=13)
   i receive a syntax error wwith white screen of dead. Giving to it, am not good
   in programming to adjust it.
 * [https://wordpress.org/plugins/cubepoints-buddypress-integration/](https://wordpress.org/plugins/cubepoints-buddypress-integration/)

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

 *  [mckillopco](https://wordpress.org/support/users/mckillopco/)
 * (@mckillopco)
 * [12 years ago](https://wordpress.org/support/topic/warning-creating-default-obeject-from-empty-value/#post-4969347)
 * I have the same problem, unfortunately I am a 1st timer WP non programer and 
   the other thread is very complicated – anyone have simpler terms or the entire
   code that I can just edit the whole plug in screen (if it can work that way) –
   Thank you for the help
 *  [Judder](https://wordpress.org/support/users/judder/)
 * (@judder)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-creating-default-obeject-from-empty-value/#post-4969435)
 * It’s due to the upgrade of PHP 5.4
 * To fix, edit
 * _wp-content/plugins/cubepoints-buddypress-integration/includes/bp-cubepoint-core.
   php_
 * and add the following line to
 *  `$bp->cubepoint = new StdClass;`
 * e.g.
 *     ```
       function bp_cubepoint_setup_globals() {
   
           global $bp, $wpdb;
           $bp->cubepoint = new StdClass;
           $bp->cubepoint->id = 'cubepoint';
       ```
   
 * This initialises the $bp->cubepoint object before trying to set variables on 
   it, and thus removes the error.
 * You might also want to change function add_bp_cubepoints_wp_menu() as follows
   so that another error message that occurs is removed.
 * From:
 * `global $wp_admin_bar; $bp;`
 * To:
 * `global $wp_admin_bar, $bp;`
 * Note – the replacement of the ; with a comma means that now both objects are 
   correctly declared as globals
 *  Thread Starter [UgoDimma](https://wordpress.org/support/users/lovecoinz/)
 * (@lovecoinz)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/warning-creating-default-obeject-from-empty-value/#post-4969439)
 * Hey Judder.
 *  Thank you very much. Your trick solved my problem. i just applied your solution
   and it works like magic.
 *  Thanks once again.
 *  [Md. Zubaer Ahammed](https://wordpress.org/support/users/zubaer_ahammed/)
 * (@zubaer_ahammed)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/warning-creating-default-obeject-from-empty-value/#post-4969447)
 * Hey [Judder](https://wordpress.org/support/profile/judder),
 * It works properly now and there are no error message. Thank you very much man!

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

The topic ‘warning, creating default obeject from empty value.’ is closed to new
replies.

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

## Tags

 * [cubepoint](https://wordpress.org/support/topic-tag/cubepoint/)
 * [integration](https://wordpress.org/support/topic-tag/integration/)

 * 4 replies
 * 4 participants
 * Last reply from: [Md. Zubaer Ahammed](https://wordpress.org/support/users/zubaer_ahammed/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/warning-creating-default-obeject-from-empty-value/#post-4969447)
 * Status: resolved