Problem upgrade from ojs to 3.1 on Ubuntu 16.04

Hi PKP Community,
If I try to upgrade Ojs from to 3.1 I have this error (both web and cli)
HP Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in
I’m using a new webserver with Ubuntu 16.04 and Php7
P.S. The standard installation of OJS 3.1(no upgrade) on the same webserver is ok

Any suggest?

I don’t know if it will be useful for someone but I’ve solved installing PHP 5.6 on Ubuntu 16.04-1 and disabling PHP7.
Maybe the upgrade routine is not compatible with PHP7.

Hi @angelo,

PHP 7 uses mysqli driver whereas lower versions of PHP uses mysql driver.

So, if you want to install/upgrade in PHP 7 you have to change database driver in file from ‘mysql’ to ‘mysqli’.

1 Like