Hi @Heorhii ,
The error:
PHP Fatal error: Uncaught Error: Call to a member function getConnection() on null
…is caused by this issue:
opened 10:29AM - 02 Feb 21 UTC
closed 08:18PM - 05 Feb 21 UTC
**Describe the bug**
After applying necessary changes when I visit http://domai… n.com/[[DIR]]/index.php/index/install/installUpgrade it gives blank page.
On further debugging I found following error.
_Array ( [type] => 1 [message] => Uncaught Error: Call to a member function getConnection() on null in [[PATH]]/[[DIR]]/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php:74_
It seems newly added laravel is conflicting.
**To Reproduce**
Steps to reproduce the behavior:
1. Back up your files and database
2. Remove files of existing installation.
3. Restore your config.inc.php with all new changes present in new version.
4. Visit http://domain.com/[[DIR]]/index.php/index/install/upgrade and click on "Upgrade" throws above error.
**What application are you using?**
OJS, OMP and OPS version 3.3.0.2
**Additional information**
Using PHP 7.3 and Mysql 5.5
You can fix it by applying the following change to lib/pkp/classes/install/form/UpgradeForm.inc.php
, or by using the command-line upgrade tool instead of the web-based upgrade form.
pkp:stable-3_3_0
← asmecher:i6703-fix
opened 10:25PM - 03 Feb 21 UTC
Regards,
Alec Smecher
Public Knowledge Project Team
1 Like