Jump to content

Topic on Extension talk:PDFEmbed

Blank Frame and no PDF displaying

Summary by RodolfoEBDR

There was an error with the $wgServer parameter. After hardcoding the URL of the server, it worked.

RodolfoEBDR (talkcontribs)

Hi! I'm using PDFEmbed 2.0.1, PdfHandler (21f2fe9) and MW 1.31. Wiki works fine but PDF Embedding isn't working. It displays a blank frame where is supposed to appears the PDF file. There's nothing rare with folder permissions. It isn't an user permission on editing the page (I'm trying as administrator).

Any ideas?

RodolfoEBDR (talkcontribs)

PS: the frame is outlined. It seems like the PDF is not being loadead o something, but no error is adviced. When inspecting the source code, the frame refers to "about:blank" in Firefox (and in Chrome it replicates the current page, like an frame embedding the page itself)

Here's how it looks like: https://imgur.com/dZjX8Fw (talkcontribs)

I have the same issue. Chrome is telling me that the pdf file is being transfered thru HTTP while the rest of our site is using HTTPS and that this is considered unsure.

Not sure how to solve this.

"Mixed Content: The page at 'https://wiki-test.domain.net/index.php/test_24' was loaded over HTTPS, but requested an insecure resource 'http://wiki-test.domain.net/images/5/57/test.pdf#page=1'. This request has been blocked; the content must be served over HTTPS."

RodolfoEBDR (talkcontribs)

When inspecting debug mode in Firefox over the frame, it says:

Could not load the source for blob:

I don't know what is trying to parse the extension. Thumbnails are being generated correctly, so that means that the files in images/ can be located. Please help us!!! Hahaha

RodolfoEBDR (talkcontribs)

Here's the full debug message from Firefox:

Error cargando URI: Could not load the source for blob: [Exception... "Failed to open input source 'file:////'" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: resource://devtools/shared/base-loader.js -> resource://devtools/shared/DevToolsUtils.js :: mainThreadFetch :: line 645" data: yes] Stack: mainThreadFetch@resource://devtools/shared/base-loader.js -> resource://devtools/shared/DevToolsUtils.js:645:5 _getSourceText/<@resource://devtools/shared/base-loader.js -> resource://devtools/server/actors/source.js:410:27 Line: 645, column: 0