Problem when using QuickSubmit plugin in OJS : 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 QuickSubmit plugin ,

OJS 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] PHP Fatal error: Declaration of UploadImageForm::execute($request) must be compatible with Form::execute(…$functionArgs) in /var/www/html/plugins/importexport/quickSubmit/classes/form/ 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:


and changing the line to read;

function execute(...$functionArgs) {



1 Like

Thank you so much , it worked perfectly.

1 Like

Hi, the suggested change solved the ‘incompatibility’ error, but now it complains with " Undefined variable: request" and “PHP Fatal error: Uncaught Error: Call to a member function getUser() on null”

How should I replace the “$request” variable in the function body?

Thanks in advance.