• 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,0

    If 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • php is the programming language and MySQL was replaced by mysqli. Try looking for an updated version of the theme or plugin you are using that causing the problem. If it hasn’t been updated in awhile it might be an abandon project. If you know a php developer you can get them to change the mysql to mysqli. However, if you do this you will probably want to save the project under a new name.

    If the theme or plugin isn’t supported any longer it would probably be better to move to a platform that is being updated and supported.

    Thread Starter peyote

    (@peyote)

    Hi

    Thank you for the response, much appreciated.

    I was of the understanding that the file /wp-includes/wp-db.php belongs to WordPress and not a plugin or theme?

    I am running the very latest version of the Divi theme and have only a few well-known plugins, that are all updated (Yoast, Caldera).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with PHP 7.2 and Extensions.mysql Deprecated’ is closed to new replies.