Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site title can be missing in the email template #10446

Open
Vitaliy-1 opened this issue Sep 18, 2024 · 0 comments
Open

Site title can be missing in the email template #10446

Vitaliy-1 opened this issue Sep 18, 2024 · 0 comments
Assignees
Labels
Bug:1:Low A bug that does not have a severe consequence or affects a small number of users. Try Me This issue might be good for a new contributor. Can you help us?
Milestone

Comments

@Vitaliy-1
Copy link
Collaborator

Describe the bug
When user registers through the site and require_validation is turned on in the config, email is sent to the user for validation composed with USER_VALIDATE_SITE email template. Site title might be not set in settings, this leads to missing variable and the following email's body:

John Smith<br />
<br />
You have created an account with , but before you can start using it, you need to validate your email account. To do this, simply follow the link below:<br />
<br />
http://localhost:8000/index.php/index/en/invitation/accept...<br />
<br />
Thank you,<br />
<p>Open Journal Systems<br/></p> 

There should be alternative in such cases, when site title is missing, either just substitute is with the platform name or re-word the template.

To Reproduce
Steps to reproduce the behavior:

  1. Create at least 2 journals
  2. Turn require_validation to on in the config file
  3. Ensure the the email default mailer is set to log
  4. Go to the registration form, fill the form and save it
  5. See the warning regarding missing variable and the email text in the log

What application are you using?
OJS, OMP and OPS main branch

@Vitaliy-1 Vitaliy-1 added Bug:1:Low A bug that does not have a severe consequence or affects a small number of users. Try Me This issue might be good for a new contributor. Can you help us? labels Sep 18, 2024
@Vitaliy-1 Vitaliy-1 added this to the 3.5.0 LTS milestone Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug:1:Low A bug that does not have a severe consequence or affects a small number of users. Try Me This issue might be good for a new contributor. Can you help us?
Projects
None yet
Development

No branches or pull requests

2 participants