500 error while trying to access article

  • Application Version - OJS 3.1.2-4

  • Description of issue

When trying to download an article, the server has an error 500.

The error logs show that the file is being fetched from a location that doesn’t exist because an / more is being added.

Note in error log after number 18

  • Error log messages if applicable

[Mon Jun 07 12:13:33.796028 2021] [php7:notice] [pid 23077] [client xxx.xxx.xxx.xxx] FileApiHandler: File files/journals/18//articles/4943/submission/review/4943-97-12259-1-4-20210604.txt does not exist or is not readable!, referer: https://periodicos.ufop.br/revemop/workflow/index/4943/3

Hi @andersonvm

That double // isn’t causing the problem. I’m fairly certain that your file does not exist (or is not readable by the server). Can you find a file at files/journals/18/articles/4943/submission/review/4943-97-12259-1-4-20210604.txt? If so, can the webserver read it?


Hi, @jnugent

Take a look:

-rw-r--r--. 1 apache apache 6662963 Jun  2 15:53 4943-100-12231-1-2-20210602.docx
-rw-r--r--. 1 apache apache 6662963 Jun  4 09:17 4943-97-12250-1-2-20210604.docx
drwxr-xr-x. 2 apache apache     123 Jun  4 09:46 review

Inside the review folder

-rw-r--r--. 1 apache apache 3795794 Jun  4 09:22 4943-97-12254-1-4-20210604.docx
-rw-r--r--. 1 apache apache 3795794 Jun  4 09:22 4943-97-12256-1-4-20210604.docx
-rw-r--r--. 1 apache apache 3795794 Jun  4 09:46 4943-97-12259-1-4-20210604.docx

By the way… I don’t understand why the system is looking for this txt file…

The article files are submitted by docx extension.

Hi @andersonvm

So, the file isn’t there then :slight_smile: It’s looking for a .txt file when there isn’t one.

It’s possible the file was misdetected when it was uploaded. What’s the mime type of the file with file_id 12259 in the database?