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 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/

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/ 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/ on line 36" while reading response header from upstream, client:, server:, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/opt/remi/php74/run/php-fpm/php-fpm.sock:", host: ""

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,

PKP Team

My experiences are as follows:
OJS - PHP 5.6
OJS - 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.


1 Like