• Resolved UgoDimma

    (@lovecoinz)


    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 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    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

    (@lovecoinz)

    Hey Judder.

    Thank you very much. Your trick solved my problem. i just applied your solution and it works like magic.

    Thanks once again.

    Hey 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.