Upgrade Error froOJS 3.4.0-8 to 3.5.0-1

Good morning,

I know that similar posts are on the forum, but I have tried all the solutions posted, but none are working.

OJS upgrade from 3.4.0-8 to 3.5.0-1

Ubuntu 24.04 LTS

php8.3

mysql 8.0.42

I am receiving two errors when executing php tools/upgrade.php upgrade

The first error is as follows. I am just copying the first two lines but this goes for all ContextId’s:

WARNING: The NavigationMenu (ContextId: 22, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
WARNING: The NavigationMenu (ContextId: 22, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.

Second error:

Missing locale key “validation.attributes” for the locale “en”
Missing locale key “validation.values.reviewAssignmentId.” for the locale “en”

I even tried to copy the /lib/pkp/locale directory from my backup over to the new version but the problem persists.

I also updated the config.inc.php from version 3.4 to incorporate the changes to 3.5 and the default locale is defined as locale = en

Any help would be greatly appreciated.

Thanks,

Daan

Hi @daanlessing,

Those are just warning messages and can be ignored. If you’re encountering an error, there should be another message that captures the details. What is the full output of the upgrade process?

(I don’t recommend copying the locale files as you’re suggesting; you’ll end up with incompatible locale files that are missing new content.)

Regards,
Alec Smecher
Public Knowledge Project Team

Good morning Alec,

Thank you for your quick reply.

I see that the earlier messages were only warnings, but I noticed a fatal error right at the bottom:

PHP Fatal error: Uncaught TypeError: PKP\migration\upgrade\v3_5_0\I9425_SeparateUIAndSubmissionLocales::PKP\migration\upgrade\v3_5_0{closure}(): Return value must be of type array, stdClass returned in /var/www/upjournals-dev.up.ac.za/lib/pkp/classes/migration/upgrade/v3_5_0/I9425_SeparateUIAndSubmissionLocales.php:64

I believe I’ve resolved the issue. I went to Administration > Site Settings > Site Setup > Languages, removed ar, fr_FR, and pt_PT, and then ran the upgrade again without any issues.

Afterward, I reinstalled the languages, but I noticed that fr_FR is now simply fr, and pt_PT is now pt. I suspect that may have been the source of the problem.

If you happen to see anything else in the error that looks concerning, I’d appreciate your insights.

Thanks again for your prompt assistance.

Kind regards,

Daan