• 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.