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

  1. thewebwing
    Posted 3 years 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.



  2. thewebwing
    Posted 3 years 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
    Plugin Author

    Posted 3 years 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

  • Relevanssi - A Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic