Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

lalaluluj on "real escape string error"

$
0
0

I just moved my wordpress.com to a new domain on wordpress.org. I had tons of trouble uploading my .xml file but finally got it uploaded yesterday. I noticed many of my images were missing or had errors. I also noticed that re-uploading the .xml file brought in more and more of my missing images. So, I did that until they were all there. Even though they're in my library, they don't show up as attachments on any of my posts on my blog.

Now, on the completed import page, I see this error at least 12 times:

Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /home/wp_vw3q9c/lucythebaker.nyc/wp-includes/wp-db.php on line 1036

I opened the xml file on the ftp to see what I can see (which is nothing since I'm not versed in code). This is the whole sql section (lines 1021-1038):

* Real escape, using mysqli_real_escape_string() or mysql_real_escape_string()
	 *
	 * @see mysqli_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 ) {
			if ( $this->use_mysqli ) {
				return mysqli_real_escape_string( $this->dbh, $string );
			} else {
				return mysql_real_escape_string( $string, $this->dbh );
			}
		}

Can someone tell me what's wrong, how I can fix it, and if this has anything to do with why my images don't show up?

Also, there are a bunch of xml.txt files in my gallery. Perhaps everything is related?


Viewing all articles
Browse latest Browse all 5527

Trending Articles