Problem when using QuickSubmit plugin in OJS 3.3.0.4 : Failed Ajax request or invalid JSON returned

Hi ,
please I’m facing Failed Ajax request or invalid JSON returned problem when trying to upload cover image in OJS 3.3.0.4 QuickSubmit plugin ,

OJS 3.3.0.4 with Apache/2.4.18 , mysqld Ver 5.7.33-0ubuntu0.16.04.1 , PHP 8.0.3

noting that the PHP error log is showing the following error :

[Tue Apr 06 15:23:42.173165 2021] [php:error] [pid 2875] [client 192.168.1.20:52622] PHP Fatal error: Declaration of UploadImageForm::execute($request) must be compatible with Form::execute(…$functionArgs) in /var/www/html/plugins/importexport/quickSubmit/classes/form/UploadImageForm.inc.php on line 145,

please can you help me ?

Hi Yolla,

I suspect this is PHP8 compatibility problem with the quickSubmit plugin. Can you please make a change to the plugin by editing line 145 of this file:

/var/www/html/plugins/importexport/quickSubmit/classes/form/UploadImageForm.inc.php

and changing the line to read;

function execute(...$functionArgs) {

instead?

Best,
Jason

Thank you so much , it worked perfectly.

1 Like