Problem with PHP 7.2 and Extensions.mysql Deprecated
-
Good day
Hope someone can shed some light on this please.
Our host is upgrading to PHP 7.2 and they have setup a testing environment. I have upgraded WordPress to the very latest version as well as all plugins and the theme. The site is working perfectly in the PHP 7.2 test environment.
However, the log files show constant errors relating to:
/wp-includes/wp-db.php,892,4,error,”Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0.
Use mysqli instead”,PHPCompatibility.Extensions.RemovedExtensions.mysql_DeprecatedRemoved,5,0If WordPress has been upgraded and using the latest files, why is mysql extension still being used in wp-db.php?
Or am I missing something?
On another forum someone mentioned that the most common reason for this is the presence of one line in wp-config.php:
define(‘WP_USE_EXT_MYSQL’, true);
Removing that line will fix the issue.
Still doesn’t make sense – if WP has been upgraded, then shouldn’t the wp-db.php file also have been upgraded in the process?
The topic ‘Problem with PHP 7.2 and Extensions.mysql Deprecated’ is closed to new replies.