I have tried upgrading, this error has occurred. Is there someone to write steps to upgrade this version, for over a week I have been struggling.
Fatal error: Uncaught Error: Call to a member function getConnection() on null in /home/bcsrvins/public_html/ojs2/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php:77 Stack trace: #0 /home/bcsrvins/public_html/ojs2/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php(203): Illuminate\Database\Capsule\Manager::connection() #1 /home/bcsrvins/public_html/ojs2/lib/pkp/classes/db/DAO.inc.php(65): Illuminate\Database\Capsule\Manager::__callStatic(‘raw’, Array) #2 /home/bcsrvins/public_html/ojs2/lib/pkp/classes/context/ContextDAO.inc.php(63): DAO->retrieve(‘SELECT * FROM j…’, Array) #3 /home/bcsrvins/public_html/ojs2/lib/pkp/classes/core/PKPRouter.inc.php(252): ContextDAO->getByPath(‘bcsrj’) #4 /home/bcsrvins/public_html/ojs2/lib/pkp/classes/core/PKPRequest.inc.php(760): PKPRouter->getContext(Object(Request), 1) #5 /home/bcsrvins/public_html/ojs2/classes/core/Request.inc.php(64): PKPRequest->_delegateToRouter(‘getContext’, 1) #6 /home/bcsrvins/public_html/ojs2/lib/pkp/ in /home/bcsrvins/public_html/ojs2/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Capsule/Manager.php on line 77
I would recommend upgrading to the latest 3.3.0-x version, which is currently 3.3.0-21, rather than 3.3.0-13.
There are upgrade instructions in docs/UPGRADE.md in the OJS 3.3.0 package. If you’re able to describe where you’re getting stuck while following those steps, I may be able to help further.
Thanks,
Alec Smecher
Public Knowledge Project Team
Thank for the suggestion. I have tried to upgrade to 3.3.0-21 and I’m getting the following error
Warning: require_once(/home/bcsrvins/public_html/ojs2/lib/pkp/plugins/metadata/openurl10/PKPOpenurl10MetadataPlugin.inc.php): failed to open stream: No such file or directory in /home/bcsrvins/public_html/ojs2/lib/pkp/includes/functions.inc.php on line 25
Fatal error: require_once(): Failed opening required ‘/home/bcsrvins/public_html/ojs2/lib/pkp/plugins/metadata/openurl10/PKPOpenurl10MetadataPlugin.inc.php’ (include_path=‘.:/opt/alt/php73/usr/share/pear’) in /home/bcsrvins/public_html/ojs2/lib/pkp/includes/functions.inc.php on line 25
It looks like you have a plugin in plugins/metadata/openurl10 that’s not complete or isn’t compatible with OJS 3.3. This plugin doesn’t come with OJS 3.3.0 so I’m wondering how it got there. Did you unpack your OJS 3.3.0-x archive over top of your old OJS 3.2.1 installation? If so, that’s not a recommended approach to upgrading; double-check the upgrade instructions.
Regards,
Alec Smecher
Public Knowledge Project Team
I managed the previous error, now I’m facing this one
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘url’ in ‘SELECT’ (SQL: select `url`, `navigation_menu_item_id` from `navigation_menu_items` where `context_id` = 1)
An OJS 3.2.1-5 database should have a url column in the navigation_menu_items table but it looks like yours does not. If you’ve already attempted an upgrade and it failed, make sure you restore your database etc. from backup before trying it again. Usually this kind of error message shows up when you try to run an upgrade a second time on a database that’s already been partially upgraded but encountered a problem..
Regards,
Alec Smecher
Public Knowledge Project Team