Should OJS 3.0.0 be able to run under php-fpm v7.4?

I found the posting at Driver = mysqli NOT working (OJS 3.2.1-1) saying that to work with php-fpm 7.x, I needed to edit our OJS config.inc.php file to use the mysqli driver instead of mysql. Making that change eliminated the:

"PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /opt/www/bollerreview.tcu.edu/releases/20161107150258/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php:456

error I was seeing in our nginx log file when trying to bring up our OJS 3.0.0 site under php-fpm v7.4. However, the site still won’t come up under that php-fpm version. Now the error I see is:

2022/02/21 12:42:07 [error] 26677#26677: *29 FastCGI sent in stderr: "PHP message: PHP Notice: Only variables should be passed by reference in /opt/www/bollerreview.tcu.edu/releases/20161107150258/lib/pkp/classes/core/PKPApplication.inc.php on line 210PHP message: PHP Recoverable fatal error: ini_set(): Cannot set 'user' save handler by ini_set() or session_module_name() in /opt/www/bollerreview.tcu.edu/releases/20161107150258/lib/pkp/classes/session/SessionManager.inc.php on line 36" while reading response header from upstream, client: 138.237.46.31, server: bollerreview.tcu.edu, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/opt/remi/php74/run/php-fpm/php-fpm.sock:", host: "bollerreview.tcu.edu"

If anyone has any advice on how to fix that, please let me know.

Thanks, Kerry

Hi @KerryBouchard,

I can’t really speak to the error messages you’re receiving, but just a heads up that OJS 3.0 is no longer supported by PKP and that we recommend upgrading. However, other community members may wish to offer assistance.

Upgrading instructions are available in the PKP Administrator’s Guide.

Information about the latest version of OJS can be found on the PKP Website

Best regards,

Roger
PKP Team

My experiences are as follows:
OJS 2.4.8.4 - PHP 5.6
OJS 3.0.2.0 - PHP 7.1.3.3
OJS 3.1.2.4 - PHP 7.1.3.3
OJS 3.3.0.8 - PHP 7.4

Thanks. When I tried to upgrade from 3.0.0 directly to 3.3.x in August, I got a slew of errors about the MySQL database, so I was thinking maybe I needed to address the PHP compatibility issue first. Per kerimsarigul’s message, I’ll see if 3.0.0 will run under PHP.1.3.3 and if it will, see if that lets me run the upgrade successfully.

-Kerry

1 Like