• We have this warning on My Points Page:

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/ucgymc/public_html/wp-content/plugins/cubepoints-buddypress-integration/includes/templates/cubepoint/points.php on line 30 and defined in /home/ucgymc/public_html/wp-includes/wp-db.php on line 992

    Also for some reason we can’t Add Points. Users just doesn’t load after we click search.

    https://www.ads-software.com/plugins/cubepoints-buddypress-integration/

Viewing 3 replies - 1 through 3 (of 3 total)
  • This appears to be a change that was made with the WordPress 3.6 update and the way wpdb::prepare works. Mine worked fine with 3.5.2 but broke with the 3.6 update. To fix this, edit the ./wp-content/plugins/cubepoints/cp-hooks.php file. In the function cp_add_points_user_query() on line 305, replace with
    $sql = $wpdb->prepare('SELECT * from‘ . $wpdb->prefix . ‘usersWHEREuser_loginLIKE %s LIMIT 1',trim($_REQUEST['q']));
    then add another line right below it with
    $user = $wpdb->get_row($sql, ARRAY_A);

    hi hi, does not work with your code line also because book now stands as “Error: The user could not be found”

    Any solution on that? I really need to get it work again soon… Please share your ideas… looking forward to your solutions. ??

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning / Can't add points’ is closed to new replies.