HTTP Error 500 While upgrading from to


I am trying to upgrade from to But getting HTTP Error 500.

Any solutions?

1 Like

Hi, try looking at the previous posts, maybe there is information similar to your problem. Since you have provided very little information, I’m not sure if they can help you.

@Heorhii Do you use the custom theme? In my case this is error related with custom theme. I think the new version (3.3.0) use Laravel/Illuminate library.

Try look in to error log. For example:

$ sudo nano /var/log/apache2/custom_name_error.log

Hi @ross_s. I tried to update via web.

[06-Feb-2021 17:03:26 UTC] PHP Fatal error: Uncaught Error: Call to a member function getConnection() on null in lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php:74
Stack trace:
#0 lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php(200): Illuminate\Database\Capsule\Manager::connection()
#1 lib/pkp/classes/db/ Illuminate\Database\Capsule\Manager::_callStatic(‘raw’, Array)
#2 lib/pkp/classes/plugins/ DAO->retrieve('SELECT setting
…’, Array)
#3 lib/pkp/classes/plugins/ PluginSettingsDAO->getPluginSettings(‘0’, ‘driverplugin’)
#4 lib/pkp/classes/cache/ PluginSettingsDAO->_cacheMiss(Object(FileCache), ‘enabled’)
#5 lib/pkp/cl in lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php on line 74

Hi @Heorhii,
When I switch to the default theme, then there is no more 500 error. So I identified this as a custom theme bug related to db. In your case, the error related to db too (the provided log indicated it). But I’m not sure. This question for who knows db well.

@Heorhii p.s. Have you successfully updated the databases? see Issue with Database (MariaDB) upgrade (failed from to - #7 by ross_s

Unfortunately, I’m not that advanced user. I carried out past updates via the web without problems.

Hi @Heorhii,

The error:

PHP Fatal error: Uncaught Error: Call to a member function getConnection() on null 

…is caused by this issue:

You can fix it by applying the following change to lib/pkp/classes/install/form/, or by using the command-line upgrade tool instead of the web-based upgrade form.

Alec Smecher
Public Knowledge Project Team

1 Like

Hi @asmecher! @Vitaliy helped to solve the problem with the installation, the way to solve the problem:
Take version
•add pkp/pkp-lib#6703 Fix web-based upgrade form by asmecher · Pull Request #6719 · pkp/pkp-lib · GitHub fix
•add ‘engine’ => ‘InnoDB’, after this line
pkp-lib/ at 88c9965b2f601b79e034ceaff59d8a809b72943d · pkp/pkp-lib · GitHub
Enjoy the update…

…But not for long. Because we get problems with article files.

Hi @Heorhii,

Can you describe the problem with article files in a new topic?

Alec Smecher
Public Knowledge Project Team

I don’t know what the problem is, but after a successful update, all links to pdf files of articles are not correct. I will throw off the error log, unfortunately it does not tell me anything.

[08-Feb-2021 17:21:10 UTC] PHP Fatal error: Uncaught Error: Class ‘finfo’ not found in public_html/public/lib/pkp/lib/vendor/league/flysystem/src/Adapter/Local.php:322
Stack trace:
#0 public_html/public/lib/pkp/lib/vendor/league/flysystem/src/Filesystem.php(285): League\Flysystem\Adapter\Local->getMimetype(‘journals/1/arti…’)
#1 public_html/public/lib/pkp/classes/services/ League\Flysystem\Filesystem->getMimetype(‘journals/1/arti…’)
#2public_html/public/pages/article/ PKP\Services\PKPFileService->download(‘journals/1/arti…’, Object(Stringy\Stringy))
#3 public_html/public/lib/pkp/classes/core/ ArticleHandler->download(Array, Object(Request))
#4 public_html/public/lib/pkp/classes/core/ PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#5 public_html/public/lib/pkp/classes/ in public_html/public/lib/pkp/lib/vendor/league/flysystem/src/Adapter/Local.php on line 322

Hi @Heorhii,

Please post this as a new topic; it’s not related to the rest of this thread.

Alec Smecher
Public Knowledge Project Team


I came here because I found myself in a very similar situation.
I was trying to update from to when I ended up in the Http 500 Error page.
For information, I am using Immersion theme, and this is my Journal’s website:
Now, I have read what @Heorhii wrote for the way to solve the issue

But I would like to know if these steps need to followed now in order to update, or not. I am asking, because I am getting stuck before them, since they appearently look too difficult for me.
Should they also be included in the official upgrade documentation, if they are required in order to succesfully upgrade?
I am sorry to bother, but it is 5 days that I try to update and I am stuck. I have also uploaded again the whole Journal in an other subfolder, where I am trying to upgrade, and where you can see the problem in action:

Thank you very much for any help that you could give me.
Best regards,

Hi @leonardo.mancini,

There are already several issues described in this topic and it’s not clear which you’re encountering (or if it’s something else entirely). Could you post a new topic describing the issues you’re encountering in detail? Note that we also released OJS 3.3.0-4 yesterday, and it corrects at least one of the issues discussed here.

Alec Smecher
Public Knowledge Project Team