Dear PKP Support Team and Community,
We are experiencing a critical layout issue on the portal for the Cluj Veterinary Journal (https://clujveterinaryjournal.ro) [source: 1.1.4].
Description of the Bug:
When a visitor or editor clicks the public “PDF” button of any published paper, the system forces a direct file download (.pdf) to their local machine [source: 1.3.1]. Instead, it should open and render the text inline directly on the article landing page using the embedded web reader [source: 1.3.1].
Troubleshooting Steps Performed:
- Plugin Check: We verified that the generic
pdfJsViewer (PDF.js PDF Viewer) plugin is fully installed and enabled under our Website Settings > Plugins dashboard [source: 1.3.1]. We have toggled it off and back on, but the behavior remains unchanged.
- Galley Verification: The file types for the affected papers are explicitly assigned as “Article Text” files under the Galley workflow production configuration, not as generic supplementary materials.
- Cache Testing: We attempted to clear both the template and data caches to eliminate old path routing configurations, but our local user profile does not display the primary Site Administrator “Administration” menu to execute this backend cleanup.
- Browser Isolation: The bug persists across multiple web browsers (Chrome, Edge, Firefox, and Safari) including dedicated Private/Incognito windows, ruling out individual user browser extensions or local cookie settings.
Server & System Details:
- Platform: Open Journal Systems (OJS) 3.x
- Hosting: Hosted on institutional university servers at USAMV Cluj-Napoca.
Could someone please point us in the right direction? Is this likely a .htaccess server configuration override handling the Content-Disposition header, an missing server-side directory mime-type configuration, or a specific version mismatch in the pdfJsViewer asset folder [source: 1.3.1]?
Thank you for your invaluable technical assistance!
Hi @Purdoiu_Cristian,
Just a quick note to note the full version number of your site in your posts, please (e.g. instead of 3.x indicate that you’re running 3.5.0-5), as this assists with those helping to troubleshoot. Several posters have reported a similar situation to yours, and in this post a potential solution was identified: Articles not opening in browser - #21 by srinivasanchelliah
Can you try what is suggested in that post (related to the MIME type configuration)
Roger
PKP Team
Thank you for your response. I am not familiar with these problems, language and issues. Can you please tell me, step by step, what I have to do? Thank you
Hi @Purdoiu_Cristian,
It’s not really feasible for me to make step-by-step instructions, given that I am not familiar with, nor do I have access to your hosting environment. If you’re not familiar with making changes to configurations in your hosting environment, I would recommend exercising caution, and, depending on the nature of your hosting arrangement, you may want to enlist the help of your systems administrator who maintains your site to make such changes. The issue you’re facing is likely due to a configuration in your hosting environment and not something that can easily be altered within OJS.
This is the one of the key aspects of the post here:
And the particularly relevant, position:
The solution is to configure your webserver to serve .mjs files with the appropriate MIME type (text/javascript). This is typically done through CPanel.
-Roger
PKP Team
Dear IT Support Team,
Could you please log into the master OJS dashboard for the Cluj Veterinary Journal and assign the Site Administrator role to our editorial account?
We currently only have Journal Manager status. This role hides the Administration menu tab, preventing us from using the built-in tools to clear the template and data caches. We need this access immediately to push our newly saved author guidelines live to the front page and to fix an inline PDF viewer plugin glitch on our server.
Alternatively, if you cannot grant this role, could you please manually clear all temporary files inside the website’s /cache directory folder on the server?
Thank you for your assistance.
Kind regards,
Cluj Veterinary Journal Editorial Team
Hi @Purdoiu_Cristian
Did you intend to post this publicly? It seems to be directed at your IT support.
Please note that logging into your OJS instance is outside of the scope that we do here on the forum. PKP staff and community members don’t provide direct support to users using OJS (e.g. logging into your instance and fixing issues), but rather advice and suggestions for how to potentially fix. Further, we do not guarantee that we can fix every issue that is posted here to the forum.
The exception to this is PKP Publishing Services, where PKP acts as the hosts for journals, or if you have a particular arrangement with another host. I’m not sure who the site admin is for your site, but I suggest trying to find out and contact them.
I encourage you to find out who your host is and contact them with this directly.
-Roger
PKP Team
I appreciate your help. I forwarded the issue to PKP Publishing Services. I understand they host the site. Thank you again for your support. May we still seek your advice for future issues?
Hi @Purdoiu_Cristian,
I think there’s some confusion here: I checked and your journal is not hosted by PKP Publishing Services. I think you need to find out who your host is - that is very important for obtaining this type of support. Please feel free to post questions, here, but, as per my earlier post, please note the limitations of this type of support - we can only provide advice and guidance in a limited manner, as we do not have access to your instance.
-Roger
PKP Team
Ok. Thank you for all your support.