Title: Missing argument 2 for wpdb::prepare()
Last modified: August 20, 2016

---

# Missing argument 2 for wpdb::prepare()

 *  Resolved [HiddenDriver](https://wordpress.org/support/users/hiddendriver/)
 * (@hiddendriver)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-8/)
 * Hello,
    i get the following error after updating a user profile… Warning: Missing
   argument 2 for wpdb::prepare(), called in …/wp-content/plugins/pie-register/pie-
   register.php on line 1804 and defined in …/wp-includes/wp-db.php on line 990
 * Warning: Cannot modify header information – headers already sent by (output started
   at …/wp-includes/wp-db.php:990) in …/wp-includes/pluggable.php on line 876
 * Apparently the plugin should be updated for this version.
    you can find more 
   information here: [](http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/)
 * Can you take care of this?
 * [http://wordpress.org/extend/plugins/pie-register/](http://wordpress.org/extend/plugins/pie-register/)

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

 *  [johnibom](https://wordpress.org/support/users/johnibom/)
 * (@johnibom)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-8/#post-3278594)
 * Hi
 * Please do the following:
 * 1-) Open up piewpnun.php into any text editor
    2-) Goto line number 21 where 
   it reads: $plaintext_pass = $wpdb->prepare($_POST[‘user_pw’]);
 * 3-) Replace this line with the following:
    $plaintext_pass = $_POST[‘user_pw’];
 * I hope it helps. Please write me back once you update.
 * Thanks
 *  [ubaidullahbutt](https://wordpress.org/support/users/ubaidullahbutt/)
 * (@ubaidullahbutt)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-8/#post-3278615)
 * Hi johnibom sir,
 * I’m still getting error, I did as you mentioned above.
 * Please help.

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

The topic ‘Missing argument 2 for wpdb::prepare()’ is closed to new replies.

 * ![](https://ps.w.org/pie-register/assets/icon-256x256.png?rev=2467686)
 * [Pie Register – User Registration, Profiles & Content Restriction](https://wordpress.org/plugins/pie-register/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pie-register/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pie-register/)
 * [Active Topics](https://wordpress.org/support/plugin/pie-register/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pie-register/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pie-register/reviews/)

## Tags

 * [Missing argument 2 for wpdb::prepare()](https://wordpress.org/support/topic-tag/missing-argument-2-for-wpdbprepare/)

 * 2 replies
 * 3 participants
 * Last reply from: [ubaidullahbutt](https://wordpress.org/support/users/ubaidullahbutt/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-8/#post-3278615)
 * Status: resolved