Upgrade to PHP v 7.0.14 breaks the site

Hi,

When ever I am upgrading the php version to v 7.0.14, it is breaking the site on every server.

Error its giving is mentioned below:

Unable to connect to the Database: This driver is unsupported in PHP 7, please use the MySQLi or PDO MySQL driver instead.

Please advise.
 
Looks like your Joomla global configuration is wrong.

While still using PHP5.6 or whatever, go to System/Global Configuration and click on the Server tab. Under database settings you probably have MySQL selected. Change it to MySQLi then click on Save. Then change to PHP7.0.14 and hopefully it will work.

Another way of doing it when your website isn't working is to use an FTP client to edit configuration.php. Change "public $dbtype = 'mysql';" to "public $dbtype = 'mysqli';" then upload the file back to the server.
 
What he said.

The 'mysql' driver doesn't exist in PHP 7. So you have to change your site to use 'mysqli' (which you should use anyway, whatever version of PHP you have, it's quicker and less resource intensive) BEFORE you upgrade PHP.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top