Problem with adding a role for an existing user - OJS 3.5.0-1

Hi, after upgrading OJS to version 3.5.0-1, I have a problem adding new Roles for existing users (including myself - as admin).

After entering the Settings → Users & Roles → Edit (user) → Add another Role

I fill in the form and save it using Save And Continue, a form opens where Email Templates loads and I press Invite user to the role. At this point I get an error as follows

The logs first show warnings

PHP Warning: Undefined array key “dateEnd” in my_patch/lib/pkp/classes/invitation/invitations/userRoleAssignment/resources/BaseUserRoleAssignmentInviteResource.php on line 55, referer: https://my_patch/index.php/zeszyty/pl/management/settings/user/1

There is no option in the form to specify an end date so this is not a problem.

However, there is already an error below:

TypeError: PKP\invitation\invitations\userRoleAssignment\helpers\UserGroupHelper::formatDate(): Argument #1 ($timestamp) must be of type string, null given, called in /my_patch/lib/pkp/classes/invitation/invitations/userRoleAssignment/helpers/UserGroupHelper.php on line 43 and defined in /my_patch/lib/pkp/classes/invitation/invitations/userRoleAssignment/helpers/UserGroupHelper.php:58, referer: https://my_patch /index.php/zeszyty/pl/management/settings/user/1

I have tried adding new roles to my account and to other users of our jurnal and I get the same error.

Can I ask for help in fixing this problem?

Hi @Adam_Koleszka,

Thanks for bringing this to our attention. I’ve logged a ticket for the issue and will be working on a fix shortly.

same problem

deleting a role and adding a role as an admin in 3.5.0.1, also section editor can’t do anything after being assigned to a submission.