[OJS 3.1.1.4] Editorial History endless loading spinner

Hi everybody.

48

in one of my works the editorial history is not displayed and continues to load endlessly. I enclose screen. looking at my php error logs, there are these error lines, but I don’t know if they can be useful to correct the editorial history, have you already found a solution for this bug?

Thanks for the support
Bye
Tiziano

[Sun May 24 14:02:17.274730 2020] [php7:warn] [pid 2856:tid 140448056149760] [client 10.200.225.10:33132] PHP Warning: Use of undefined constant STATISTICS_DIMENSION_ARTICLE_ID - assumed ‘STATISTICS_DIMENSION_ARTICLE_ID’ (this will throw an Error in a future version of PHP) in /var/www/vhosts/pagepress.org/journals/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 98
[Sun May 24 14:02:17.274804 2020] [php7:warn] [pid 2856:tid 140448056149760] [client 10.200.225.10:33132] PHP Warning: Use of undefined constant STATISTICS_DIMENSION_ARTICLE_ID - assumed ‘STATISTICS_DIMENSION_ARTICLE_ID’ (this will throw an Error in a future version of PHP) in /var/www/vhosts/pagepress.org/journals/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 101
[Sun May 24 14:02:18.356215 2020] [php7:error] [pid 2856:tid 140448056149760] [client 10.200.225.10:33132] PHP Fatal error: Uncaught Error: Call to a member function getAuthors() on array in /var/www/vhosts/pagepress.org/journals/plugins/generic/coins/CoinsPlugin.inc.php:74\nStack trace:\n#0 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/plugins/HookRegistry.inc.php(107): CoinsPlugin->insertFooter(‘Templates::Comm…’, Array)\n#1 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/template/PKPTemplateManager.inc.php(1145): HookRegistry::call(‘Templates::Comm…’, Array)\n#2 /var/www/vhosts/pagepress.org/journals/cache/t_compile/66254e7616b59a9ebb43ff9c227be31966c95a70^%%40^408^4081C66E%%footer.tpl.php(51): PKPTemplateManager->smartyCallHook(Array, Object(TemplateManager))\n#3 /var/www/vhosts/pagepress.org/journals/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1870): include(’/var/www/vhosts…’)\n#4 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/template/PKPTemplateManager.inc.php(406): Smarty->_smarty_include(Array)\n#5 /var/www/vhosts/pagepress.org/journals/cache/t_compile/a4fc84a2d9d2a85c011fcc528f09577e88e in /var/www/vhosts/pagepress.org/journals/plugins/generic/coins/CoinsPlugin.inc.php on line 74
[Sun May 24 14:10:46.271525 2020] [php7:error] [pid 2856:tid 140448106505984] [client 10.200.225.10:40944] PHP Fatal error: Uncaught Error: Call to a member function getAuthors() on array in /var/www/vhosts/pagepress.org/journals/plugins/generic/coins/CoinsPlugin.inc.php:74\nStack trace:\n#0 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/plugins/HookRegistry.inc.php(107): CoinsPlugin->insertFooter(‘Templates::Comm…’, Array)\n#1 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/template/PKPTemplateManager.inc.php(1145): HookRegistry::call(‘Templates::Comm…’, Array)\n#2 /var/www/vhosts/pagepress.org/journals/cache/t_compile/511f4ab86b09dcf7d0b83e864725638a1c99f731^%%40^408^4081C66E%%footer.tpl.php(51): PKPTemplateManager->smartyCallHook(Array, Object(TemplateManager))\n#3 /var/www/vhosts/pagepress.org/journals/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1870): include(’/var/www/vhosts…’)\n#4 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/template/PKPTemplateManager.inc.php(406): Smarty->_smarty_include(Array)\n#5 /var/www/vhosts/pagepress.org/journals/cache/t_compile/a7880fecd678218289445d88aa7710108a8 in /var/www/vhosts/pagepress.org/journals/plugins/generic/coins/CoinsPlugin.inc.php on line 74, referer: https://www.pagepress.org/
[Sun May 24 14:10:47.756494 2020] [php7:warn] [pid 4164:tid 140448173647616] [client 10.200.225.10:40946] PHP Warning: Use of undefined constant STATISTICS_DIMENSION_ARTICLE_ID - assumed ‘STATISTICS_DIMENSION_ARTICLE_ID’ (this will throw an Error in a future version of PHP) in /var/www/vhosts/pagepress.org/journals/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 98, referer: https://www.sogou.com/link?url=DSOYnZeCC_o7NDMj3PzN35Hupz4zdNFs9Bx0SQ1u38LD8Bc8GZaexaU3CGcWFR6pO7xh-SW68ViRwpha_tQ5da3mlRzfPLR2
[Sun May 24 14:10:47.756540 2020] [php7:warn] [pid 4164:tid 140448173647616] [client 10.200.225.10:40946] PHP Warning: Use of undefined constant STATISTICS_DIMENSION_ARTICLE_ID - assumed ‘STATISTICS_DIMENSION_ARTICLE_ID’ (this will throw an Error in a future version of PHP) in /var/www/vhosts/pagepress.org/journals/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 101, referer: https://www.sogou.com/link?url=DSOYnZeCC_o7NDMj3PzN35Hupz4zdNFs9Bx0SQ1u38LD8Bc8GZaexaU3CGcWFR6pO7xh-SW68ViRwpha_tQ5da3mlRzfPLR2
[Sun May 24 14:10:47.772929 2020] [php7:error] [pid 4164:tid 140448173647616] [client 10.200.225.10:40946] PHP Fatal error: Uncaught Error: Call to a member function getAuthors() on array in /var/www/vhosts/pagepress.org/journals/plugins/generic/coins/CoinsPlugin.inc.php:74\nStack trace:\n#0 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/plugins/HookRegistry.inc.php(107): CoinsPlugin->insertFooter(‘Templates::Comm…’, Array)\n#1 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/template/PKPTemplateManager.inc.php(1145): HookRegistry::call(‘Templates::Comm…’, Array)\n#2 /var/www/vhosts/pagepress.org/journals/cache/t_compile/66254e7616b59a9ebb43ff9c227be31966c95a70^%%40^408^4081C66E%%footer.tpl.php(51): PKPTemplateManager->smartyCallHook(Array, Object(TemplateManager))\n#3 /var/www/vhosts/pagepress.org/journals/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php(1870): include(’/var/www/vhosts…’)\n#4 /var/www/vhosts/pagepress.org/journals/lib/pkp/classes/template/PKPTemplateManager.inc.php(406): Smarty->_smarty_include(Array)\n#5 /var/www/vhosts/pagepress.org/journals/cache/t_compile/a4fc84a2d9d2a85c011fcc528f09577e88e in /var/www/vhosts/pagepress.org/journals/plugins/generic/coins/CoinsPlugin.inc.php on line 74, referer: https://www.sogou.com/link?url=DSOYnZeCC_o7NDMj3PzN35Hupz4zdNFs9Bx0SQ1u38LD8Bc8GZaexaU3CGcWFR6pO7xh-SW68ViRwpha_tQ5da3mlRzfPLR2
[Sun May 24 14:13:48.890408 2020] [php7:notice] [pid 4164:tid 140448292132608] [client 10.200.225.10:43586] ojs2: 404 Not Found

Hi everybody,
can anyone help me fix this bug?

Bye
Tiziano

Can you double check if version of COinS plugin in your installation is compatible with the OJS version that you are using?

Hi @Vitaliy,
I’ll enclose the screenshots of the things you asked for, if there are any other checks to be done, just ask.

05

38

let me know, thanks for your support.

Bye
Tiziano

I’m not sure why in the references line of code $authors = $article->getAuthors(); $article is an array, as it should be a Submission object. I see that you’ve already tried to solve this issue: [OJS 3.2.0.1] Error 500 in import/export part - #24 by Tiziano Is it still relevant? If yes, I only can help to debug it with php.

But as far as I see this message isn’t related to the problems with editorial history, this part of code should run only on article lading page. Do you see other errors in the log? The best way would be try to reproduce the error and inspect the logs after it. In this case you will now the exact time of the error and it’ll be much easier to find relevant entry.

Hi @Vitaliy , I still had this problem with the history, I should have found the point in the php log error that displays it, can you take a look at it please?

Thanks for your support
Bye
Tiziano

[Tue Dec 21 08:58:42.198385 2021] [php7:notice] [pid 3295:tid 139730100377344] [client 10.200.225.10:47778] PHP Notice:  Undefined index: stageId in /var/www/vhosts/monaldi/lib/pkp/controllers/grid/eventLog/SubmissionEventLogGridHandler.inc.php on line 111, referer: https://www.monaldi-archives.org/index.php/macd/workflow/index/1984/4
[Tue Dec 21 08:58:42.758282 2021] [php7:error] [pid 3295:tid 139730100377344] [client 10.200.225.10:47778] PHP Fatal error:  Uncaught Error: Call to a member function getStageId() on null in /var/www/vhosts/monaldi/lib/pkp/classes/services/PKPSubmissionFileService.inc.php:769\nStack trace:\n#0 /var/www/vhosts/monaldi/lib/pkp/controllers/grid/eventLog/EventLogGridRow.inc.php(79): PKP\\Services\\PKPSubmissionFileService->getWorkflowStageId(Object(SubmissionFile))\n#1 /var/www/vhosts/monaldi/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1066): EventLogGridRow->initialize(Object(Request))\n#2 /var/www/vhosts/monaldi/lib/pkp/classes/controllers/grid/GridHandler.inc.php(983): GridHandler->_getInitializedRowInstance(Object(Request), 36, Object(SubmissionEventLogEntry))\n#3 /var/www/vhosts/monaldi/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1031): GridHandler->renderRowsInternally(Object(Request), Array)\n#4 /var/www/vhosts/monaldi/lib/pkp/classes/controllers/grid/GridHandler.inc.php(921): GridHandler->renderGridBodyPartsInternally(Object(Request))\n#5 /var/www/vhosts/monaldi/lib/pkp/classes/controllers/grid/GridHandler.inc.php(643) in /var/www/vhosts/monaldi/lib/pkp/classes/services/PKPSubmissionFileService.inc.php on line 769, referer: https://www.monaldi-archives.org/index.php/macd/workflow/index/1984/4
[Tue Dec 21 09:00:07.563292 2021] [php7:warn] [pid 4069:tid 139730133948160] [client 10.200.225.10:49150] PHP Warning:  ini_set(): A session is active. You cannot change the session module's ini settings at this time in /var/www/vhosts/monaldi/lib/pkp/classes/session/SessionManager.inc.php on line 69
[Tue Dec 21 09:02:50.632624 2021] [php7:notice] [pid 3295:tid 139730066806528] [client 10.200.225.10:53260] PHP Notice:  Undefined index: stageId in /var/www/vhosts/monaldi/lib/pkp/controllers/grid/eventLog/SubmissionEventLogGridHandler.inc.php on line 111, referer: https://www.monaldi-archives.org/index.php/macd/workflow/index/1984/4
[Tue Dec 21 09:02:51.230166 2021] [php7:error] [pid 3295:tid 139730066806528] [client 10.200.225.10:53260] PHP Fatal error:  Uncaught Error: Call to a member function getStageId() on null in /var/www/vhosts/monaldi/lib/pkp/classes/services/PKPSubmissionFileService.inc.php:769\nStack trace:\n#0 /var/www/vhosts/monaldi/lib/pkp/controllers/grid/eventLog/EventLogGridRow.inc.php(79): PKP\\Services\\PKPSubmissionFileService->getWorkflowStageId(Object(SubmissionFile))\n#1 /var/www/vhosts/monaldi/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1066): EventLogGridRow->initialize(Object(Request))\n#2 /var/www/vhosts/monaldi/lib/pkp/classes/controllers/grid/GridHandler.inc.php(983): GridHandler->_getInitializedRowInstance(Object(Request), 36, Object(SubmissionEventLogEntry))\n#3 /var/www/vhosts/monaldi/lib/pkp/classes/controllers/grid/GridHandler.inc.php(1031): GridHandler->renderRowsInternally(Object(Request), Array)\n#4 /var/www/vhosts/monaldi/lib/pkp/classes/controllers/grid/GridHandler.inc.php(921): GridHandler->renderGridBodyPartsInternally(Object(Request))\n#5 /var/www/vhosts/monaldi/lib/pkp/classes/controllers/grid/GridHandler.inc.php(643) in /var/www/vhosts/monaldi/lib/pkp/classes/services/PKPSubmissionFileService.inc.php on line 769, referer: https://www.monaldi-archives.org/index.php/macd/workflow/index/1984/4

Hi @Tiziano,

What OJS version are you using? Is it still 3.1.1-4?

Hi @Vitaliy, no, it is version 3.3.0.8 now.

Hi @Tiziano, I had this problem too. I fixed it by opening OJS in another browser - I switched from Chrome to Opera. In my case some browser settings blocked the editorial history, so maybe you can try to change browser settings or try opening it in another browser.

Hi @Marija_Raguz thanks for the suggestion, but unfortunately it did not solve my problem, which I still have, on some jobs, and I do not understand what blocks, in one of my posts I published the php error, but so far no one has found a solution.

Bye
Tiziano

Hi @Tiziano,

According to the latter error message, this SQL fails to retrieve any results:

SELECT * FROM review_rounds rr
	INNER JOIN review_round_files rrf
	ON rr.review_round_id = rrf.review_round_id
	WHERE rrf.submission_file_id = ?;

It tries to get the review round based on the submission file id
Does this error occur when you working with a specific submission, in your example it has ID 1984, or irrespective of it, in others too?

Hi @Vitaliy yes this error develops independently only on some jobs, but I don’t understand the root cause, if it can help, I tried to empty the table “event_log_settings” and in that case the history shows up, without of course the names of the reviewers and users.

Running the query you posted gave me zero rows.

Bye
Tiziano