Failed to upload files in the Copy editing section since our upgrade to OJS 3.3.0.10

Description of issue or problem I’m having:
we are facing an issue of not being able to upload the copy edited files to the copy editing section. Even the admin cannot upload a file and when we click on the “Upload / Select File” there appears this message:
Failed Ajax request or invalid JSON returned.

Steps I took leading up to the issue:
The error logs show:
[27-Jun-2022 07:07:11 UTC] PHP Fatal error: Declaration of ManageCopyeditFilesForm::execute($stageSubmissionFiles, $fileStage = null) must be compatible with ManageSubmissionFilesForm::execute($stageSubmissionFiles = null, $fileStage = null, …$functionArgs) in /home/jmedscic/public_html/lib/pkp/controllers/grid/files/copyedit/form/ManageCopyeditFilesForm.inc.php on line 33

What I tried to resolve the issue:

I visited the forums and found the fix:
Fix
We already had applied these settings as we have faced the same nature issue during our previous version. These setting are intact.

Application Version - ojs 3.3.0.10.

Additional information, such as screenshots and error log messages if applicable:

image

Hi @KMC

This is the fix you want here, the very first change in this list:

The problem is that the form class has a slightly different method declaration than its parent class. I suspect you are using PHP8 which is pickier about this. This will be fixed in OJS 3.4 but you can make the adjustment yourself now. You can also run PHP 7.4 if you like.

Best
Jason

Thank you so much @jnugent. I roll back the PHP version to 7.4 and seems that the issue is fixed as users are now able to upload copy edited files at one or second attempt. i noticed the following error:
[28-Jun-2022 08:48:57 UTC] PHP Fatal error: Uncaught Error: Call to a member function getJournalId() on null in /home/jmedscic/public_html/classes/issue/IssueAction.inc.php:31
Stack trace:
#0 /home/jmedscic/public_html/classes/search/ArticleSearch.inc.php(274): IssueAction->subscriptionRequired(NULL, Object(Journal))
#1 /home/jmedscic/public_html/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php(142): ArticleSearch->formatResults(Array)
#2 /home/jmedscic/public_html/lib/pkp/classes/plugins/HookRegistry.inc.php(107): RecommendByAuthorPlugin->callbackTemplateArticlePageFooter(‘Templates::Arti…’, Array)
#3 /home/jmedscic/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php(1518): HookRegistry::call(‘Templates::Arti…’, Array)
#4 /home/jmedscic/public_html/cache/t_compile/5344c657d475ac490e5be9e38a89fff34c6138fd^1c372c95cd85572e0fbc9a53d0323a0b229cfc78_0.app.frontendpagesarticle.tpl.php(43): PKPTemplateManager->smartyCallHook(Array, Object(Smarty_Internal_Template))
#5 /home/jmedscic/public_html/lib/pkp/lib/vendor/smarty/smart in /home/jmedscic/public_html/classes/issue/IssueAction.inc.php on line 31
[28-Jun-2022 08:49:01 UTC] PHP Warning: Declaration of ManageCopyeditFilesForm::execute($stageSubmissionFiles, $fileStage = NULL) should be compatible with ManageSubmissionFilesForm::execute($stageSubmissionFiles = NULL, $fileStage = NULL, …$functionArgs) in /home/jmedscic/public_html/lib/pkp/controllers/grid/files/copyedit/form/ManageCopyeditFilesForm.inc.php on line 33

Secondly i couldn’t locate the file in our controller directory, can you kindly guide me about this /
image

Hi @KMC

There is another controllers directory, inside of the lib/pkp directory.

That fatal error looks like it might be a problem with the recommend by author plugin. Can you try disabling it and see if the problem goes away?

Best
Jason

Hi @jnugent thank you very much,

noted.

I tried to disable the author plugin but that ended in another mess, We are about to publish a new issue by tomorrow so can’t take risk. So far the things are working fine, i am observing it, if any issue arises i ll get back to you.