Hi everybody, i have a question, after the upload OJS from 2.4.8.2 to 3.1.0.1 i saw that all of my HTML files aren’t more show in browser, like PDF files, but downloaded like a XML files, the plugin HTML Article Galley is enable, i forgot something?
Thanks in advance for any help.
Did you upgrade remaining in samer server/envrionmet stack? I mean, if you change server it mos likely it could be a mime type handling issue. In apache conf you should declare something like: AddType text/html .html
Also check in yout .htaccess file in your web_root folder (e.g. public_html , in most of cases) if it has some line handling HTML file extension with different way. Something like: RewriteCond %{REQUEST_FILENAME}\.html -f
Regards,
Israel Cefrin
Public Knowledge Project Team
Hi @israel.cefrin! Thanks for response, i have checked as far as I can, I don’t know a lot of servers, but what you write is present in the conf files. The server is the same. Do you have other solutions?
Could you check your php error log to verify if is there some error message related to this issue?
And test if you server are parsing HTML files properly creating a test.html in your web_root folder and access it with your browser.
Regards,
Israel Cefrin
Public Knowledge Project Team
Hi @israel.cefrin, I’ve checked and my browser works well with HTML, do you have any other suggestions to solve this problem? I have many HTMLs already published that are currently downloading instead of being displayed, the “htmlArticleGalley” plugin is activated.
Another option is double check that your webserver is correctly set to serve HTML to render (mime type settings).
Test it putting an index.html in your root folder and attempt to load it.
Regards,
Israel Cefrin
Public Knowledge Project Team