Forums

Google Doc Embedder
[resolved] viewer only showing pk (6 posts)

  1. blackscythe
    Member
    Posted 1 year ago #

    the viewer is only showing PK and not the document and i have tried several other documents

    http://wordpress.org/extend/plugins/google-document-embedder/

  2. k3davis
    Member
    Plugin Author

    Posted 1 year ago #

    What is "PK"?

    Can you provide a link (either here or privately via the support link in your plugin list)?

  3. blackscythe
    Member
    Posted 1 year ago #

    the link is http://jamalrhodes.com/?page_id=8 pleas help

  4. k3davis
    Member
    Plugin Author

    Posted 1 year ago #

    This is most likely a problem with an incorrect MIME type on DOCX files configured on your server.

    Please contact your web host (or if you have a control panel, you may be able to set it there) and ensure that the MIME type for DOCX files is set to return:

    Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document

    Anything else will result in a "PK" message because Google Docs viewer doesn't know how to handle the wrong content type.

    Your other solution is to convert the document to PDF first, or to host the file on another server that has the MIME type correctly set.

  5. blackscythe
    Member
    Posted 1 year ago #

    i am still confused about this i did find this in the code

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>404 Not Found</title>
    </head><body>
    <h1>Not Found</h1>
    <p>The requested URL /wp-content/uploads/2011/11/job-resume.docx was not found on this server.</p>
    <p>Additionally, a 404 Not Found
    error was encountered while trying to use an ErrorDocument to handle the request.</p>
    </body></html>

    HELP

  6. k3davis
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there,

    You are creating the download link manually, I'm not sure why. The file you're linking to is .doc, not .docx. Also, there is a space in the filename not a hyphen (generally not a good idea). Either let the plugin make the download link, or fix the URL in the manual link you're creating to be:

    http://jamalrhodes.com/wp-content/uploads/2011/11/job%20resume.doc

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic