Support » 疑難雜症 » 有關使用「Movable Type and TypePad Importer」外掛,造成「wp-db.php」錯誤訊息的問

  • 大家好!
    我剛剛使用「Movable Type and TypePad Importer」來匯入文章的時候,出現下列的錯誤訊息:

    Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /home/*.*/public_html/wp-includes/wp-db.php on line 880
    (1 comment)

    雖然文章跟迴響都轉換成功了,只是不確定這樣後續會不會可能有問題,請問有前輩可以幫忙回答嗎?

    謝謝!

    「wp-db.php」880 相關的函數:

    /**
    	 * Real escape, using mysql_real_escape_string()
    	 *
    	 * @see mysql_real_escape_string()
    	 * @since 2.8.0
    	 * @access private
    	 *
    	 * @param  string $string to escape
    	 * @return string escaped
    	 */
    	function _real_escape( $string ) {
    		if ( $this->dbh )
    			return mysql_real_escape_string( $string, $this->dbh ); /* 問題點 */
    
    		$class = get_class( $this );
    		_doing_it_wrong( $class, "$class must set a database connection for use with escaping.", E_USER_NOTICE );
    		return addslashes( $string );
    	}

  • The topic ‘有關使用「Movable Type and TypePad Importer」外掛,造成「wp-db.php」錯誤訊息的問’ is closed to new replies.