Support » Plugin: Better Related Posts » Warnings: wpdb::prepare() and Multiple fulltext indexes

  • Hello,

    after activation the plugin displays some warnings constantly:

    Warning: Missing argument 2 for wpdb::prepare(), called in (…)/wp-content/plugins/better-related/better-related.php on line 225 and defined in (…)/wp-includes/wp-db.php on line 990 Notice: Warning: Multiple fulltext indexes found for wp_posts.post_content in (…)/wp-content/plugins/better-related/better-related.php on line 227 Warning: Missing argument 2 for wpdb::prepare(), called in (…)/wp-content/plugins/better-related/better-related.php on line 225 and defined in (…)/wp-includes/wp-db.php on line 990 Notice: Warning: Multiple fulltext indexes found for wp_posts.post_title in (…)/wp-content/plugins/better-related/better-related.php on line 227

    Could you look at this?

    Some info: http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/

    http://wordpress.org/extend/plugins/better-related/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hm. After one month, the problem is still open (I got the same warning myself, trying to install the plugin on a test site) and no one even bothered to answer to the question.

    I suppose I could correct these warnings myself, but given the support from the author(s?) I think I’ll move on to some other plugin…

    For anyone who gets this (and if the author decides to update the plugin, he can fix this):

    open up better-related.php (making sure to back up first)

    change line 225 from

    $indexes = $wpdb->get_var( $wpdb->prepare( $query ) );

    to

    $indexes = $wpdb->get_var( $query );

    Hope this helps people.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warnings: wpdb::prepare() and Multiple fulltext indexes’ is closed to new replies.