1. A “404 error” appeared in my server logs from GET /wp-content/plugins/cookie-notice/assets/chartjs/chart.umd.js
    2. The plugin code adds www to the host name for my staging site. — staging.garriganenterprises.com (see below)
    <amp-iframe layout="fill" sandbox="allow-scripts allow-same-origin" src="https://www.staging.garriganenterprises.com/?cn-amp-consent-iframe=34943057b4" class="i-amphtml-layout-fill i-amphtml-layout-size-defined i-amphtml-element i-amphtml-built i-amphtml-layout" i-amphtml-layout="fill" frameborder="0" style="--loader-delay-offset: 74ms !important;">

    The plugin does not function properly for AMP pages. I do not see documentation to resolve this issue.

    Origin of <amp-iframe> must not be equal to container  
    <amp-iframe class="i-amphtml-layout-fill i-…otbuilt i-amphtml-error" layout="fill" sandbox="allow-scripts allow-same-origin" src="https://www.garriganente…onsent-iframe=34943057b4" i-amphtml-layout="fill">
    if allow-same-origin is set. See https://github.com/ampproject/amphtml/blob/main/docs/spec/amp-iframe-origin-policy.md for details.​​​ error-reporting.js:213:15

    By leveraging the NGINX directive sub_filter I can temporally work around both the amp-iframe issue and the host name issue.

    • This topic was modified 9 months, 1 week ago by Jim Garrigan.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jim Garrigan

    (@garrigan)

    While conducting additional testing, I encountered another issue.

    The URL in the browser does not change as I browse AMP pages. AMP URL’s “?amp=1”

    I am guessing this issue is related to the iframe.

    Note: This subject matter is not within my area expertise.

    For years, as per the content in my site, I did IT work that is not related to WordPress, PHP, …

    Plugin Author dFactory

    (@dfactory)

    Hi Jim,

    Thanks for your input and the testing you’ve put into AMP support. We’ve done some checks on our end and our thought are:

    1.
    The plugin normally links to /assets/chartjs/chart.min.js not /assets/chartjs/chart.umd.js There must be some specific reason why the path to the file has changed, but it does not look like plugin related.

    2.
    AMP support for Cookie Compliance banner was not a simple task – difficult to develop and to test. We’ve made a lot to provide this feature but any feedback from you would help us improve – so if you can provide some additional information about your experiences with implementation, please reach out via our Support channels from Cookie Compliance dashboard. We’d continue there.

    Thanks!

    Thread Starter Jim Garrigan

    (@garrigan)

    Hi,

    The associated costs to maintain compliance with government regulations led me to stop using Google Site Kit and other analytics. In addition, I stopped publishing ads.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Three issues: (Free version) Missing file, hostname, and amp-iframe issue’ is closed to new replies.