Title: Warning: mysql_real_escape_string() expects parameter 1 to be string
Last modified: September 1, 2016

---

# Warning: mysql_real_escape_string() expects parameter 1 to be string

 *  [Jozefs](https://wordpress.org/support/users/jozefs/)
 * (@jozefs)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-dbphp-error-2/)
 * After upgrade I get this error:
 * Warning: mysql_real_escape_string() expects parameter 1 to be string, array given
   in /var/www/diskidee/wp-includes/wp-db.php on line 1129
 * (still using php 5.2)
 * [https://wordpress.org/plugins/avh-first-defense-against-spam/](https://wordpress.org/plugins/avh-first-defense-against-spam/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [petervanderdoes](https://wordpress.org/support/users/petervanderdoes/)
 * (@petervanderdoes)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-dbphp-error-2/#post-7608312)
 * Should be fixed per v3.7.3

Viewing 1 replies (of 1 total)

The topic ‘Warning: mysql_real_escape_string() expects parameter 1 to be string’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/avh-first-defense-against-spam.svg)
 * [AVH First Defense Against Spam](https://wordpress.org/plugins/avh-first-defense-against-spam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/avh-first-defense-against-spam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/avh-first-defense-against-spam/)
 * [Active Topics](https://wordpress.org/support/plugin/avh-first-defense-against-spam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/avh-first-defense-against-spam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/avh-first-defense-against-spam/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [petervanderdoes](https://wordpress.org/support/users/petervanderdoes/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/wp-dbphp-error-2/#post-7608312)
 * Status: not resolved