Forum Replies Created

Viewing 15 replies - 1 through 15 (of 42 total)
  • Thread Starter douglasvb

    (@douglasvb)

    We successfully resolved the issue in the other support thread (linked above). There is a very small plugin available in the other thread that fixes the issue.

    Thread Starter douglasvb

    (@douglasvb)

    Success! Thanks so much, @westonruter!

    Thread Starter douglasvb

    (@douglasvb)

    I understand what I need to do (load the iframe from another origin such as a subdomain) but it is above my current skill level to implement that within the existing Geo Mashup plugin. Perhaps @cyberhobo (the author of Geo Mashup) can lend a hand on this?

    Thread Starter douglasvb

    (@douglasvb)

    I will be sure to update here once we come to a resolution on how to make Geo Mashup work with the AMP plugin.

    Thread Starter douglasvb

    (@douglasvb)

    I might be able to create a subdomain alias. I’m hosting the site on a Dreamhost VPN and can create subdomans with redirects. I can also create a page rule on Cloudflare. Is one of those options what we’re looking for?

    Thread Starter douglasvb

    (@douglasvb)

    Yes, there is an error related to Geo Mashup:

    amp.js:150 Powered by AMP ⚡ HTML – Version 1906111828200 https://www.oregondivesites.com/
    error.js:195 Origin of <amp-iframe> must not be equal to container  <amp-iframe src=​"https:​/​/​www.oregondivesites.com/​?geo_mashup_content=render-map&map_data_key=a016d2caddfa0f405585c35da6cd1aec&admin_code=OR&zoom=6&auto_info_open=false&center_lat=44.162222&center_lng=-120.49&name=gm-map-1&object_id=9&map_content=global" sandbox=​"allow-scripts allow-same-origin" height=​"400" layout=​"fixed-height" class=​"amp-wp-fe51739 i-amphtml-element i-amphtml-layout-fixed-height i-amphtml-layout-size-defined i-amphtml-error i-amphtml-layout" i-amphtml-layout=​"fixed-height" frameborder=​"0" style=​"height:​ 400px;​">​<span placeholder class=​"amp-wp-iframe-placeholder">​</span>​<noscript>​"<iframe name="gm-map-1" src="https://www.oregondivesites.com/?geo_mashup_content=render-map&map_data_key=a016d2caddfa0f405585c35da6cd1aec&admin_code=OR&zoom=6&auto_info_open=false&center_lat=44.162222&center_lng=-120.49&name=gm-map-1&object_id=9&map_content=global" class="amp-wp-fe51739"></iframe>"</noscript>​<i-amphtml-scroll-container>​</i-amphtml-scroll-container>​</amp-iframe>​ if allow-same-origin is set. See https://github.com/ampproject/amphtml/blob/master/spec/amp-iframe-origin-policy.md for details.
    $f @ error.js:195
    log.js:349 Uncaught Error: Origin of <amp-iframe> must not be equal to container amp-iframeif allow-same-origin is set. See https://github.com/ampproject/amphtml/blob/master/spec/amp-iframe-origin-policy.md for details.​​​
        at bb.f.assert (log.js:342)
        at C (log.js:811)
        at Ma (amp-iframe.js:149)
        at X.push.f.l.firstAttachedCallback (amp-iframe.js:262)
        at HTMLElement.b.yd (custom-element.js:430)
        at HTMLElement.b.pg (custom-element.js:907)
        at HTMLElement.b.connectedCallback (custom-element.js:855)
    Thread Starter douglasvb

    (@douglasvb)

    FYI, I have a parallel discussion going on in the AMP plugin support forum: https://ww.wp.xz.cn/support/topic/shortcodes-for-geo-mashup-not-working/

    Thread Starter douglasvb

    (@douglasvb)

    Thanks for the fast response, @westonruter !

    I don’t see any errors about a script from the Geo Mashup plugin in the AMP error index. But maybe I’m looking in the wrong place?

    Here is from the page source with AMP on:

    <div class="gm-map" style="position: relative;height: 450px; width: 700px;"><iframe name="gm-map-1" src="https://www.oregondivesites.com/?geo_mashup_content=render-map&map_data_key=a016d2caddfa0f405585c35da6cd1aec&admin_code=OR&zoom=6&auto_info_open=false&center_lat=44.162222&center_lng=-120.49&name=gm-map-1&object_id=9&map_content=global" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; overflow: hidden;"></iframe></div>

    Here it is with AMP off:

    <div class="gm-map" style="position: relative;height: 450px; width: 700px;"><iframe name="gm-map-1" src="https://www.oregondivesites.com/?geo_mashup_content=render-map&map_data_key=a016d2caddfa0f405585c35da6cd1aec&admin_code=OR&zoom=6&auto_info_open=false&center_lat=44.162222&center_lng=-120.49&name=gm-map-1&object_id=9&map_content=global" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; overflow: hidden;"></iframe></div>

    FWIW, this is the shortcode I am using from the Geo Mashup plugin:

    [geo_mashup_map admin_code="OR" zoom="6" auto_info_open="false" center_lat="44.162222" center_lng="-120.49"]

    I currently have it in an HTML block although previously I tried it in a “classic” block and a paragraph block. Putting it in the other block types did change the behavior a little bit but none of the blocks led to having the desired result (a rendered map with geo tagged posts displayed). I also tried using the most basic of shortcodes available in Geo Mashup ([geo_mashup_map]) with the same result.

    • This reply was modified 6 years, 11 months ago by douglasvb.
    Thread Starter douglasvb

    (@douglasvb)

    No worries 🙂 I’m very much an edge case.

    I am trying something with Amazon S3 and Apache mod-rewrite now where I can manually offload already generated images in the media library to S3 and then use the mod-rewrite rules to point to the S3 bucket (or CloudFront or similar) if the image isn’t found in the local WP folder on the server. I’ll see how it does. If I need to, I could go in and modify my WP database to point to the S3 bucket directly rather than use the rewrite rules.

    Then the longer-term solution is to setup a chronjob or something similar to periodically move files in the wp-uploads folder over to S3.

    That’s basically what the WP Offload S3 plugin by Delicious Brains does except I’m doing it the hard (and much lower cost) way.

    Hmm… maybe I should document this.

    Thread Starter douglasvb

    (@douglasvb)

    Thank you so much for responding!!!

    I didn’t realize that the local images were kept rather than being fully offloaded to the CDN. That wouldn’t work for what I think I need to do.

    I’ve been looking at the upgraded space option but it is somewhat price prohibitive in my case.

    Thanks again for being awesome with your plugins!

    Same problem with WordPress 4.7 and the Twenty Seventeen theme. The plugin is not finding anywhere that it can insert itself on the theme. When I was using the old Tarski theme on WP 4.7, the plugin worked fine.

    I was having the same problem about six months ago and switched to a VPS at DreamHost. All was fine until the last couple weeks when once again the problems of 500 and 404 errors came back. Except now they also come with “database unreachable” errors. The answer from DreamHost, unsurprisingly, is to increase the amount of RAM on the VPS. In other words, give DreamHost more money if you want your service to remain the same.

    My hosting bill is coming due soon. I think it might be time to migrate to another host but I am not sure where to go. Sometimes I think I should just host my site on my own server out of my garage.

    Thread Starter douglasvb

    (@douglasvb)

    Deleting the WP Super Cache cache solved the problem!

    Thanks!

    Thread Starter douglasvb

    (@douglasvb)

    Hi kbm,

    I’m using the following caching plugin:

    – WP Super Cache

    No Apache/ISS.

    Cheers,

    Douglas

    A day later and it is still causing intermittent issues. If I wait a while, it resolves the problem. At least it seems that even if I can’t see my stats, the stats are still being logged. I imagine that it is an API issue on WordPress.com’s side. Maybe a capacity issue?

Viewing 15 replies - 1 through 15 (of 42 total)