[OJS-3.5.0] labels missing on invitation accept form

Describe the issue or problem
On OJS-3.5.0-1, field labels are missing from the form where a user can accept an invitation to new journal roles. There’s not even a placeholder message about missing translations. I have a suspicion that an i18n-related JS file is not being loaded properly.

Steps I took leading up to the issue

  1. Invite a (new) user to a (new) role

  2. In the confirmation email, click the link labeled “Accept Invitation”, e.g. https://test.journal.org/index.php/test/invitation/accept?id=1&key=1AB234

  3. The form is presented without (visible) error, but the field labels are empty.

  4. The developer console does show a load error for a possibly related JS file at https://test.journal.org/index.php/test/api/v1/_i18n/ui.js:

    GET
    https://test.journal.org/index.php/test/api/v1/_i18n/ui.js?hash=34cf0ede22b167d90790d4808b4cca54f7c72d67
    [HTTP/2 401  212ms]
    	
    error	"You are not authorized to access the requested resource."
    errorMessage	""
    
  5. The error log contains two other locale-related warnings:

    [Thu Jul 24 11:29:23.960130 2025] [php:notice] [pid 11:tid 11] [client 172.26.0.4:40196] Missing locale key "userInvitation.accountDetails.stepDescription" for the locale "en"
    [Thu Jul 24 11:29:23.963697 2025] [php:notice] [pid 11:tid 11] [client 172.26.0.4:40196] Missing locale key "userInvitation.accountDetails.stepDescription" for the locale "en"
    

What application are you using?
OJS 3.5.0-1

Hi @rvdb,

See:

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks for pointing me toward the solution @asmecher , correctly setting allowed_hosts fixed the issue.

Best,

Ron

1 Like