Hi! I’m currently upgrading from OJS 2.4.8.5 to OJS 3.3.0.8. But when I try to click the “Upgrade Open Journal Systems”, I’m having a HTTP ERROR 500. When I checked the error logs these are the errors:
Blockquote[07-Feb-2022 03:03:11 America/Boise] PHP Fatal error: Uncaught PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘context_id’ in ‘where clause’ in /home2/pnuresea/public_html/ojsv2/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:78
Stack trace: #0 /home2/pnuresea/public_html/ojsv2/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(78): PDO->prepare(‘SELECT setting_…’, Array) #1 /home2/pnuresea/public_html/ojsv2/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(361): Doctrine\DBAL\Driver\PDOConnection->prepare(Object(Illuminate\Database\Query\Expression)) #2 /home2/pnuresea/public_html/ojsv2/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(664): Illuminate\Database\Connection->Illuminate\Database{closure}(Object(Illuminate\Database\Query\Expression), Array) #3 /home2/pnuresea/public_html/ojsv2/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php(631): Illuminate\Database\Connection->runQueryCallback(Object(Illumina in /home2/pnuresea/public_html/ojsv2/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 671
I already checked the database connection, I also checked this forum https://github.com/pkp/pkp-lib/issues/6698 because we had the same error. I already followed the required settings but still HTTP ERROR 500.
Hi! I’m currently updating from OJS 2 to OJS 3.0.2, I’ve encountered lots of errors during the update but I have resolved some issues successfuly however these error keeps on appearing:
DevelopedByBlockPlugin::getSeq() should be compatible with BlockPlugin::getSeq($contextId = NULL) in /home2/pnuresea/public_html/ojsv2/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php on line 79
Warning: Declaration of DevelopedByBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home2/pnuresea/public_html/ojsv2/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php on line 79
Warning: Declaration of DevelopedByBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home2/pnuresea/public_html/ojsv2/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php on line 79
Warning: Cannot modify header information - headers already sent by (output started at /home2/pnuresea/public_html/ojsv2/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php:79) in /home2/pnuresea/public_html/ojsv2/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 773
Warning: Cannot modify header information - headers already sent by (output started at /home2/pnuresea/public_html/ojsv2/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php:79) in /home2/pnuresea/public_html/ojsv2/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 776
Hi @_patrishamae, the warnings you see should not stop the upgrade process, so the upgrade may still have been successful. If you haven’t seen it yet, I recommend looking at the documentation on How to Upgrade.
@_patrishamae make sure that display_errors = Off in your config.inc.php file. Those notices should go to your server’s error log. They shouldn’t get printed to the screen.
Once you do this, you will probably see new error messages in your server’s error log.
Hello @_patrishamae !
First, What version of PHP do you have installed?
I recommend you to have 7.3 to work with versions of OJS3.x.
Second, according to the upgrade guide, it is best to upgrade from 2.4.8 directly to 3.2.1.
I have done this without problems with 15+ journals.
Versions 3.0, 3.1 and even the first versions of 3.2 have some bugs that are corrected in 3.2.1.x
Uploading directly to this version will save you a lot of headaches.
The following line still appears in your error log:
[13-Feb-2022 08:12:28 America/Boise] PHP Warning: Cannot modify header information - headers already sent by (output started at /home2/pnuresea/public_html/ojsv2/plugins/blocks/developedBy/DevelopedByBlockPlugin.inc.php:79) in /home2/pnuresea/public_html/ojsv2/lib/pkp/classes/template/PKPTemplateManager.inc.php on line 776
That suggests that this log is from runs where display_errors = Off was not set correctly in your config. I’d also expect to see an exception or fatal error related to the database problem.
Have you followed the upgrade guide yet? I’d recommend doing that alongside @dagosalas’s recommendation about what versions to upgrade to.