Cannot view PDF file

Hi everyone,

We just upgrade our journal to OJS version 3.2.1.4
The problem is the pdf file in current and past issues cannot be viewed but can be download when clicked the Download button. Let say if the user clicks this link:
https://jurnalintelek.uitm.edu.my/index.php/main/article/view/358/277

This message appears when trying to view pdf files:

PDF.js v2.5.207 (build: 0974d6052)
Message: file origin does not match viewer’s

Can someone please advise me on the above matters because I’m a newbie in OJS

jurnalintelek-error

1 Like

Hi @azmi384

The problem here appears to be that you’re loading http:// content instead of https:// content. is force_ssl turned On in your config.inc.php file? If I manually edit the PDF url using a web developer tool and change the protocol to https they load fine for me.

Jason

Hi @jnugent

Thank you for your response. It’s true…if we use https, it loads fine
jurnalintelek-https-error

so… i must configure config.inc.php to enable force_ssl to make the PDF url turn to https?

Hi @azmi384

Yes, that would be my recommendation.

Cheers,
Jason