i am getting this error for my amp pages in the search console so how do i solve it
]]>I’ve been asked to remove version information on the source code and I’ve used a plugin to do so but I’ve found that version information about Complianz can still be seen in the following script.
Is there a way to hide this information?
<script type='text/javascript' id='cmplz-cookiebanner-js-extra'>
/* <![CDATA[ */
var complianz = {"prefix":"cmplz_","user_banner_id":"2","set_cookies":[],"block_ajax_content":"","banner_version":"23","version":"6.3.5","store_consent":"","do_not_track":""(...)};
/* ]]> */
</script>
thanks a lot
]]>I’m facing some weird issues with user capabilities. We have some pages created with raw HTML sections, inline SVG and script tags on multisite. When Site Admin edit/save these pages, the page breaks and shows raw code on the page. The page UI breaks completely and looks a mess! But Super Admins have no troubles in adding, editing, saving pages with HTML, inline SVG and script tags.
I think there is a WP role capability issue here. I have already been in touch with Divi theme support team and ran tests with them. These tests confirmed that this issue exists on WP default theme too. So it does not seem to be related to just one theme.
While investigating, I have tried to use plugin – ‘User Role Editor’, where I gave users capabilities like – unfiltered_html, edit_files, but this made no difference on the issues I’m facing. The indications seem to be of role capability for Site Admins on multisite, but I fail to understand which capability might be causing this issue. Could there be something else?
This issue is causing a major trouble to me and site admins. I can’t make all Site Admins – Super Admins. And we have scripts, inline SVG and raw HTML on many pages, which will not be possible to avoid. Hence I seek help within WP community to help me resolve this issue.
]]>Seeing this on multiple websites we host but do not see an unused script tag. Can you please advise regarding a solution?
]]>An AMP component ‘script’ tag is present more than once in the document.
This is the code that GSC highlights:
</script><script src=”https://cdn.ampproject.org/v0/amp-analytics-0.1.js” async=”” custom-element=”amp-analytics”></script><script src=”https://cdn.ampproject.org/v0/amp-form-0.1.js” async=”” custom-element=”amp-form”></script><script src=”https://cdn.ampproject.org/v0/amp-mustache-0.2.js” async=”” custom-template=”amp-mustache”></script><style amp-custom=””>.contact-form input::placeholder{transition:opacity .3s ease-out}.contact-form input:hover::placeholder{opacity:.5}.contact-form input:focus::placeholder{opacity:.3}.contact-form input[type=’text’],.contact-form input[type=’email’],.contact-form input[type=’tel’],.contact-form input[type=’url’]{box-sizing:border-box;margin-bottom:1.5em;width:100%}.contact-form input[type=’radio’],.contact-form input[type=’checkbox’]{float:none;margin:0 .75rem 0 5px}.contact-form input[type=’checkbox’]{top:0;margin-left:0}.contact-form label{margin-bottom:.25em;float:none;font-weight:bold;display:block}.contact-form label span{font-size:85%;margin-left:.25em;font-weight:normal}@media only screen and (min-width: 600px){.contact-form input[type=’text’],.contact-form input[type=’email’],.contact-form input[type=’tel’],.contact-form input[type=’url’]{width:50%}}p:empty:before{content:”?”}amp-img.amp-wp-enforced-sizes[layout=”intrinsic”] > img{object-fit:contain}.amp-wp-default-form-message > p{margin:1em 0;padding:.5em}.amp-wp-default-form-message[submitting] > p,.amp-wp-default-form-message[submit-success] > p.amp-wp-form-redirecting{font-style:italic}.amp-wp-default-form-message[submit-success] > p:not(.amp-wp-form-redirecting){border:solid 1px #008000;background-color:#90ee90;color:#000}.amp-wp-default-form-message[submit-error] > p{border:solid 1px #f00;background-color:#ffb6c1;color:#000}.amp-wp-default-form-message[submit-success] > p:empty{display:none}.alignleft{margin-top:1em;margin-right:auto;margin-bottom:1em;margin-left:auto}.alignleft{float:left}.amp-wp-enforced-sizes{max-width:100%;margin:0 auto}html{background:#0a89c0}body{background:#fff;color:#353535;font-family:Georgia,”Times New Roman”,Times,Serif;font-weight:300;line-height:1.75em}p,ul,figure{margin:0 0 1em;padding:0}a,a:visited{color:#0a89c0}a:hover,a:active,a:focus{color:#353535}.amp-wp-header div,.amp-wp-title,.wp-caption-text,.amp-wp-footer p,.back-to-top{font-family:-apple-system,BlinkMacSystemFont,”Segoe UI”,”Roboto”,”Oxygen-Sans”,”Ubuntu”,”Cantarell”,”Helvetica Neue”,sans-serif}.amp-wp-header{background-color:#0a89c0}.amp-wp-header div{color:#fff;font-size:1em;font-weight:400;margin:0 auto;max-width:calc(840px – 32px);padding:.875em 16px;position:relative}.amp-wp-header a{color:#fff;text-decoration:none}.amp-wp-header .amp-wp-site-icon{background-color:#fff;border:1px solid #fff;border-radius:50%;position:absolute;right:18px;top:10px}.amp-wp-article{color:#353535;font-weight:400;margin:1.5em auto;max-width:840px;overflow-wrap:break-word;word-wrap:break-word}.amp-wp-article-header{align-items:center;align-content:stretch;display:flex;flex-wrap:wrap;justify-content:space-between;margin:1.5em 16px 0}.amp-wp-title{color:#353535;display:block;flex:1 0 100%;font-weight:900;margin:0 0 .625em;width:100%}.amp-wp-article-content{margin:0 16px}.amp-wp-article-content ul{margin-left:1em}.amp-wp-article-content .wp-caption{max-width:100%}.amp-wp-article-content amp-img{margin:0 auto}.amp-wp-article-content amp-img.alignleft{margin:0 16px 1em 0}.wp-caption{padding:0}.wp-caption.alignleft{margin-right:16px}.wp-caption .wp-caption-text{border-bottom:1px solid #c2c2c2;color:#696969;font-size:.875em;line-height:1.5em;margin:0;padding:.66em 10px .75em}.amp-wp-footer{border-top:1px solid #c2c2c2;margin:calc(1.5em – 1px) 0 0}.amp-wp-footer div{margin:0 auto;max-width:calc(840px – 32px);padding:1.25em 16px 1.25em;position:relative}.amp-wp-footer h2{font-size:1em;line-height:1.375em;margin:0 0 .5em}.amp-wp-footer p{color:#696969;font-size:.8em;line-height:1.5em;margin:0 85px 0 0}.amp-wp-footer a{text-decoration:none}.back-to-top{bottom:1.275em;font-size:.8em;font-weight:600;line-height:2em;position:absolute;right:16px}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-cc68ddc{color:#f00}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-b3a15a8{width:100px}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-ebaa9f7{width:144px}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-5443cfc{color:#000}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-cae6213{font-size:14px;color:#000}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-cdd8ca0{text-align:center}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-267f6d5{font-size:14px}
An AMP component ‘script’ tag is present more than once in the document.
This is the code that GSC highlights:
</script><script src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js" async="" custom-element="amp-analytics"></script><script src="https://cdn.ampproject.org/v0/amp-form-0.1.js" async="" custom-element="amp-form"></script><script src="https://cdn.ampproject.org/v0/amp-mustache-0.2.js" async="" custom-template="amp-mustache"></script><style amp-custom="">.contact-form input::placeholder{transition:opacity .3s ease-out}.contact-form input:hover::placeholder{opacity:.5}.contact-form input:focus::placeholder{opacity:.3}.contact-form input[type='text'],.contact-form input[type='email'],.contact-form input[type='tel'],.contact-form input[type='url']{box-sizing:border-box;margin-bottom:1.5em;width:100%}.contact-form input[type='radio'],.contact-form input[type='checkbox']{float:none;margin:0 .75rem 0 5px}.contact-form input[type='checkbox']{top:0;margin-left:0}.contact-form label{margin-bottom:.25em;float:none;font-weight:bold;display:block}.contact-form label span{font-size:85%;margin-left:.25em;font-weight:normal}@media only screen and (min-width: 600px){.contact-form input[type='text'],.contact-form input[type='email'],.contact-form input[type='tel'],.contact-form input[type='url']{width:50%}}p:empty:before{content:"?"}amp-img.amp-wp-enforced-sizes[layout="intrinsic"] > img{object-fit:contain}.amp-wp-default-form-message > p{margin:1em 0;padding:.5em}.amp-wp-default-form-message[submitting] > p,.amp-wp-default-form-message[submit-success] > p.amp-wp-form-redirecting{font-style:italic}.amp-wp-default-form-message[submit-success] > p:not(.amp-wp-form-redirecting){border:solid 1px #008000;background-color:#90ee90;color:#000}.amp-wp-default-form-message[submit-error] > p{border:solid 1px #f00;background-color:#ffb6c1;color:#000}.amp-wp-default-form-message[submit-success] > p:empty{display:none}.alignleft{margin-top:1em;margin-right:auto;margin-bottom:1em;margin-left:auto}.alignleft{float:left}.amp-wp-enforced-sizes{max-width:100%;margin:0 auto}html{background:#0a89c0}body{background:#fff;color:#353535;font-family:Georgia,"Times New Roman",Times,Serif;font-weight:300;line-height:1.75em}p,ul,figure{margin:0 0 1em;padding:0}a,a:visited{color:#0a89c0}a:hover,a:active,a:focus{color:#353535}.amp-wp-header div,.amp-wp-title,.wp-caption-text,.amp-wp-footer p,.back-to-top{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif}.amp-wp-header{background-color:#0a89c0}.amp-wp-header div{color:#fff;font-size:1em;font-weight:400;margin:0 auto;max-width:calc(840px - 32px);padding:.875em 16px;position:relative}.amp-wp-header a{color:#fff;text-decoration:none}.amp-wp-header .amp-wp-site-icon{background-color:#fff;border:1px solid #fff;border-radius:50%;position:absolute;right:18px;top:10px}.amp-wp-article{color:#353535;font-weight:400;margin:1.5em auto;max-width:840px;overflow-wrap:break-word;word-wrap:break-word}.amp-wp-article-header{align-items:center;align-content:stretch;display:flex;flex-wrap:wrap;justify-content:space-between;margin:1.5em 16px 0}.amp-wp-title{color:#353535;display:block;flex:1 0 100%;font-weight:900;margin:0 0 .625em;width:100%}.amp-wp-article-content{margin:0 16px}.amp-wp-article-content ul{margin-left:1em}.amp-wp-article-content .wp-caption{max-width:100%}.amp-wp-article-content amp-img{margin:0 auto}.amp-wp-article-content amp-img.alignleft{margin:0 16px 1em 0}.wp-caption{padding:0}.wp-caption.alignleft{margin-right:16px}.wp-caption .wp-caption-text{border-bottom:1px solid #c2c2c2;color:#696969;font-size:.875em;line-height:1.5em;margin:0;padding:.66em 10px .75em}.amp-wp-footer{border-top:1px solid #c2c2c2;margin:calc(1.5em - 1px) 0 0}.amp-wp-footer div{margin:0 auto;max-width:calc(840px - 32px);padding:1.25em 16px 1.25em;position:relative}.amp-wp-footer h2{font-size:1em;line-height:1.375em;margin:0 0 .5em}.amp-wp-footer p{color:#696969;font-size:.8em;line-height:1.5em;margin:0 85px 0 0}.amp-wp-footer a{text-decoration:none}.back-to-top{bottom:1.275em;font-size:.8em;font-weight:600;line-height:2em;position:absolute;right:16px}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-cc68ddc{color:#f00}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-b3a15a8{width:100px}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-ebaa9f7{width:144px}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-5443cfc{color:#000}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-cae6213{font-size:14px;color:#000}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-cdd8ca0{text-align:center}:root:not(#_):not(#_):not(#_):not(#_):not(#_) .amp-wp-267f6d5{font-size:14px}
I’m the webmaster for the site I referenced and this morning, after an upgrade of the Iubenda plugin, I found at the top of the screen the cdn .js URL printed to the top of the page.
I found this blog post https://www.iubenda.com/en/help/2156-introduction-to-safemode which describe the new safe mode feature of the plugin and was able to copy and paste the correct script tag into the plugin and that solved the problem.
But, you’ll want to check this, because I found in the plugin the script tag was not closed.
]]>Please advise when fix for the below amp error is expected?
“A tag on this page requires an AMP component ‘script’ tag, which is missing”
Several pages are impacted. I am already with latest version of amp for wp
Thank you in advance
Kenneth
Right now I got message form Google Search Console team, that (A tag on this page requires an AMP component ‘script’ tag, which is missing.)
The affected URL is https://upscbuddy.com/cgge-exam/
Please have a look on it, why this issue is occuring, as today once I updated my AMP version this issue occured.
]]>