Media Library not showing images when adding to Posts (but retrieving image info via ajax)

In case any poor soul runs in to something similar, I’ve found the problem: define(‘WP_DEBUG’, false); Running debug mode (as I do on all dev sites), was throwing a warning, but it was being returned in the ‘admin-ajax.php’ which was preventing the images from showing/uploading and returning the appropriate values etc. I cannot believe the … Read more

Create gallery doesn’t show uploaded images

I finally found that it is caused from the PHP5.5 version, and it’s because of the deprecated function mysql_connect(). I’ve benn able to solve it by changing the file /wp-includes/wp-db.php (line 1142). $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags ); Change with: $this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags ); This makes the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)