WordPress.org

Ready to get started?Download WordPress

Forums

Better Related Posts
Warnings: wpdb::prepare() and Multiple fulltext indexes (3 posts)

  1. macemmek
    Member
    Posted 1 year ago #

    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/

  2. iltrev
    Member
    Posted 1 year ago #

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

  3. wickcreative
    Member
    Posted 6 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic