Title: Calling wpdb::prepare() incorrectly?
Last modified: April 20, 2018

---

# Calling wpdb::prepare() incorrectly?

 *  Resolved [silsbyc](https://wordpress.org/support/users/silsbyc/)
 * (@silsbyc)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/calling-wpdbprepare-incorrectly/)
 * I am getting errors in my PHP logs that say:
 * Missing argument 2 for wpdb::prepare(), called in /var/www/html/wp-content/themes/
   graphene/404.php on line 10
 * Looks like this is something that changed back in WordPress 3.5 that never made
   it into the Graphene files: [https://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/](https://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/)

Viewing 1 replies (of 1 total)

 *  Theme Author [silverks](https://wordpress.org/support/users/silverks/)
 * (@silverks)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/calling-wpdbprepare-incorrectly/#post-10203939)
 * Thanks for the report. We have already developed a fix for this issue and will
   include it in the next update.

Viewing 1 replies (of 1 total)

The topic ‘Calling wpdb::prepare() incorrectly?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/graphene/2.9.4/screenshot.jpg)
 * Graphene
 * [Support Threads](https://wordpress.org/support/theme/graphene/)
 * [Active Topics](https://wordpress.org/support/theme/graphene/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/graphene/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/graphene/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [silverks](https://wordpress.org/support/users/silverks/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/calling-wpdbprepare-incorrectly/#post-10203939)
 * Status: resolved