Support » Plugin: AMP for WP - Accelerated Mobile Pages » The tag ‘amp-sticky-ad extension .js script’ appears more than once

  • Resolved kapson

    (@kapson)


    Dear Team,

    After recent update I got this massage from google search console: “The tag ‘amp-sticky-ad extension .js script’ appears more than once in the document.” and “The tag ‘amp-auto-ads extension .js script’ appears more than once in the document.”

    I found even though I am not using “Auto-ads” and “Sticky-ads” function from “AMP for WP”, It’s still injecting code into pages.

    Kindly guide how to restrict “AMP for WP” to injecting auto codes?

    I am using “Ad Inserter” plugin to manage my ads needs.

    Thank you
    Best Regards
    Kapil

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We noticed your error
    1. Can you please update our latest version 1.0.12 and see if you are having the same issue?
    2. After it is not fixing can you please deactivate ‘Ad Inserter’ and see whether the issue is solved or not.

    Dear Ahmed,

    1) I am already using 1.0.12 and after this update, I received this duplicate error. Earlier this error was not there. I am using the same for a long time “AMP for WP” with “Ad Inserter”.

    2) I tested with deactivating the “Ad Inserter” plugin and found “AMP for WP” is not injecting any “Auto-ads” and “Sticky-ad” codes while there is no “Auto ads” codes. But as soon as I activate again “Ad Inserter” plugin… the “AMP for WP” injecting the duplicate auto codes.

    as I can see I have inserted this line manually
    https://cdn.ampproject.org/v0/amp-sticky-ad-1.0.js” in the “Ad Inserter” setting
    but this line
    https://cdn.ampproject.org/v0/amp-sticky-ad-latest.js”
    is automatically injected by “AMP for WP”, as it’s not inserted by me in anywhere in the setting.

    Kindly guide how to solve this.

    Thank you
    Best Regards
    Kapil

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please update our latest version 1.0.13 and see if you are having the same issue?

    Dear Ahmed,

    I updated to version 1.0.13, but the issue is still there.

    Thank you
    Best Regards
    Kapil

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please share the list of plugins you are used on your websites?

    Dear Ahmed,

    PFA

    https://imgur.com/W1Yabjn

    Accelerated Mobile Pages
    Version 1.0.13 by Ahmed Kaludi, Mohammed Kaludi

    Ad Inserter
    Version 2.6.1 by Igor Funa

    Ads for WP – Advanced Ads & Adsense Solution for WP & AMP
    Version 1.9.15.2 by Magazine3

    AMPforWP Plugin Manager
    Version 1.3 by Ahmed Kaludi, Mohammed Kaludi

    Append Link on Copy
    Version 0.2 by Jonathan M. Hethey

    BackupBuddy
    Version 8.5.2.1 by iThemes

    Classic Editor
    Version 1.5 by WordPress Contributors

    Contextual Related Posts
    Version 2.8.0 by WebberZone

    Cookie Notice
    Version 1.2.50 by dFactory

    Disable Comments
    Version 1.10.2 by Samir Shah

    EWWW Image Optimizer
    Version 5.1.4 by Exactly WWW

    Google Analytics Dashboard for WP (GADWP)
    Version 5.3.10 by ExactMetrics

    Health Check & Troubleshooting
    Version 1.4.2 by The WordPress.org community

    Interlinks Manager
    Version 1.23 by DAEXT

    Jetpack by WordPress.com
    Version 8.0 by Automattic

    Kirki Customizer Framework
    Version 3.0.45 by Ari Stathopoulos (@aristath)

    Optimize Database after Deleting Revisions
    Version 4.8.8 by CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands

    Powerkit
    Version 2.0.7 by Code Supply Co.

    PWA for WP
    Version 1.7.5 by Magazine3

    Redirection
    Version 4.6.2 by John Godley

    Relevanssi
    Version 4.4.1 by Mikko Saari

    Schema & Structured Data for WP & AMP
    Version 1.9.21 by Magazine3

    SearchWP Live Ajax Search
    Version 1.4.4 by Jonathan Christopher

    Site Kit by Google
    Version 1.1.4 by Google

    TinyMCE Advanced
    Version 5.3.0 by Andrew Ozz

    Wordfence Security
    Version 7.4.2 by Wordfence

    WP Fastest Cache
    Version 0.9.0.1 by Emre Vona

    WP Fastest Cache Premium
    Version 1.5.6 by Emre Vona

    WP Hide & Security Enhancer
    Version 1.5.9 by Nsp Code

    WPSSO Core (Premium)
    Version 6.16.2 by JS Morisset

    WPSSO Schema Breadcrumbs Markup
    Version 2.2.2 by JS Morisset

    WPSSO Schema JSON-LD Markup
    Version 2.18.0 by JS Morisset

    WPSSO Strip Schema Microdata
    Version 2.0.3 by JS Morisset

    WPSSO Tune Image Editors
    Version 2.0.4 by JS Morisset

    WPSSO Update Manager
    Version 2.6.3 by JS Morisset

    Yoast SEO
    Version 12.8 by Team Yoast

    Thanks
    Regards

    • This reply was modified 6 days, 1 hour ago by kapson.
    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please deactivate Ads for the WP plugin and clear the server cache? Ans see if you are having the same issue.

    kapson

    (@kapson)

    Dear Ahmed,

    I have done that already a few times today, I tried with activating and deactivating “ADS for WP” plugin. But the issue was there.

    I also tried uninstalling “ADS for WP” and used “AMP for WP” only with “Ad Inserter” alone.

    But both of the times the issue was there.

    I noticed If I don’t insert “Auto-ads” and “Sticky-ads” tags through “Ad Inserter” … there is no issue. (as I don’t get auto and sticky ads enabled)

    But as soon as I insert “Auto and sticky ads” tags in “Ad Inserter” setting … I get duplicate codes, whether with “ADS for WP” or/without “AMP for WP” plugin alone.

    Thank you
    Best Regards
    Kapil

    Dear Ahmed,

    I solved this. Needed to remove the script from “Ad Inserter” header, due to “AMP for WP” plugin was also generating auto scripts.

    Thank you for your kind support.

    Best Regards
    Kapil

    @kapson Can you elaborate how you removed the script from “Ad Inserter” header. I’m unable to find anything. I’m having the same problem.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    parveenbhadoo: As per the forum guidelines you have to be created a new topic.

    Hi @parveenbhadoo

    remove amp .js code here from ad inserter.

    https://adinserter.pro/wp/wp-content/uploads/ad-inserter-settings-3b.png

    Thank you

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.