• Resolved jhardin01

    (@jhardin01)


    Creating web stories for the first time, and I’m getting the below errors while trying to index. I know nothing about what AMP is and I don’t understand the documentation. If someone can give me step by step instructions on how to correct these errors, it’ll be greatly appreciated.

    -Tag amp-story is not allowed to have any sibling tags. (‘body’ should only have 1 child)
    -Tag found outside the document head which is only allowed as a direct child of the document head
    -Only amp-boilerplate and amp-custom ‘style’ tags are allowed, and only in the document head
    -Custom javascript not allowed

    Please help! Thank you!

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

Viewing 15 replies - 31 through 45 (of 45 total)
  • Thread Starter jhardin01

    (@jhardin01)

    I have requested that info!

    Plugin Support Luckyna San

    (@luckynasan)

    @jhardin01 It appears you are using Ezoic CDN and it optimizing your site using Site Speed. There is some setting in Ezoic that may be causing issues. In reference to the article linked earlier, could you please navigate to “4. Turn on Free Leap Features” section and try turning off the Site Speed accelerator in Ezoic settings?

    Thread Starter jhardin01

    (@jhardin01)

    Ezoic plugin still deactivated and I have turned off leap settings and site speed accelerator

    Plugin Support Luckyna San

    (@luckynasan)

    @jhardin01 Can you confirm if you cleared the cache on Ezoic?

    Please navigate to Ezoic Dashboard under the “Speed” tab, and clear Ezoic’s cache for your entire site by clicking “Clear Cache”.

    Thread Starter jhardin01

    (@jhardin01)

    cache cleared

    Plugin Support Luckyna San

    (@luckynasan)

    @jhardin01 It looks like all the original validation errors have cleared, but a new custom javascript is now being inserted, which seems to be related to Ezoic DDoS Security. At this point, you can enable all of your plugins and theme once more. It seems the issue may be with Ezoic CDN, and I recommend contacting Ezoic support to take a deeper look.

    Thread Starter jhardin01

    (@jhardin01)

    I have contacted them to see what they say

    Thread Starter jhardin01

    (@jhardin01)

    Sorry for the delay, I received this from my host:

    Hi Jordan,
    
    We found the below debug logs:
    
    Notice: Undefined index: SERVER_NAME in /var/www/volumes/xvdi/vhosts/jordibhealthandfitness.com/httpdocs/wp-content/plugins/ezoic-integration/includes/class-ezoic-integration-cache.php on line 16
    Thread Starter jhardin01

    (@jhardin01)

    Hello any update? Or would it be helpful to post the error I receive in webstories too?

    DISALLOWED_SCRIPT_TAG at 31:311
    Custom JavaScript is not allowed.Learn more
    30|	</amp-analytics>
    31|<amp-story-social-share layout="nodisplay" class="i-amphtml-layout-nodisplay" hidden="hidden" i-amphtml-layout="nodisplay"><script type="application/json">{"shareProviders":[{"provider":"twitter"},{"provider":"linkedin"},{"provider":"email"},{"provider":"system"}]}</script></amp-story-social-share></amp-story><script type="text/javascript">!function(){"use strict";var S={hash:function(t){for(var r=[1518500249,1859775393,2400959708,3395469782],e=(t+=String.fromCharCode(128)).length/4+2,n=Math.ceil(e/16),o=new Array(n),a=0;a<n;a++){o[a]=new Array(16);for(var c=0;c<16;c++)o[a][c]=t.charCodeAt(64*a+4*c)<<24|t.charCodeAt(64*a+4*c+1)<<16|t.charCodeAt(64*a+4*c+2)<<8|t.charCodeAt(64*a+4*c+3)}o[n-1][14]=8*(t.length-1)/Math.pow(2,32),o[n-1][14]=Math.floor(o[n-1][14]),o[n-1][15]=8*(t.length-1)&4294967295;for(var f=1732584193,i=4023233417,u=2562383102,s=271733878,d=3285377520,h=new Array(80),a=0;a<n;a++){for(var l=0;l<16;l++)h[l]=o[a][l];for(l=16;l<80;l++)h[l]=S.ROTL(h[l-3]^h[l-8]^h[l-14]^h[l-16],1);A=f,H=i,y=u,g=s,p=d;for(l=0;l<80;l++)var v=Math.floor(l/20),v=S.ROTL(A,5)+S.f(v,H,y,g)+p+r[v]+h[l]&4294967295,p=g,g=y,y=S.ROTL(H,30),H=A,A=v;f=f+A&4294967295,i=i+H&4294967295,u=u+y&4294967295,s=s+g&4294967295,d=d+p&4294967295}return S.toHexStr(f)+S.toHexStr(i)+S.toHexStr(u)+S.toHexStr(s)+S.toHexStr(d)},f:function(t,r,e,n){switch(t){case 0:return r&e^~r&n;case 1:return r^e^n;case 2:return r&e^r&n^e&n;case 3:return r^e^n}},ROTL:function(t,r){return t<<r|t>>>32-r},toHexStr:function(t){for(var r="",e=7;0<=e;e--)r+=(t>>>4*e&15).toString(16);return r}},a={0:4,1:3,2:2,3:2,4:1,5:1,6:1,7:1,8:0,9:0,a:0,b:0,c:0,d:0,e:0,f:0},c={0:"1",1:"2",2:"3",3:"4",4:"5",5:"6",6:"7",7:"8",8:"9",9:"a",a:"b",b:"c",c:"d",d:"e",e:"f"};function t(e,n){var o="0";return function(t){for(;0<t;){var r=function(t){for(var r=0,e=0;e<t.length;){var n=t.charAt(e);if(r+=a[n],"0"!=n)break;e++}return r}(S.hash(e+o,0));if(n<=r)return o;o=function t(r){if(0==r.length)return"0";var e=r.charAt(0),r=r.slice(1);return"f"==e?"0"+t(r):c[e]+r}(o),t--}return!1}}var r,e,n="cafd0573deb53d0d0981262a03053c52";function o(){var t=e(100);t?r(t):setTimeout(o,1)}r=function(t){var e;t="stamp="+n+"&buf="+(t=t),(e=new XMLHttpRequest).onreadystatechange=function(){var t,r;e.readyState==XMLHttpRequest.DONE&&(0===(t=e.status)||200<=t&&t<400?(r=document.getElementById("siteprotect_ddos_reload"))&&location.reload():(r=document.getElementById("siteprotect_ddos_reload"))&&(r.innerHTML='Unable Verify, <a href="#" onclick="location.reload()">Click Here to Try Again</a>'))},e.open("POST","/siteprotect-verify",!0),e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),e.send(t)},e=t(n,"16"),o()}();</script>
    32|</body></html>
    Plugin Support Luckyna San

    (@luckynasan)

    @jhardin01 The debug log indicates there is an issue with the Ezoic integration. Unfortunately, this is beyond the scope of support we can provide you. I recommend contacting Ezoic support and presenting them with the error details.

    Thread Starter jhardin01

    (@jhardin01)

    Thats a name servers error, that occured when I changes my nameservers from my host to ezoic.

    What about the javascript error I posted directly from web stories

    Plugin Support Luckyna San

    (@luckynasan)

    @jhardin01 You can see in the testing results here: https://search.google.com/test/amp/result?id=VPcx-OQouYg-DRUOsJdodg that the custom JavaScript that’s being referred to something that includes the element siteprotect_ddos_reload. Our best guess is that this is some kind of site protection coming from your hosting provider, but it’s not something that we’re familiar with, and I can confirm that it is not coming directly from Web Stories. You can check with your hosting provider to see if they’re familiar with this code.

    As the error message noted, custom JavaScript is not allowed on Web Stories, so whatever it is should be turned off/excluded for your Web Stories URLs.

    Thread Starter jhardin01

    (@jhardin01)

    Is it specific javascript on the page I’m trying to connect to a story? The only time I’ve used javascript is with convert kit. But on a page I am not using it, I still get the error.

    If I remove everything convert kit where I use javascript, would it help?

    @jhardin01 It is definitely loading on your Web Stories, but not sure about other pages. I’m not familiar with ConvertKit; maybe you could reach out to their support team to better understand what is loading and where.

    Unfortunately we’re not able to help you determine where this code is coming from and how to remove it as it’s not part of the Web Stories plugin. If you’re having trouble, a web developer should be able to help you identify where the problematic code is coming from and how to remove it. Sorry we can’t be of more assistance here.

    Plugin Support Luckyna San

    (@luckynasan)

    @jhardin01 Thanks again for reaching out with your topic. We’ll close your topic here. If you do run into any issues or questions with the Web Stories plugin, please feel free to open a new support topic.

Viewing 15 replies - 31 through 45 (of 45 total)
  • The topic ‘First WebStory AMP Issues’ is closed to new replies.