I have OJS 3.1.2-1 with HTML Article Galley plugin enabled and a valid HTML file as a galley for a published article. The server is running on a Windows.
The problem that the HTML galley is not rendered when clicking on it but rather downloaded. Can you please help me to solve the problem?
It seems that HTML Galley Plugin fails to render you galley files for some reason. Do you have access to the database? If so, can you check in the submission_files table the file_type for the galley that fails to be rendered? E.g., for submission with id 127: SELECT * FROM submission_files WHERE submission_id=127. For the HTML file, you should see something like:
File type, in this case, is and should be text/html.
Also, when you hitting the button to view galley page, but HTML is just been downloaded, do you see any relevant errors in the PHP logs?
Thanks for help. The problem was with wrong file_type in the DB. It was text/plain. After changing it works.
I have checked the mime.types file and there is the entry
text/html html htm
in it. So I guess that is OK.
Now the question is why that came into the DB. Any idea what could be the root cause?