Issue with ROR plugin: Failed Ajax request or invalid JSON returned

Issue Description

I’m getting an error that I’ve seen in a few forum posts, but this is in a new location with a new cause I believe. The error happens every time we try to add a contributor using the QuickSubmit plugin. It seems to be related to the ROR plugin from what I can see in the logs, and disabling the plugin fixes the issue for now. The weird thing is, that plugin has been enabled for some time and I don’t believe it’s changed since this error started being produced. Any ideas on what could have triggered it? We do want to enable the ROR plugin if possible.

Some notes

  • We haven’t seen the error anywhere else in OJS
  • We have tried on multiple computers, with incognito, logging out/in, etc.
  • We have submitted over 60 articles this way already without issue - this is new
  • Nothing major has changed recently (updates, etc)–we only made some front-end template changes
  • Disabling the ROR plugin fixes the issue it seems, but we would like to enable this plugin

Steps to reproduce

  1. Open QuickSubmit plugin
    https://journal.bahaistudies.ca/online/management/importexport/plugin/QuickSubmitPlugin
  2. Press Add Contributor

Here’s a screenshot of the error:
ajax-error

Environment

Logs

add-author request when pressing Add Contributor (HAR format, truncated)

Open HAR file

Response to add-author
<br />
<b>Warning</b>:  call_user_func() expects parameter 1 to be a valid callback, class 'RORPlugin' does not have a method 'handleAutorFormDisplay' in <b>/var/www/html/lib/pkp/classes/plugins/HookRegistry.inc.php</b> on line <b>107</b><br />
{"status":true,"content":"<script>\n\t$(function() {\n\t\t$('#editAuthor').pkpHandler(\n\t\t\t'$.pkp.controllers.form.AjaxFormHandler'\n\t\t);\n\t});\n<\/script>\n\n<form class=\"pkp_form\" id=\"editAuthor\" method=\"post\" action=\"https:\/\/journal.bahaistudies.ca\/online\/$$$call$$$\/grid\/users\/author\/author-grid\/update-author?authorId=\">\n\t[truncated]","elementId":"0","events":null}
PHP Logs from apache2 server, isolated to fresh load of QuickSubmit page
70.66.230.254 - - [02/Feb/2021:17:53:17 +0000] "GET /online/management/importexport/plugin/QuickSubmitPlugin HTTP/1.1" 200 8922 "https://journal.bahaistudies.ca/online/management/tools" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
70.66.230.254 - - [02/Feb/2021:17:53:18 +0000] "GET /online/$$$call$$$/page/page/user-nav-backend?_=1612288398371 HTTP/1.1" 200 3741 "https://journal.bahaistudies.ca/online/management/importexport/plugin/QuickSubmitPlugin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
70.66.230.254 - - [02/Feb/2021:17:53:18 +0000] "POST /online/notification/fetchNotification HTTP/1.1" 200 504 "https://journal.bahaistudies.ca/online/management/importexport/plugin/QuickSubmitPlugin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
70.66.230.254 - - [02/Feb/2021:17:53:18 +0000] "GET /favicon.ico HTTP/1.1" 200 2052 "https://journal.bahaistudies.ca/online/management/importexport/plugin/QuickSubmitPlugin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
70.66.230.254 - - [02/Feb/2021:17:53:18 +0000] "GET /online/$$$call$$$/grid/users/author/author-grid/fetch-grid?submissionId=89&publicationId=89&_=1612288398372 HTTP/1.1" 200 6027 "https://journal.bahaistudies.ca/online/management/importexport/plugin/QuickSubmitPlugin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
70.66.230.254 - - [02/Feb/2021:17:53:18 +0000] "GET /online/$$$call$$$/grid/article-galleys/article-galley-grid/fetch-grid?submissionId=89&publicationId=89&_=1612288398373 HTTP/1.1" 200 5632 "https://journal.bahaistudies.ca/online/management/importexport/plugin/QuickSubmitPlugin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
70.66.230.254 - - [02/Feb/2021:17:53:18 +0000] "GET /online/$$$call$$$/page/page/tasks?_=1612288398374 HTTP/1.1" 200 2308 "https://journal.bahaistudies.ca/online/management/importexport/plugin/QuickSubmitPlugin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
70.66.230.254 - - [02/Feb/2021:17:53:18 +0000] "GET /lib/pkp/lib/vendor/tinymce/tinymce/skins/lightgray/skin.min.css.map HTTP/1.1" 404 447 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
70.66.230.254 - - [02/Feb/2021:17:53:18 +0000] "GET /online/$$$call$$$/grid/notifications/task-notifications-grid/fetch-grid?_=1612288398375 HTTP/1.1" 200 8452 "https://journal.bahaistudies.ca/online/management/importexport/plugin/QuickSubmitPlugin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
70.66.230.254 - - [02/Feb/2021:17:53:22 +0000] "GET /online/$$$call$$$/grid/users/author/author-grid/add-author?submissionId=89&publicationId=89&_=1612288398376 HTTP/1.1" 200 29867 "https://journal.bahaistudies.ca/online/management/importexport/plugin/QuickSubmitPlugin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"
70.66.230.254 - - [02/Feb/2021:17:53:38 +0000] "-" 408 3682 "-" "-"
70.66.230.254 - - [02/Feb/2021:17:54:32 +0000] "GET /online/$$$call$$$/grid/users/author/author-grid/add-author?submissionId=89&publicationId=89&_=1612288398377 HTTP/1.1" 200 30447 "https://journal.bahaistudies.ca/online/management/importexport/plugin/QuickSubmitPlugin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36"

OJS Version history

Version Major Minor Revision Build Date installed
3.2.1.2 3 2 1 2 2021-01-19

Server Information

Setting Name Setting Value
OS platform Linux
PHP version 7.4.3
Apache version Apache/2.4.41 (Ubuntu)
Database driver mysqli
Database server version 8.0.23-0ubuntu0.20.04.1

thanks @benaltair for the detailed description.

Do you have access to the server log, where it should be documented, where the error happens. PHP Error :
That would be very helpful for me to pinpoint the issue.

Hi @Dulip_Withanage, thanks for your reply. The logs should be accessible at the bottom of the post by clicking on the collapsible headings. My apologies if that wasn’t clear. Or are you looking for other logs?

@benaltair
sorry, did not see that. the log is helpful for me.
I see the issue and will release a new version next week and let you know.

1 Like