Title: $wpdb-&gt;prepare errors
Last modified: August 20, 2016

---

# $wpdb->prepare errors

 *  Resolved [thewebwing](https://wordpress.org/support/users/thewebwing/)
 * (@thewebwing)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/wpdb-prepare-errors/)
 * 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://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/)
 * [http://wordpress.org/extend/plugins/relevanssi/](http://wordpress.org/extend/plugins/relevanssi/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [thewebwing](https://wordpress.org/support/users/thewebwing/)
 * (@thewebwing)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/wpdb-prepare-errors/#post-3271139)
 * 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.
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/wpdb-prepare-errors/#post-3271240)
 * 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.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘$wpdb->prepare errors’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

## Tags

 * [argument](https://wordpress.org/support/topic-tag/argument/)
 * [attack](https://wordpress.org/support/topic-tag/attack/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)
 * [prepare](https://wordpress.org/support/topic-tag/prepare/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)
 * [wpdb](https://wordpress.org/support/topic-tag/wpdb/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/wpdb-prepare-errors/#post-3271240)
 * Status: resolved