due to upgrade process from 3.3.0.10 to 3.4.0.1 i have a lot of problems. so i decided to made few upgrades instead of 1 direct. (upgrade of OJS from 3.3.0.10 directly to 3.4.0.1 was successful from first attemp)
update from 3.3.0.10 to 3.3.0.14 (at this update process php version was 7.4) was successful. but in upgrade to 3.4.0.0 (i have switched php version to 8.1) i receive error:
2023-07-14 11:02:09 [migration: APP\migration\upgrade\v3_4_0\I7191_SubmissionChecklistMigration]
2023-07-14 10:59:07 [migration: APP\migration\upgrade\v3_4_0\I7191_SubmissionChecklistMigration]
PHP Fatal error: Uncaught TypeError: property_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /var/www/siteuser/data/www/library.uars.info/lib/pkp/classes/migration/upgrade/v3_4_0/I7191_SubmissionChecklistMigration.php:58
Stack trace:
#0 /var/www/siteuser/data/www/library.uars.info/lib/pkp/classes/migration/upgrade/v3_4_0/I7191_SubmissionChecklistMigration.php(58): property_exists()
#1 /var/www/siteuser/data/www/library.uars.info/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(235): PKP\migration\upgrade\v3_4_0\I7191_SubmissionChecklistMigration->PKP\migration\upgrade\v3_4_0\{closure}()
#2 /var/www/siteuser/data/www/library.uars.info/lib/pkp/classes/migration/upgrade/v3_4_0/I7191_SubmissionChecklistMigration.php(42): Illuminate\Support\Collection->each()
#3 /var/www/siteuser/data/www/library.uars.info/lib/pkp/classes/install/Installer.php(463): PKP\migration\upgrade\v3_4_0\I7191_SubmissionChecklistMigration->up()
#4 /var/www/siteuser/data/www/library.uars.info/lib/pkp/classes/install/Installer.php(294): PKP\install\Installer->executeAction()
#5 /var/www/siteuser/data/www/library.uars.info/lib/pkp/classes/install/Installer.php(209): PKP\install\Installer->executeInstaller()
#6 /var/www/siteuser/data/www/library.uars.info/lib/pkp/classes/cliTool/UpgradeTool.php(96): PKP\install\Installer->execute()
#7 /var/www/siteuser/data/www/library.uars.info/lib/pkp/classes/cliTool/UpgradeTool.php(69): PKP\cliTool\UpgradeTool->upgrade()
#8 /var/www/siteuser/data/www/library.uars.info/tools/upgrade.php(22): PKP\cliTool\UpgradeTool->execute()
#9 {main}
thrown in /var/www/siteuser/data/www/library.uars.info/lib/pkp/classes/migration/upgrade/v3_4_0/I7191_SubmissionChecklistMigration.php on line 58
could anyone help? searching at forume gives no result.
server linux-ubuntu, PHP 8.1.21, Apache/2.4.52, mysql 8.0.33-0ubuntu0.22.04.2
tried to change php version from 8.1.21 to 8.0.28, same result.
next try of upgrade i receive this message:
2023-07-14 11:17:24 [A pre-flight check failed. The software was successfully upgraded to 3.3.9.9 but could not be upgraded further (to 3.4.0.1). Check and correct the error, then try again.]
ERROR: Upgrade failed: DB: A row with setting_name="submissionChecklist" found in table press_settings without the expected setting_value. Expected an array encoded in JSON but found:
<p>All submissions must meet the following requirements.</p><ul><li>The submission has not been previously published, nor is it before another press for consideration (or an explanation has been provided in Comments to the Editor).</li><li>The submission file is in the Microsoft Word, RTF, or OpenDocument file format.</li><li>Where available, URLs for the references have been provided.</li><li>The text is single-spaced; uses a 12-point font; employs italics, rather than underlining (except with URL addresses); and all illustrations, figures, and tables are placed within the text at the appropriate points, rather than at the end.</li><li>The text adheres to the stylistic and bibliographic requirements outlined in the <a href="https://library.uars.info/index.php/uarr/about/submissions#authorGuidelines" target="_blank">Author Guidelines</a>, which is found in About the Press.</li></ul>
Fix or remove this row before upgrading.
deleting this strings and next update step:
2023-07-14 11:19:12 [migration: APP\migration\upgrade\v3_4_0\PreflightCheckMigration]
2023-07-14 11:19:29 [A pre-flight check failed. The software was successfully upgraded to 3.3.9.9 but could not be upgraded further (to 3.4.0.1). Check and correct the error, then try again.]
ERROR: Upgrade failed: DB: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'at.assoc_type' in 'where clause' (SQL: select distinct `at`.`type_id` from `announcement_types` as `at` left join `presses` as `c` on `at`.`assoc_id` = `c`.`press_id` where `c`.`press_id` is null or `at`.`assoc_type` <> 512)
Any 3.3.0-x upgrade to 3.4.0 should be equivalent; I’m not sure why you’d encounter different errors based on which path you took, but if you can provide details, I’ll see what I can suggest.
For issues related to the submission checklist during upgrade, I’ve filed an issue here:
I’ll add a patch shortly. Essentially the JSON stored in your database has a particular quirk that causes PHP to decode it inconsistently.
We’ll be releasing OJS 3.4.0-2 in a couple of weeks, and this should include a large number of quality-of-life patches that resolve issues that have been uncovered here since the initial release. I’d suggest watching for that. We’ll do our best to keep on top of anything else you run into if you can provide details.
Regards,
Alec Smecher
Public Knowledge Project Team