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,
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?