Thread Starter
Judder
(@judder)
WP Popups Lite
Version 2.2.0.3
WordPress
Current version: 6.8
Deactivating the plugin removes the Notice
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