[QuickSubmit] Undefined variable: newFile on QuickSubmitForm.inc.php and question


whenever I finish creating an article, I see the following PHP message appearing (I have debug on):

Undefined variable: newFile in /ojs/plugins/importexport/quickSubmit/QuickSubmitForm.inc.php on line 312

Then, when I go into the submission area for that particular article, I don’t see the PDF file in the “Submission Files” area (in the picture below, it says “No Files”. I poked around in other volumes I already published and I noticed that those volumes do have a PDF file in each article’s “Submission Files” area. The PDF files for the volumes I upload instead appear to be living in the “Publication” tab for each article, within the “Galleys” subsection.

Does this matter? It doesn’t seem to affect the end product–the public sees the fully published journal as they should, with all the article PDFs neatly organized, viewable, and downloadable.

Hi @luca.g,

This sounds to me like the QuickSubmit plugin is working as intended. QuickSubmit bypasses the submission workflow and goes directly to uploading the final Galley file, which is presented in the published issue. Other submission files in other issues likely went through the editorial workflow in OJS; these submission files exist only in the backend of OJS, and only the Galley file is presented to users as a published file. You should therefore not expect to see any files in the “Submission Files” if you are using QuickSubmit.

I hope this helps to clarify, but please let me know if you have further questions.

PKP Publication Support Specialist

1 Like

Thank you @kshuttle, that’s what I also imagined, that you for confirming.

Any thoughts about the Undefined variable: newFile error?

1 Like

Hi @luca.g,

That warning can be fixed by applying this change:

But if you’re satisfied with the way the plugin is working, you can just ignore the warning.

Alec Smecher
Public Knowledge Project Team

Thank you both! I cannot flag both replies as solution unfortunately, so I’m going to like one and flag the one which was the main issue (the error) the other.

1 Like