Call for help, an error in the final stage of upgrading

Dear colleague,

Two days ago, our hosting server has stopped supporting PHP 5 version, our OJS (version 2.4.8) couldn’t be accessed (HTTP ERROR 500)

Then we had to upgrade from the present OJS version (2.4.8) to the recent version (3.3.0-4). I have followed all the instructions closely.

OJS Installation
If you are upgrading an existing installation of OJS, click here to proceed.

Upgrade Open Journal Systems
Then click “Upgrade Open Journal Systems”

Then an error occurred:
HTTP ERROR 500

The log is:

[26-Mar-2021 19:01:40 America/Chicago] PHP Fatal error: Uncaught Error: Call to a member function getConnection() on null in /omitted for privacy/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php:74
Stack trace:
#0 /omitted for privacy/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php(200): Illuminate\Database\Capsule\Manager::connection()
#1 /omitted for privacy/ojs/lib/pkp/classes/db/DAO.inc.php(65): Illuminate\Database\Capsule\Manager::__callStatic(‘raw’, Array)
#2 /omitted for privacy/ojs/lib/pkp/classes/context/ContextDAO.inc.php(63): DAO->retrieve(‘SELECT * FROM j…’, Array)
#3 /omitted for privacy/ojs/lib/pkp/classes/core/PKPRouter.inc.php(252): ContextDAO->getByPath(‘tpls’)
#4 /omitted for privacy/ojs/lib/pkp/classes/core/PKPRequest.inc.php(760): PKPRouter->getContext(Object(Request), 1)
#5 /omitted for privacy/ojs/classes/core/Request.inc.php(64): PKPRequest->_delegateToRouter(‘getContext’, 1)
#6 /omitted for privacy/ojs/lib/pkp/c in /omitted for privacy/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php on line 74

What went wrong? And how could it be solved?

Your help would be much appreciated.

Thank you

Could anyone help?Thanks a million!

I experience the same error_log. It would be highly appreciated if someone could help.

Hi all,

If you’re encountering the message when trying to upgrade…

PHP Fatal error: Uncaught Error: Call to a member function getConnection() on null in ... for .../ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php:74

…please ensure you’re using at least OJS/OMP/OPS 3.3.0-4. The issue should be corrected starting with that release. See: Unable to upgrade 3.3.0.2: Call to a member function getConnection() on null · Issue #6703 · pkp/pkp-lib · GitHub

Regards,
Alec Smecher
Public Knowledge Project Team