OJS Errors While performing action in back-end

Greetings,

Whenever I perform any action I get errors, like opening discussion, assigning or un-assigning reviewers or even searching users etc. But it doesn’t happen all the time. It is somehow pain for me to work in the back-end.

OJS Version: 3.0.1.0
PHP: 5.6.40

Errors that I am facing are attached. I have debugged the element in chrome but there is nothing in the console.

I would appreciate if someone could help/suggest in this regard.

InkedInkedAssigning Reviewers error 2_LI InkedInkedFetch data while searching email_LI InkedInkedUn-assign reviewer - 17-Sep-20_LI

Hi @naeemdal,

Check your PHP error log, and watch for browser errors that appear on the page before the screenshot you show appears. Also note that OJS 3.0.1 and PHP 5.6.40 are both very old, and you should probably upgrade both.

Regards,
Alec Smecher
Public Knowledge Project Team

Dear @asmecher Thank you for the response; the following are the PHP error logs that are repetitive since many months but the problem I am facing occurred from last month;

        [07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of PdfJsViewerPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/pdfJsViewer/PdfJsViewerPlugin.inc.php on line 141
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of RecommendByAuthorPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 156
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of LensGalleyPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/lensGalley/LensGalleyPlugin.inc.php on line 157
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of GoogleAnalyticsPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/googleAnalytics/GoogleAnalyticsPlugin.inc.php on line 147
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of BrowsePlugin::manage() should be compatible with Plugin::manage($args, $request) in /home/publicat/public_html/plugins/generic/browse/BrowsePlugin.inc.php on line 151
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of BrowsePlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/browse/BrowsePlugin.inc.php on line 151
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of WebFeedPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/webFeed/WebFeedPlugin.inc.php on line 190
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of OrcidProfilePlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php on line 413
[07-Oct-2020 03:00:02 Asia/Karachi] PHP Deprecated:  Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/publicat/public_html/lib/pkp/classes/cliTool/ScheduledTaskTool.inc.php on line 88
[07-Oct-2020 03:00:02 Asia/Karachi] PHP Deprecated:  Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/publicat/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of PdfJsViewerPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/pdfJsViewer/PdfJsViewerPlugin.inc.php on line 141
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of RecommendByAuthorPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 156
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of LensGalleyPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/lensGalley/LensGalleyPlugin.inc.php on line 157
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of GoogleAnalyticsPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/googleAnalytics/GoogleAnalyticsPlugin.inc.php on line 147
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of BrowsePlugin::manage() should be compatible with Plugin::manage($args, $request) in /home/publicat/public_html/plugins/generic/browse/BrowsePlugin.inc.php on line 151
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of BrowsePlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/browse/BrowsePlugin.inc.php on line 151
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of WebFeedPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/webFeed/WebFeedPlugin.inc.php on line 190
[07-Oct-2020 03:00:01 Asia/Karachi] PHP Strict Standards:  Declaration of OrcidProfilePlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in /home/publicat/public_html/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php on line 413
[07-Oct-2020 03:00:02 Asia/Karachi] PHP Deprecated:  Non-static method ScheduledTaskHelper::checkFrequency() should not be called statically, assuming $this from incompatible context in /home/publicat/public_html/lib/pkp/classes/cliTool/ScheduledTaskTool.inc.php on line 88
[07-Oct-2020 03:00:02 Asia/Karachi] PHP Deprecated:  Non-static method ScheduledTaskHelper::_isInRange() should not be called statically, assuming $this from incompatible context in /home/publicat/public_html/lib/pkp/classes/scheduledTask/ScheduledTaskHelper.inc.php on line 114 

Moreover, I did not have any error that occurred after my thread here, but I will share the browser error as suggested by you. Further, as dialogue box appears that asks for to leave the page and then the error appears, unfortunately, the browser console doesn’t show any error but I will check the console when the browser dialogue box appears. However, following is the source; And Soon I will go for the upgrade but I don’t want to take any chance right now as our journal is live and don’t want to break anything with the upgrade or please suggest if upgrade could go smooth? I am a newbie on OJS.

{"status":true,"content":"\n<script>\n\t\/\/ Attach the handler.\n\t$(function() {\n\t\t$('#queryForm').pkpHandler(\n\t\t\t'$.pkp.controllers.form.CancelActionAjaxFormHandler',\n\t\t\t{\n\t\t\t\tcancelUrl: null\t\t\t}\n\t\t);\n\t});\n<\/script>\n\n<form class=\"pkp_form\" id=\"queryForm\" method=\"post\" action=\"https:\/\/myjournalsite.example.edu.pk\/index.php\/muetrj\/$$$call$$$\/grid\/queries\/queries-grid\/update-query?queryId=1181&amp;submissionId=1288&amp;stageId=1\">\n\t<input type=\"hidden\" name=\"csrfToken\" value=\"49171f476a8891e4d28d155ed79a6e77\">\n\n\t\n<script>\n\t$(function() {\n\t\t\/\/ Attach the form handler.\n\t\t$('#queryFormNotification').pkpHandler('$.pkp.controllers.NotificationHandler',\n\t\t{\n\t\t\t\nfetchNotificationUrl: \"https:\\\/\\\/myjournalsite.example.edu.pk\\\/index.php\\\/muetrj\\\/notification\\\/fetchNotification\",\nhasSystemNotifications: true\n\t\t});\n\t});\n<\/script>\n<div id=\"queryFormNotification\" class=\"pkp_notification \"><\/div>\n\t\n<fieldset  id=\"queryUsersArea\">\n\t\t\t\t\n\t\t\n<script>\n\t\/\/ Initialise JS handler.\n\t$(function() {\n\t\t$('#queryUsersContainer').pkpHandler(\n\t\t\t'$.pkp.controllers.UrlInDivHandler',\n\t\t\t{\n\t\t\t\tsourceUrl: \"https:\\\/\\\/myjournalsite.example.edu.pk\\\/index.php\\\/muetrj\\\/$$$call$$$\\\/listbuilder\\\/users\\\/query-users-listbuilder\\\/fetch?queryId=1181&submissionId=1288&stageId=1\"\n\t\t\t}\n\t\t);\n\t});\n<\/script>\n\n<div id=\"queryUsersContainer\">\n<div class=\"pkp_loading\">\n\t<span class=\"pkp_spinner\"><\/span>\n\t<span class=\"message\">Loading<\/span>\n<\/div><\/div>\n\t\n<\/fieldset>\n\t\n<fieldset  id=\"queryContentsArea\">\n\t\t\t\t\n\n<div class=\"section error \">\n\t\t\t\t\t<label  for=\"subject-5f7afae07f142\">Subject<span class=\"req\">*<\/span><\/label>\t\t\t\t\t\t\t<span class=\"error\">A discussion subject is required.<\/span>\n\t\t\t\n\t\t\t\t\t\t\n<div>\n\t\t<input\ttype=\"text\"\n\t\tvalidation=\"required\" \n\t\tclass=\"field text required\"\n\t\t\t\t\t\tname=\"subject\"\n\t\tvalue=\"\"\n\t\tid=\"subject-5f7afae07f142\"\n\t\t\t\/>\n\n\t\n\t<span><\/span>\n<\/div>\n\t\t\n\t<\/div>\n\t\t\n\n<div class=\"section error \">\n\t\t\t\t\t<label  for=\"comment-5f7afae07f321\">Message<span class=\"req\">*<\/span><\/label>\t\t\t\t\t\t\t<span class=\"error\">A discussion message is required.<\/span>\n\t\t\t\n\t\t\t\t\t\t\n<div>\n\t\t\t\t<textarea validation=\"required\" \n\t\t\tclass=\"  required richContent\"\n\t\t\t\t\t\t\t\t\t\t\t\tname=\"comment\"\n\t\t\trows=\"10\"\n\t\t\tcols=\"80\"\n\t\t\tid=\"comment-5f7afae07f321\"><\/textarea>\n\t\t\t<span><\/span>\n<\/div>\n\t\t\n\t<\/div>\t\n<\/fieldset>\n\t\n<fieldset  id=\"queryNoteFilesArea\">\n\t\t\t\t\n\t\t\n<script>\n\t\/\/ Initialise JS handler.\n\t$(function() {\n\t\t$('#queryNoteFilesGrid').pkpHandler(\n\t\t\t'$.pkp.controllers.UrlInDivHandler',\n\t\t\t{\n\t\t\t\tsourceUrl: \"https:\\\/\\\/myjournalsite.example.edu.pk\\\/index.php\\\/muetrj\\\/$$$call$$$\\\/grid\\\/files\\\/query\\\/query-note-files-grid\\\/fetch-grid?queryId=1181&noteId=2428&submissionId=1288&stageId=1\"\n\t\t\t}\n\t\t);\n\t});\n<\/script>\n\n<div id=\"queryNoteFilesGrid\">\n<div class=\"pkp_loading\">\n\t<span class=\"pkp_spinner\"><\/span>\n\t<span class=\"message\">Loading<\/span>\n<\/div><\/div>\n\t\n<\/fieldset>\n\t<p><span class=\"formRequired\">* Denotes required field<\/span><\/p>\n\n\t\n\n\n<div class=\"section formButtons form_buttons \">\n\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t<button class=\"pkp_button submitFormButton\" type=\"submit\"  id=\"submitFormButton-5f7afae07f7e3\" >OK<\/button>\n\n\t\t<span class=\"pkp_spinner\"><\/span>\n\n\t\t\t\t\t\t\t\t<a href=\"#\" id=\"cancelFormButton-5f7afae07f8f2\" class=\"cancelButton\">Cancel<\/a>\n\t\n\t<\/div>\n\n<\/form>","elementId":"0"}

Dear @asmecher I was working and just found the error; Please have a look; The browser screenshot is also attached;

Inkederror log one_LI

jquery.min.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.min.js:4
FormHandler.js:580 Uncaught TypeError: Cannot set property 'closePermitted' of undefined
    at proxyConstructor.$.pkp.controllers.form.FormHandler.containerCloseHandler (FormHandler.js:580)
    at proxyConstructor.$.pkp.classes.ObjectProxy.parent (ObjectProxy.js:132)
    at proxyConstructor.$.pkp.controllers.form.CancelActionAjaxFormHandler.containerCloseHandler (CancelActionAjaxFormHandler.js:75)
    at HTMLFormElement.$.pkp.classes.Handler.handleEvent (Handler.js:217)
    at HTMLFormElement.dispatch (jquery.min.js:3)
    at HTMLFormElement.r.handle (jquery.min.js:3)
    at Object.trigger (jquery.min.js:3)
    at HTMLFormElement.<anonymous> (jquery.min.js:3)
    at Function.each (jquery.min.js:2)
    at n.fn.init.each (jquery.min.js:2)
>