Variables not reading in the version omp 3.40-10

Dears,

Before upgrade the omp version 3.3-22 to 3.4-10 the variables {$recipientName}, {$editorUsername}, {$editorialContactSignature} not replaced in the send mails.

Dear Francisco,

I could not reproduce this, but the 3.4 release used to have similar issues, mainly in the earlier point releases. If you are still facing this issue on 3.4.0-10, could you please let me know whether in the Activity Log the variables show up correctly (meaning “replaced” by real values)?

This is only speculation, but do you face this issue with a variety of recipients or just with one particular user?

Best wishes,
Attila
PKP Team

Thanks,

In the Activity Log the variables no replace too.

Dear Francisco,

I still could’t reproduce your issue. If you want, you can share you PHP version and database engine. OJS/OMP 3.4 generally favors PHP > 8.0.

I would check a few simple things, even if it sounds trivial:

  1. Can you add a new “dummy user”? (You can take a look at the users table in the database and see if the encoding matches your installation’s encoding, and if the data there is legible and matches an expected OJS/OMP structure.)
  2. If creating this user is successful, I would try to email the newly created user, using an email template that contains at least one variable.

While this might not directly give you a solution, it could help reveal why the values aren’t “read” into the template. If you have access to logs, taking a look at the error_log file, usually in the installation directory, might reveal what is happening. Also, the email_log table in the database can show you the message body of emails leaving the system and might make testing easier.

Best wishes,
Attila