• I’ve optimized a lot of our templates, including AMP templates, and have double checked the AMP validator for any other issues which all have passed the past couple weeks, except for today. Starting getting this error:

    The attribute 'src' in tag 'amp-analytics extension .js script' is set to the invalid value 'https://cdn.ampproject.org/v0/amp-analytics-latest.js'%20defer%20onload=''.

    Tried disabling the analytics codes within the plugin, cleared cache, but still registers as a fail.

    Source link:
    https://pgnthemebuild.wpengine.com/inmate-phone-calls/rhode-island-doc-gloria-mcdonald-womens-medium-inmate-calling/amp/

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ruigieb

    (@ruigieb)

    Also – this was after I updated the AMP app itself.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please tell me the list of plugins are you used on your website?

    Thread Starter ruigieb

    (@ruigieb)

    No Problem:

    Accelerated Mobile Pages
    AMP Layouts
    AMP Theme Framework
    AMPforWP Plugin Manager
    Async JavaScript
    Autoptimize
    Better Search Replace
    Block Lab
    Display Related Post for Genesis
    Enable Media Replace
    Export All URLs
    Force Regenerate Thumbnails
    Genesis Grid
    Gutenberg
    HTTP Headers
    JWT Authentication for WP-API
    Media Library Assistant
    Really Simple CSV Importer
    Redirection
    reSmush.it Image Optimizer
    Rewrite Rules Inspector
    Schema Removal
    Stackable – Gutenberg Blocks
    Ultimate Addons for Gutenberg
    WP All Export
    WP All Import Pro
    WP Engine Content Performance
    WP File Manager
    WP Responsive Menu
    WP-Sweep
    WPForms Lite
    Yoast SEO Premium

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We checked your issue. It is due to add some defer and onload codes are adding in src. it is not supported in AMP. Maybe it is due to the use of some plugin.
    Reference: https://monosnap.com/file/A3A1zPuraKx4ndj7wHy7d47yw6t5t7
    Can you please deactivate all plugins? And activate one by one. After you understand which plugin is causing this error. And share it with us.

    Thread Starter ruigieb

    (@ruigieb)

    Will test this, thank you!

    Thread Starter ruigieb

    (@ruigieb)

    I’ve tested by disabling everything minus the AMP plugin itself and the theme framework – nothing seems to have resolved it.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We checked your issue. It is not our plugin issue. We have sure that this error is because of using any third-party plugin. So it causes the error.

    1. Can you please deactivate all plugin and clear the server cache? After installing one by one. Then you have understood which plugin causes this error.

    2. After it is not solved, change the theme to the WordPress default theme. And clear the server cache. And let me know the problem is solved or not.

    • This reply was modified 6 years, 3 months ago by Ahmed Kaludi.
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘amp-analytics extension.js script invalid val’ is closed to new replies.