https://rsustnjogat.org/ojs/index.php/home/article/view/157/157
I’m currently experiencing a problem on my Open Journal Systems (OJS) site where all PDF files open to a completely blank page instead of displaying in the browser.
https://rsustnjogat.org/ojs/index.php/home/article/view/157/157
I’m currently experiencing a problem on my Open Journal Systems (OJS) site where all PDF files open to a completely blank page instead of displaying in the browser.
Are you able to check your PHP error log and check for error log messages there? Did anything charge in your file directory permissions lately?
-Roger
PKP Team
there is no error related to the Pdf not loading and there are no changes in the directory permissions
No, I haven’t made any changes to it yet. I’m considering setting up a fresh OJS installation just to confirm whether it loads properly. I also deleted and reinstalled the PDF plugin, but it’s still displaying a blank page.
Hi, @Princewill_Herbert
I would first check the Apache or PHP error log; it usually provides all the information about what’s happening.
Also, did this happen spontaneously, or were you making any adjustments or installing any plugins?
Finally, it might be a firewall issue. Check with your administrator to see if they have any content blocking enabled.
If you disable the ViewPDF plugin, does the PDF download completely?
Add js and mjs file type in your .htaccess
<IfModule mod_mime.c>
\# Correct MIME types
AddType application/javascript .mjs
AddType application/javascript .js
</IfModule>
I’ll try this and revert
if PDF plugin is disabled, it shows an HTTP Error 500 page
Did this and it returned "Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@rsustnjogat.org to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request."
Curiously, for me the page loads perfectly OK (as I showed on the screenshot) but only when accessed via some kind of VPN such as Cloudflare WARP. So I think that the problem may be not in the OJS or the web server settings, but in either your local ISP or the hoster (Hetzner?).
You can also check the browser’s console for any NS_BINDING_ABORTED, NS_ERROR_NET_RESET or some such indicators that something’s broken in the connections.
I can’t test anything further because the internet in this here country went to
and our local authorities are probably partially blocking your hosting provider.
Thanks Voffch, I will contact my provider