Support » Plugin: Google Doc Embedder » No content in iframe

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author k3davis

    (@k3davis)

    This is an easy fix; just change your document link to https to match the protocol of your parent page. See the third bullet in this section for more thorough explanation:

    http://www.davistribe.org/gde/notes/#linkonly

    Thank you for your quick response!

    That totally makes sense!
    However…, this is the link that I use.
    [gview file=”https://greenmethods.com/wp-content/images/Andersoni-A.pdf”]

    and this is what comes out.

    <iframe src="http://docs.google.com/viewer?url=https%3A%2F%2Fgreenmethods.com%2Fwp-content%2Fimages%2FAndersoni-A.pdf&embedded=true&hl=en" width="600" height="720" style="border: none;">
    #document
    <html><head></head><body></body></html>
    </iframe>

    So somewhere its stripping the “S” off the https.

    What are your thoughts?

    Plugin Author k3davis

    (@k3davis)

    You are right, the standard viewer is hardcoded to use http rather than https. This is an oversight that I’ll correct in a future patch.

    To confirm this you can manually edit the gviewer.php file on line 245 where it currently reads:

    $lnk = "http://docs.google.com/viewer?url=" . urlencode( $links[0] ) . "&hl=" . $lang;

    to read:

    $lnk = "//docs.google.com/viewer?url=" . urlencode( $links[0] ) . "&hl=" . $lang;

    If you’re able to make that adjustment (you can do so from the plugin editor within wordpress, if you wish), let me know if it works for you.

    This worked!

    Thank you so much!

    Plugin Author k3davis

    (@k3davis)

    Great, I’ll be sure to include that patch in the next update. Thanks for pointing out the issue.

    Kevin

    Plugin Author k3davis

    (@k3davis)

    This fix was included in GDE 2.5.9 and doesn’t need to be manually applied anymore.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No content in iframe’ is closed to new replies.