• Resolved erkushalkhare

    (@erkushalkhare)


    Hi Team,

    I’m facing a problem with my website kkhare.com as soon as I have started working on Web Story.

    Google console started showing an error under AMP: Custom JavaScript is not allowed.

    Web Story URL: https://www.kkhare.com/web-stories/2022-fifa-world-cup-qatar/

    sharing the site health report for your reference

    
    ### wp-core ###
    
    version: 6.1
    site_language: en
    user_language: en
    timezone: +00:00
    permalink: /%category%/%postname%/
    https_status: false
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: undefined
    environment_type: production
    user_count: 2
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /home/kmem9uu05gwa/public_html/kkhare.com
    wordpress_size: 304.85 MB (319654792 bytes)
    uploads_path: /home/kmem9uu05gwa/public_html/kkhare.com/wp-content/uploads
    uploads_size: 3.31 MB (3468559 bytes)
    themes_path: /home/kmem9uu05gwa/public_html/kkhare.com/wp-content/themes
    themes_size: 11.32 MB (11873925 bytes)
    plugins_path: /home/kmem9uu05gwa/public_html/kkhare.com/wp-content/plugins
    plugins_size: 20.22 MB (21203881 bytes)
    database_size: 113.94 MB (119472331 bytes)
    total_size: 453.64 MB (475673488 bytes)
    
    ### wp-active-theme ###
    
    name: Newslay (newslay)
    version: 1.5
    author: Themeansar
    author_website: https://themeansar.com
    parent_theme: Newsup (newsup)
    theme_features: core-block-patterns, editor-style, widgets-block-editor, custom-header, automatic-feed-links, title-tag, align-wide, post-thumbnails, menus, html5, post-formats, custom-background, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, customize-selective-refresh-widgets, responsive-embeds, custom-logo, widgets
    theme_path: /home/kmem9uu05gwa/public_html/kkhare.com/wp-content/themes/newslay
    
    ### wp-parent-theme ###
    
    name: Newsup (newsup)
    version: 3.0.0.52 (latest version: 3.0.0.54)
    author: Themeansar
    author_website: https://themeansar.com
    theme_path: /home/kmem9uu05gwa/public_html/kkhare.com/wp-content/themes/newsup
    
    ### wp-themes-inactive (1) ###
    
    Twenty Twenty-Two: version: 1.3, author: the WordPress team
    
    ### wp-mu-plugins (2) ###
    
    Health Check Troubleshooting Mode: author: (undefined), version: 1.8.1
    installatron_hide_status_test.php: author: (undefined), version: (undefined)
    
    ### wp-plugins-active (7) ###
    
    404 to 301 - Redirect, Log and Notify 404 Errors: version: 3.1.3, author: Joel James
    Easy Table of Contents: version: 2.0.37, author: Magazine3
    Head, Footer and Post Injections: version: 3.2.5, author: Stefano Lissa
    Health Check & Troubleshooting: version: 1.5.1, author: The www.ads-software.com community
    Limit Login Attempts Reloaded: version: 2.25.8, author: Limit Login Attempts Reloaded
    Rank Math SEO: version: 1.0.102, author: Rank Math
    Web Stories: version: 1.27.0, author: Google
    
    ### wp-plugins-inactive (4) ###
    
    Ad Inserter: version: 2.7.22, author: Igor Funa
    Akismet Anti-Spam: version: 5.0.1, author: Automattic
    WordPress Importer: version: 0.8, author: wordpressdotorg
    Yoast SEO: version: 19.10, author: Team Yoast
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1808
    imagemagick_version: ImageMagick 7.1.0-2 Q16 x86_64 2021-06-25 https://imagemagick.org
    imagick_version: 3.7.0
    file_uploads: File uploads is turned off
    post_max_size: 32M
    upload_max_filesize: 32M
    max_effective_size: 32 MB
    max_file_uploads: 20
    imagick_limits: 
    	imagick::RESOURCETYPE_AREA: 62 GB
    	imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
    	imagick::RESOURCETYPE_FILE: 12288
    	imagick::RESOURCETYPE_MAP: 62 GB
    	imagick::RESOURCETYPE_MEMORY: 31 GB
    	imagick::RESOURCETYPE_THREAD: 1
    imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YAML, YCbCr, YCbCrA, YUV
    gd_version: 2.2.5
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: 8.70
    
    ### wp-server ###
    
    server_architecture: Linux 2.6.32-954.3.5.lve1.4.89.el6.x86_64 x86_64
    httpd_software: Apache
    php_version: 8.1.11 64bit
    php_sapi: litespeed
    max_input_variables: 1000
    time_limit: 30
    memory_limit: 128M
    admin_memory_limit: 256M
    max_input_time: 60
    upload_max_filesize: 32M
    php_post_max_size: 32M
    curl_version: 7.71.0 OpenSSL/1.1.1p
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 5.6.51-cll-lve
    client_version: 5.6.51
    max_allowed_packet: 268435456
    max_connections: 250
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/kmem9uu05gwa/public_html/kkhare.com/wp-content
    WP_PLUGIN_DIR: /home/kmem9uu05gwa/public_html/kkhare.com/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable
    
    ### web_stories ###
    
    web_stories_version: 1.27.0
    web_stories_db_version: 3.0.14
    web_stories_amp_version: 2.3.0
    web_stories_cdn_url: https://wp.stories.google/static/19
    web_stories_dev_mode: false
    web_stories_theme_support: Disabled
    web_stories_enabled_experiments: 
    	Story locking take over: Enabled
    web_stories_libxml_version: 2.9.7
    
    

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @erkushalkhare thanks for getting in touch. When running your Story through AMP validation I can see the errors you are referring to. It appears that the custom JavaSctipt is being placed by your hosting provider:

    // Monitoring performance to make your website faster. If you want to opt-out, please contact web hosting support.</script><script src='https://img1.wsimg.com/traffic-assets/js/tccl.min.js'></script><script src='https://img1.wsimg.com/traffic-assets/js/tccl-tti.min.js' onload='window.tti.calculateTTI()'></script></html>

    I would recommend reaching out to your host regarding this and once removed your Stories should be passing AMP validation but if not let us know and we can have another look with you.

    Thread Starter erkushalkhare

    (@erkushalkhare)

    Hi Adam,

    I have got a reply from the hosting provider

    `Thankyou for the time and patience.
    As in shared hosting unable to remove those inbuilt options
    Ultimate Linux Hosting with cPanel
    kkhare.com
    instead to minimize refer .`

    Any other solution that can help me in fixing this issue

    @erkushalkhare Unfortunately as this is placed by a third party we don’t have any control over this. To clear the AMP validation errors this custom JavaScript will need to be removed. Out of interest, can I ask who you hosting provider is?

    Thread Starter erkushalkhare

    (@erkushalkhare)

    Godaddy.
    Just want to check I need to get Awstats & Webalizer tracking off or is there anything else that I’m missing

    Thread Starter erkushalkhare

    (@erkushalkhare)

    Thanks I got it fixed. I have just disabled Analytics tracking from Godady

    @erkushalkhare Excellent! Good find and glad you have been able to resolve this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom JavaScript is not allowed on web story’ is closed to new replies.