We are using OJS version 3.1.1.4 from last month we are not receive any email as notification. I found error in error_log file
[26-Oct-2021 10:11:45 UTC] PHP Fatal error: Uncaught Error: Class ‘PHPMailer’ not found in /home/pjoorgpk/public_html/lib/pkp/classes/mail/Mail.inc.php:463
Stack trace:
[02-Nov-2021 13:52:06 UTC] PHP Fatal error: Uncaught Error: Call to a member function getRemoteURL() on null in /home/pjoorgpk/public_html/pages/article/ArticleHandler.inc.php:260
Please note, that the he version of OJS that you’re using is no longer supported by PKP. I recommend that you upgrade to the newest version of OJS, as it is possible that your issue will be resolved by upgrading. However, other community members may wish to offer assistance.
Upgrading instructions are available in the PKP Administrator’s Guide. In particular, you main find the section on troubleshooting email helpful: Email
Information about the latest version of OJS can be found on the PKP Website
===================================
=== Open Journal Systems
=== The Public Knowledge Project
=== Version: 3.3.0
=== GIT tag: 3_3_0-8
=== Release date: August 30, 2021
===================================
System Requirements
Recommended server requirements:
PHP >= 7.3
MySQL >= 4.1 or PostgreSQL >= 9.5
Apache >= 1.3.2x or >= 2.0.4x or Microsoft IIS 6
Operating system: Any OS that supports the above software, including
Linux, BSD, Solaris, Mac OS X, Windows
Now please guide how can i upgrade to this version?
I tried to upgrade to ojs-3.3.0-3 but when i extract .tar.gz for upgrade site was down a when see the error_log file i find these error. Please guide how can i upgrade the core site
[09-Nov-2021 09:47:04 UTC] PHP Fatal error: Uncaught Error: Call to a member function getConnection() on null in /home/pjoorgpk/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php:74
Stack trace: #0 /home/pjoorgpk/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php(200): Illuminate\Database\Capsule\Manager::connection() #1 /home/pjoorgpk/public_html/lib/pkp/classes/db/DAO.inc.php(65): Illuminate\Database\Capsule\Manager::__callStatic(‘raw’, Array) #2 /home/pjoorgpk/public_html/lib/pkp/classes/context/ContextDAO.inc.php(63): DAO->retrieve(‘SELECT * FROM j…’, Array) #3 /home/pjoorgpk/public_html/lib/pkp/classes/core/PKPRouter.inc.php(252): ContextDAO->getByPath(‘pjo’) #4 /home/pjoorgpk/public_html/lib/pkp/classes/core/PKPRequest.inc.php(760): PKPRouter->getContext(Object(Request), 1) #5 /home/pjoorgpk/public_html/classes/core/Request.inc.php(64): PKPRequest->_delegateToRouter(‘getContext’, 1) #6 /home/pjoorgpk/public_html/lib/pkp/classes/plugins/LazyLoadPlugin.inc.php(102 in /home/pjoorgpk/public_html/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php on line 74
[09-Nov-2021 09:47:20 UTC] PHP Fatal error: Cannot override final method Plugin::getInstallSchemaFile() in /home/pjoorgpk/public_html/plugins/generic/staticPages/StaticPagesPlugin.inc.php on line 0
[09-Nov-2021 09:47:55 UTC] PHP Fatal error: Cannot override final method Plugin::getInstallSchemaFile() in /home/pjoorgpk/public_html/plugins/generic/staticPages/StaticPagesPlugin.inc.php on line 0
[09-Nov-2021 09:47:59 UTC] PHP Fatal error: Cannot override final method Plugin::getInstallSchemaFile() in /home/pjoorgpk/public_html/plugins/generic/staticPages/StaticPagesPlugin.inc.php on line 0
[09-Nov-2021 09:48:01 UTC] PHP Fatal error: Cannot override final method Plugin::getInstallSchemaFile() in /home/pjoorgpk/public_html/plugins/generic/staticPages/StaticPagesPlugin.inc.php on line 0
[09-Nov-2021 09:48:03 UTC] PHP Fatal error: Cannot override final method Plugin::getInstallSchemaFile() in /home/pjoorgpk/public_html/plugins/generic/staticPages/StaticPagesPlugin.inc.php on line 0
[09-Nov-2021 09:48:49 UTC] PHP Fatal error: Cannot override final method Plugin::getInstallSchemaFile() in /home/pjoorgpk/public_html/plugins/generic/staticPages/StaticPagesPlugin.inc.php on line 0
[09-Nov-2021 09:49:01 UTC] PHP Fatal error: Cannot override final method Plugin::getInstallSchemaFile() in /home/pjoorgpk/public_html/plugins/generic/staticPages/StaticPagesPlugin.inc.php on line 0
[09-Nov-2021 09:49:08 UTC] PHP Fatal error: Cannot override final method Plugin::getInstallSchemaFile() in /home/pjoorgpk/public_html/plugins/generic/staticPages/StaticPagesPlugin.inc.php on line 0
[09-Nov-2021 09:49:33 UTC] PHP Fatal error: Cannot override final method Plugin::getInstallSchemaFile() in /home/pjoorgpk/public_html/plugins/generic/staticPages/StaticPagesPlugin.inc.php on line 0
[09-Nov-2021 09:49:35 UTC] PHP Fatal error: Cannot override final method Plugin::getInstallSchemaFile() in /home/pjoorgpk/public_html/plugins/generic/staticPages/StaticPagesPlugin.inc.php on line 0
Hmm… I’m not sure about these errors, so I can’t really advise, but I will bring this to the attention of our team members and they will try to advise when they are able to.
Thanks @rcgillis, Dear @asmecher You please advice me in this regard because our many services are stuck in old version and we want to upgrade in new one but after upgrade process i get these errors in error_log file and no upgrade done.
The error message is quite clear about the cause - the application can’t establish a connection with a database.
The latest OJS version is 3.3.0-8, no need to upgrade to the older one. Can you describe the steps you did before running an upgrade?
Did you inspect and set all required settings in the new config.inc.php file? A new version may contain new settings that should be set, may have settings removed or replaced. I usually use a diff tool to compare old and new (template) config file.