WordPress.org

Ready to get started?Download WordPress

Forums

Bainternet User Ranks
[resolved] This plugin is broken on 3.0.5 (4 posts)

  1. master412160
    Member
    Posted 1 year ago #

    Warning: Missing argument 2 for wpdb::prepare(), called in /public_html/wp-content/plugins/bainternet-user-ranks/baur.class.php on line 249 and defined in /public_html/wp-includes/wp-db.php on line 990

    http://wordpress.org/extend/plugins/bainternet-user-ranks/

  2. adamhowse
    Member
    Posted 1 year ago #

    It's not broken it's just a warning I have fixed it by replacing this line in the file: /wp-content/plugins/bainternet-user-ranks/baur.class.php

    Replace this line:

    $r = $wpdb->get_results( $wpdb->prepare( "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = 'ba_ur'"));

    With this:

    $r = $wpdb->get_results( $wpdb->prepare( "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = 'ba_ur'", $id));

    Hope this helps you.

  3. master412160
    Member
    Posted 1 year ago #

    Thank you, that fixed it!

  4. Bainternet
    Member
    Plugin Author

    Posted 1 year ago #

    thanks,
    Fixed in 1.5.2!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.