“The mysql extension is deprecated” after update
-
Hello,
in the last days I had a white page problem with WordPress, so I controlled the last plugins: either if I disabled all of them, the website was still blank.
So I tried to update WordPress to the latest version and the only plugin not totally compatible was Divi Builder 2.0.
So I updated it to 2.0.7, but while the plugin was updating, I had this line in my Dashboard:Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/asdgrupp/public_html/wp-includes/wp-db.php on line 1570.
That’s the line 1570 in my wp-db.php file:
if ( WP_DEBUG ) {
$this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );
} else {
$this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );
}I’ve already contact the plugin developer too, but I’m not very practised in mysql and I can’t understand if this problem is related to my last WordPress update or plugin.
The website works well, but I’ve tried to hide the warning error with:
<?php
error_reporting(E_ALL ^ E_DEPRECATED);on the top of my wp-db.php file, but it doesn’t work.
My PHP version is 5.6.30 and mysqli is supported by my hosting.
Sorry for my english and thank you for the help.
- The topic ‘“The mysql extension is deprecated” after update’ is closed to new replies.