500 Internal Server Error when download file

Hi great people @PKP, thanks so much for this awesome OJS.

We’ve just migrated from 2.4.8.5 to 3.1.2.1 a week ago. Upgrade process went well, and we did not found any problems until recently when one of our user tried to download review files from the reviewers. We encountered the same issue for all the reviewers’ file. An example of our log is:

Blockquote
FileApiHandler: File /home/xxxxxxx/data/journals/1//articles/337/submission/review/attachment/337-1-1575-1-5-20190429.docx does not exist or is not readable!

What we did so far:

  1. Check files in the files folder, OK
  2. Check DB entry, entry exist, not sure if it is OK or not (screenshot attached)

Blockquote

  1. Tried suggestion by @asmecher in here return no rows on the OJS 2 database that we use for for upgrading last week

  2. Checked charset on config.inc.php, OK

Our journal is in a shared hosting environtment, PHP 7.3.5 Apache 2.4

Please guide us in solving this issue.

Thanks people for your help,
Cheers.

BA

Update:
We retried the upgrade process in localhost, and we think we understand the problem. Applying fix, and will report here soon.