OJS3.3.0.7. error: Failed Ajax request or invalid JSON returned

Description of issue or problem I’m having:
hi, i have a problem when upload file in copyediting in OJS, the following error shows up:

this is the error massage
2022/02/07 06:10:28 [error] 750#750: *62289 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Non-static method Core::removeBaseUrl() cannot be called statically in /$
Stack trace:
#0 /home/liul/ojs_jurnalpengabmas/plugins/generic/usageStats/UsageStatsLoader.inc.php(172): UsageStatsLoader->_getUrlMatches()
#1 /home/liul/ojs_jurnalpengabmas/lib/pkp/classes/task/FileLoader.inc.php(167): UsageStatsLoader->processFile()
#2 /home/liul/ojs_jurnalpengabmas/plugins/generic/usageStats/UsageStatsLoader.inc.php(127): FileLoader->executeActions()
#3 /home/liul/ojs_jurnalpengabmas/lib/pkp/classes/scheduledTask/ScheduledTask.inc.php(146): UsageStatsLoader->executeActions()
#4 /home/liul/ojs_jurnalpengabmas/lib/pkp/plugins/generic/acron/PKPAcronPlugin.inc.php(257): ScheduledTask->execute()
#5 [internal function]: PKPAcronPlugin->shutdownFunction()
#6 {main}
thrown in /home/liul/ojs_jurnalpengabmas/plugins/generic/usageStats/UsageStatsLoader.inc.php on line 777” while reading upstream, client:, server: jurnalpengabmas.poltekkes$
2022/02/07 07:56:50 [error] 750#750: *62389 FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key 5 in /home/liul/ojs_jurnalpengabmas/lib/pkp/pages/workflow/PKPWorkflowHa$
Stack trace:
#0 /home/liul/ojs_jurnalpengabmas/lib/pkp/pages/workflow/PKPWorkflowHandler.inc.php(157): array_intersect()
#1 /home/liul/ojs_jurnalpengabmas/lib/pkp/classes/core/PKPRouter.inc.php(395): PKPWorkflowHandler->index()
#2 /home/liul/ojs_jurnalpengabmas/lib/pkp/classes/core/PKPPageRouter.inc.php(246): PKPRouter->_authorizeInitializeAndCallRequest()
#3 /home/liul/ojs_jurnalpengabmas/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPPageRouter->route()
#4 /home/liul/ojs_jurnalpengabmas/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()
#5 /home/liul/ojs_jurnalpengabmas/index.php(68): PKPApplication->execute()
#6 {main}
thrown in /home/liul/ojs_jurnalpengabmas/lib/pkp/pages/workflow/PKPWorkflowHandler.inc.php on line 157” while reading response header from upstream, client:, server: jurna$
2022/02/07 07:57:03 [error] 750#750: *62389 FastCGI sent in stderr: "PHP message: PHP Fatal error: Declaration of ManageFinalDraftFilesForm::execute($stageSubmissionFiles, $fileStage = nu$

plz help me, what should i do for solve this problem…thx

Could you please check the config file (config.inc.php)and if the following lines are “On”, turn them “Off”.

show_stacktrace = On/Off
display_errors = On/Off

Please share the result with us.

I’ve changed it to on but nothing has changed. still error.
plz help me, what should i do ?

I have the same problem too. I have tried several solutions, but the error is not solved. I have tried

show_stacktrace = Off
display_errors = Off

I also checked the php gettext extension. It is enabled.

Still, I am still having the problem. Please help

Hi @ailyulil,

What version of PHP are you running? Running PHP 8.0+ would generate the type of fatal error you shared as OJS 3.3.0 does not currently support PHP 8. Thanks.

Edit: OJS 3.3.0-x does support PHP 8.0.x. Sorry about any confusion!


PKP Team

@ailyulil, trying to think of additional troubleshooting ideas: Are you encountering this problem with all submissions or just one in particular? Do you encounter this error with more than one user account, or just your own? Also, do you have any additional error logging for this with the additional config file settings turned on?

all submission with more than one user account.
no, i don’t
plz help, what should i fix

A bit worried about this type of error Failed Ajax request or invalid JSON returned.
It will not be that there is someone who has overcome this type of error and wants to share it with us???