Hi everybody,
my problem is that email templates when selected to communicate, do not appear.
I don’t know what the problem is, can you help me fix it?
attached image:
Bye
Tiziano
Hi everybody,
my problem is that email templates when selected to communicate, do not appear.
I don’t know what the problem is, can you help me fix it?
attached image:
Bye
Tiziano
Hi @Tiziano,
What exact version of OJS are you using? (Please include this in your posts.)
Can you check your browser’s javascript console to see if there are any errors there?
Regards,
Alec Smecher
Public Knowledge Project Team
Hi Alec!
i’m using OJS 3.1.0.1, now i’m using safari on MAC OS where can find the browser’s javascript console?
I made an update from version 2.4.8 and there are several custom email templates.
Thanks for help.
Bye
Tiziano
Hi @Tiziano,
I’m not sure, but see e.g. development - How do I open the javascript console in Safari 6? - Ask Different.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi @asmecher!
ok, I should have been able to find it.
displays this error to me:
is not very clear to me, you have some suggestions?
Thanks!
Bye
Tiziano
Hi @tiziano,
I think you probably need to apply this patch in the lib/pkp
subdirectory.
Regards,
Alec Smecher
Public Knowledge Project Team
HI @asmecher,
i tried with your patch, but still doesn’t works.
But I noticed one thing, that if I remove these TAGs from my template:
{$participantName}
{$submissionTitle}
{$editorialContactSignature}
and leave only HTML text, then it displays it correctly to me.
is it a problem of processing TAGs?
Thanks for your help!
Bye
Tiziano
Hi @Tiziano,
I suspect you’ll have to turn off Javascript minification in your config.inc.php
for the change you made to take effect – otherwise OJS will load the compiled javascript, which doesn’t have the change in it.
Regards,
Alec Smecher
Public Knowledge Project Team
I think you’ve centred the point, I’ve changed the voice in config.inc.php
:
; Set the following parameter to off if you want to work with the uncompiled (non-minified) JavaScript
; source for debugging or if you are working off a development branch without compiled JavaScript.
enable_minified = Off
from ON to OFF
now the emails are displayed, but i noticed one thing that may be useful: the TAG {$authorName}
does not accept it and processes it anymore, I replaced it with the TAG {$participantName}
.
Do you think it is fine as a solution?
I would have to ask you anything else that is possible in these emails attach a file?
Thanks for your support
Bye
Tiziano
Hi @Tiziano,
Some email templates use {$authorName}
and others use {$participantName}
; the appropriate one depends on the context in which the email template is being called up.
Regards,
Alec Smecher
Public Knowledge Project Team
@asmecher the thing I’ve seen is that the solution you’ve proposed is fine for one installation but, strangely, it doesn’t work for other installations, and I don’t understand what can be different, since the config.inc.php
file is configured the same way, obviously with the various differences that are needed for one magazine and another
In some installations I see several empty templates like these:
How can I delete them?
Hi @Tiziano,
Check the “Prepared Emails” list for that journal; I suspect there are some extra (probably custom) templates in the journal that shows the empty subject lines.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi @asmecher,
i have not yet been able to solve this problem of the mail display, despite having tried several patches.
the javascript console gives me these errors.
How can I solve the problem, which is limited only to custom tempered mail.
Thanks for help.
Bye
Tiziano
Hi @Tiziano,
Are you able to upgrade to OJS 3.1.1? That should include the fix for this.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi @asmecher,
ah nice news! but I did a test a few days ago updating one of our magazine, not yet in production, to the OJS 3.1.1 version, I saw that using the boostraps theme gave me a php error on the archive page.
more precisely this error:
Fatal error: Call to a member function getPageCount() on array in /var/www/vhosts/aamronline.org/cache/t_compile/212833ef87fa1fc65e4bb561b9efd6bd26c984b5^%%6B^6B5^6B5^6B5271FB%issueArchive.tpl.php online 6
in addition I have seen that after the update I empty the table static_pages and static_page_settings
Thanks for any help.
Bye
Tiziano
Hi Tiziano,
I’ve just today quietly put together a release for Bootstrap3 which makes it compatible with 3.1.1. Once that’s had a couple people test it I’ll make the release more public. In the meantime you can get it here:
Hi @NateWr! I immediately tested the new release and it works great for me. Thanks for advice!
Now I only have the question that when it updates to version 3.1.1 it empties the tables static_pages and static_page_settings
Thanks for your help
Bye
Tiziano
That change won’t be related to the theme in any way.
Hi @asmecher,
I have updated one of our magazines to OJS 3.1.1 and I have seen that the problem of displaying emails in the job workflow has been solved. Is it possible to have help to fix this problem on version 3.1.0.1? If a patch is available?
Thanks for you help
Bye
Tiziano