Title: log error?
Last modified: October 23, 2020

---

# log error?

 *  [ajna667](https://wordpress.org/support/users/ajna667/)
 * (@ajna667)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/log-error-9/)
 * Hello plugin create thousands log error? like:
 * [21-Oct-2020 11:22:55 UTC] PHP Warning: mysqli_real_escape_string() expects parameter
   2 to be string, array given in /wp-includes/wp-db.php on line 1164
 * I think it come from this plugin cause error comes when email are send, someone
   have it too?
 * code page wp-db.php:
 *     ```
       	function _real_escape( $string ) {
       		if ( $this->dbh ) {
       			if ( $this->use_mysqli ) {
       				$escaped = mysqli_real_escape_string( $this->dbh, $string );
       			} else {
       				$escaped = mysql_real_escape_string( $string, $this->dbh );
       			}
       		} else {
       			$class = get_class( $this );
       /* line 1164 */			if ( function_exists( '__' ) ) {
       				/* translators: %s: Database access abstraction class, usually wpdb or a class extending wpdb. */
       				_doing_it_wrong( $class, sprintf( __( '%s must set a database connection for use with escaping.' ), $class ), '3.6.0' );
       			} else {
       				_doing_it_wrong( $class, sprintf( '%s must set a database connection for use with escaping.', $class ), '3.6.0' );
       			}
       			$escaped = addslashes( $string );
       		}
       ```
   

The topic ‘log error?’ is closed to new replies.

 * ![](https://ps.w.org/wp-ses/assets/icon-256x256.jpg?rev=2070048)
 * [WP Offload SES Lite](https://wordpress.org/plugins/wp-ses/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ses/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ses/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ses/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ses/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ses/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ajna667](https://wordpress.org/support/users/ajna667/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/log-error-9/)
 * Status: not resolved