OJS 3.3.0.11 : « Failed Ajax request or invalid JSON returned. » when trying to upload a final version

Hi @jhrs,

From the error message above, it looks like there is still at least one .tpl file that came from the Github .zip download (or something similar) and is the wrong version for your copy of OJS. Please make sure that any .tpl files you put in place come from the OJS 3.3.0-x .tar.tz download matching your version of OJS. Unfortunately I can’t pick out the exact .tpl file from the error log.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi!
I’m not quite sure, since I’m using the French translation, but I think the error message when trying to upload a review file (« Fichiers d’évaluation » in an evaluation cycle) is

[Tue Sep 13 22:04:26.615571 2022] [php:error] [pid 3201379] [client 82.123.106.0:44928] PHP Fatal error: Declaration of ManageReviewFilesForm::execute($stageSubmissionFiles, $fileStage = null) must be compatible with ManageSubmissionFilesForm::execute($stageSubmissionFiles = null, $fileStage = null, …$functionArgs) in /var/www/html/ojs-3.3.0-11/lib/pkp/controllers/grid/files/review/form/ManageReviewFilesForm.inc.php on line 87, referer: (…)

That is, a similar problem for the ManageReviewFilesForm function.
Hope this helps,

Hi @asmecher,

I cannot remember using any tpl from GitHub, is there a way i can see the file transfers or changes to files on any logs? I’m pretty sure that i’ve never used a TPL file before.

Best regards,
JHRS

Hi @jhrs,

No, this probably isn’t logged, but the details would depend on your server.

Looking at the error message again, my best guess is that it’s templates/controllers/grid/settings/sections/form/sectionForm.tpl.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Hi @asmecher,

I was so close to saying the same as you said above, the files were missing in templates/controllers/grid/settings/sections/form, before this i was working only with this directory controllers\grid\settings\sections, after i put the sections tpl to public/templates. The sections form is working now. I used a software called WinMerge, i compared my OJS with the tar.gz i’ve installed and a brand new tar.gz from pkp download page. Saw all the modifications and missing files and came across templates folder. Thank you very much for your help.

Best regards,
JHRS

1 Like

This topic was automatically closed after 20 days. New replies are no longer allowed.