Trying to update OJS to 3.3 to 3.4 error when running php upgrade.php check

I have OJS 3.3 running on a RHEL 8.5 system. I am trying to upgrade. I have gotten all the files in place (and the old files replaced) and are about to run the upgrade scripts. I got an error that our PHP version was 7.3 so I updated to PHP 8.2 from REMI using dnf install -y php php-cli php-common. php -v reports as such:

“PHP 8.2.8 (cli) (built: Jul  4 2023 14:52:54) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.2.8, Copyright (c) Zend Technologies
	with Zend OPcache v8.2.8, Copyright (c), by Zend Technologies”

When I try to run php upgrade.php check in tools directory I get this:
“[-]$ php upgrade.php check
PHP Warning: Undefined array key “user” in /var/www/html/lib/pkp/classes/proxy/ProxyParser.php on line 56
PHP Warning: Undefined array key “user” in /var/www/html/lib/pkp/classes/proxy/ProxyParser.php on line 56
PHP Fatal error: Uncaught Exception: Mailer driver isn’t specified in the application’s config in /var/www/html/lib/pkp/classes/core/ PKPContainer.php:315
Stack trace:
#0 /var/www/html/lib/pkp/classes/core/PKPContainer.php(268): PKP\core\PKPContainer::getDefaultMailer()
#1 /var/www/html/lib/pkp/classes/core/PKPContainer.php(117): PKP\core\PKPContainer->loadConfiguration()
#2 /var/www/html/lib/pkp/classes/core/PKPApplication.php(231): PKP\core\PKPContainer->registerConfiguredProviders()
#3 /var/www/html/lib/pkp/classes/core/PKPApplication.php(203): PKP\core\PKPApplication->initializeLaravelContainer()
#4 /var/www/html/classes/core/Application.php(50): PKP\core\PKPApplication->__construct()
#5 /var/www/html/lib/pkp/includes/bootstrap.php(37): APP\core\Application->__construct()
#6 /var/www/html/lib/pkp/classes/cliTool/CommandLineTool.php(41): require_once(‘/var/www/html/l…’)
#7 /var/www/html/tools/bootstrap.php(17): require(‘/var/www/html/l…’)
#8 /var/www/html/tools/upgrade.php(19): require(‘/var/www/html/t…’)
#9 {main}
thrown in /var/www/html/lib/pkp/classes/core/PKPContainer.php on line 315”

I do not want to proceed with the upgrade until I can resolve these errors. Any ideas what I am looking at and how to fix it? Thanks in advance!


Eric T. Gadsby
Towson University

Hi Eric,

The fatal error you’re seeing regarding a mailer driver is probably due to the numerous changes in the config file for 3.4, versus 3.3. You’ll need to update your file so it contains all of the new options found in the default file that comes with 3.4. In particular, mail has changed: