Hello everyone,

I am working with a client to resolve an issue with their website. It seems their host forced a PHP 7.1 upgrade and now their website is down. The error reads "Your PHP installation appears to be missing the MySQL extension which is required by WordPress.".

Cannot access the admin dashboard and have already tried manually updating the WordPress version via FTP. I have SSH access to the server but I'm not sure what commands to run and it seems like apt-get doesn't work.

Does anyone have any information on resolving this issue?

    The mysql_*() functions disappear in PHP 7, so you have to switch to using the mysqli_*() functions (note the "i"). Not sure if there's some configuration item for WordPress to tell it to use MySQLi, instead?

    PS: Also note that it's not simply a matter of changing "mysql" to "mysqli" (might work for some functions?), so hopefully WordPress can address this natively.

      You manually updated WordPress how, and to what version? You'll need to make a copy of the site files locally, then overwrite everything in all the folders except themes/ and plugins/. You may have to make some database updates as well - honestly I can't remember with any certainty, but I'm pretty sure the WP version is stored in the wp_options table. And don't forget as well that if your WP installation was that out of date, your plugins and theme files are probably just as out of date, which means they may be using the mysql_* functions and will also need to be updated in order to work.

        Write a Reply...