This topic is locked

Phprunner v11 - Display PDF files online

12/15/2025 03:04:05
PHPRunner General questions
G
George Kondylis author

Hello,

i recently migrated a 10.9 project into v11. In one of my tables I had a Files field, where I had enabled the option to Display pdf files online. That works fine in 10.9, however on v11, it just opens a blank screen. I haven't changed anything just migrated the project and built it on v11. Not sure if it helps but I get the following errors when I inspect the page

As a workaround, I built my own pdf_viewer but would be great to understand what is causing the issue.

img alt

Many thanks
George

Sergey Kornilov admin 12/15/2025

This can be HTTP vs HTTPS issue when you website runs behind a reverse proxy. You need to post a full-page screenshot, so the complete URL is visible, without cropping.

G
George Kondylis author 12/16/2025

Does that work ?

img alt

Sergey Kornilov admin 12/16/2025

I can see that the error is different now. What has changed?

In either case, this last error means your web server is not configured .mjs files. Make sure that MIME type is configured properly on the server.

G
George Kondylis author 12/16/2025

This is the same server I am using for all my projects. That same project when built in 10.9 worked fine. I only encountered that issue when migrating on v11. I will try see if I can configure that on the server. I am using Azure web app.

Thank you

Sergey Kornilov admin 12/16/2025

It is definitely not the same server as the error is different. This first error is coming from viewer.mjs file and refers to HTTP vs HTTPS inconsistency. The second error says that browser cannot even load viewer.mjs as MIME is not configured.

Just check the error messages, totally different.

G
George Kondylis author 12/16/2025

The first screenshot is from the local build, and the second is from the published version. My point is that the same project works perfectly in version 10.9, both locally and when published. However, after migrating to version 11, the error occurs.

Sergey Kornilov admin 12/17/2025

We have updated PDF viewer recently, the older version had vulnerability issues. Their latest version uses .mjs files instead of .js. So, your web server needs to be configured to serve .mjs files.