[OJS 3.3.0-13] Button "Download All Files" in submission doesn’t work

Dear @asmecher ,

Describe the issue or problem
Since our upgrade from OJS 3.2.1 to 3.3.0-13 the button “Download All Files” in “Backend > Submission: Submission Files” doesn’t work, while downloading the files one by one works.

Hovering over the Button reveals a broken link:

Steps I took leading up to the issue
For example:

  1. Go to a submission
  2. Click on “Download All Files”
  3. Nothing happens

What application are you using?
OJS 3.3.0-13

Additional information
PHP log:

[04-Dec-2022 16:39:20 Europe/Berlin] PHP Fatal error:  Uncaught Error: Undefined constant "SUBMISSION_FILE_DEPENDENT" in /home/sites/[OurSite]/lib/pkp/controllers/api/file/FileApiHandler.inc.php:56
Stack trace:
#0 /home/sites/[OurSite]/lib/pkp/classes/core/PKPRouter.inc.php(387): FileApiHandler->authorize()
#1 /home/sites/[OurSite]/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest()
#2 /home/sites/[OurSite]/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPComponentRouter->route()
#3 /home/sites/[OurSite]/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch()
#4 /home/sites/[OurSite]/index.php(68): PKPApplication->execute()
#5 {main}
  thrown in /home/sites/[OurSite]/lib/pkp/controllers/api/file/FileApiHandler.inc.php on line 56

Hi @twa,

Can you apply this change in the lib/pkp subdirectory?

If you confirm whether that resolves the problem for you, I can make sure this gets included in the next release.

Alec Smecher
Public Knowledge Project Team

1 Like

Hi @asmecher ,

yes, thank you for your quick help, that fixed our problem.


1 Like