Hi PKP community! I have a strange problem that I’m trying to figure out the source of. I have a bunch of 18.104.22.168 instances running on the same server and they all work great except for one. None of the ajax calls on the admin / backend side work. Everything is just stuck in “loading”.
The browser console log shows errors like this:
Uncaught SyntaxError: ‘’ string literal contains unescaped line break
And in the generate template code there are message like this where the js template data should be:
Notice: escape: unsupported type: js - returning unmodified string in /lib/pkp/lib/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 258
I managed to fix the problem by adding a case for “js” in /lib/pkp/classes/template/PKPTemplateManager.inc.php at line 1783 in the smartyEscape function like so: