WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
[resolved] $wpdb->prepare errors (3 posts)

  1. thewebwing
    Member
    Posted 1 year ago #

    With the 3.5 update came a slew of errors for plugins not implementing the second argument for wpdb->prepare.

    I have been hand fixing problem plugins, but since errors in yours only appear on the admin side and they seem to be more complex than what I am accustomed to, I thought it might be better to wait for a quick update.

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

    http://wordpress.org/extend/plugins/relevanssi/

  2. thewebwing
    Member
    Posted 1 year ago #

    Sorry, the WP version is 3.5 as stated above, not 3.4.2 as in the sidebar. I saw that just as I was hitting submit.

  3. Mikko Saari
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, I'm aware of that and it'll be fixed in the next version. I'm almost done with Relevanssi Premium 1.10, which contains the fix, and once that's out (next week, most likely), I'll release a version of the free plugin with the same fixes.

    The quick fix in Relevanssi's case is to simply remove the prepare calls and just feed the queries directly to $wpdb->query, as there actually nothing to prepare.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic