AMP Web Story is Invalid
-
I got this error in this morning stating that
1. A tag on this page requires an AMP component ‘script’ tag, which is missing.
2. A mandatory AMP HTML tag is missing from this document.
3. Custom JavaScript is not allowed.
4. Disallowed attribute or attribute value present in HTML tag.
other web stories don’t have any AMP issues. I request you to please looking into this issue
Thank you
The page I need help with: [log in to see the link]
-
@amannawaz25 Hi there! This error can occur if you are using a plugin that adds custom JavaScript to pages or removes required AMP documents, which is not allowed in Web Stories.
We’ve seen conflicts with optimization, caching, and minified plugins which I can see you have active on your site.
Could you provide your Site Health information so that I can take a closer look at your plugin setup? You can share privately if you prefer.
Hi mam,
This is my website health information. Please check it and please help me to get over this AMP issueSite health info:-`
### wp-core ###version: 6.0.2
site_language: en_US
user_language: en_US
timezone: Asia/Kolkata
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 21922
dotorg_communication: true### wp-paths-sizes ###
wordpress_path: /home/wplive/web/wp-live
wordpress_size: loading…
uploads_path: /home/wplive/web/wp-live/wp-content/uploads
uploads_size: loading…
themes_path: /home/wplive/web/wp-live/wp-content/themes
themes_size: loading…
plugins_path: /home/wplive/web/wp-live/wp-content/plugins
plugins_size: loading…
database_size: loading…
total_size: loading…### wp-active-theme ###
name: Neve (neve)
version: 3.4.3
author: ThemeIsle
author_website: https://themeisle.com
parent_theme: none
theme_features: core-block-patterns, buddypress-use-legacy, hfg_support, menus, widgets-block-editor, post-thumbnails, title-tag, automatic-feed-links, custom-logo, html5, customize-selective-refresh-widgets, custom-background, align-wide, editor-color-palette, fl-theme-builder-headers, fl-theme-builder-footers, fl-theme-builder-parts, header-footer-elementor, lifterlms-sidebars, lifterlms, service_worker, starter-content, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, web-stories, widgets
theme_path: /home/wplive/web/wp-live/wp-content/themes/neve
auto_update: Enabled### wp-mu-plugins (3) ###
10WEB: version: 1.6.10, author: 10WEB
backup-wd.php: author: (undefined), version: (undefined)
Elementor Safe Mode: version: 1.0.0, author: Elementor.com### wp-plugins-active (38) ###
Accelerated Mobile Pages: version: 1.0.77.52, author: Ahmed Kaludi, Mohammed Kaludi, Auto-updates disabled
Ad Invalid Click Protector: version: 1.2.7, author: Saumya Majumder, Acnam Infotech, Auto-updates disabled
Advanced Ads: version: 1.37.0, author: Thomas Maier, Advanced Ads GmbH, Auto-updates disabled
Akismet Anti-Spam: version: 5.0.1, author: Automattic, Auto-updates enabled
Anywhere Elementor: version: 1.2.6, author: WPVibes, Auto-updates enabled
Backup by 10Web: version: 5.0.74, author: TenWeb, Auto-updates disabled
BuddyPress: version: 10.4.0, author: The BuddyPress Community, Auto-updates enabled
Elementor: version: 3.7.8, author: Elementor.com, Auto-updates enabled
Elementor Header & Footer Builder: version: 1.6.13, author: Brainstorm Force, Nikhil Chavan, Auto-updates enabled
Ezoic: version: 2.8.6, author: Ezoic Inc., Auto-updates enabled
Getwid: version: 1.8.2, author: MotoPress, Auto-updates enabled
Hustle: version: 7.6.0, author: WPMU DEV, Auto-updates enabled
Kadence Blocks – Gutenberg Blocks for Page Builder Features: version: 2.4.15, author: Kadence WP, Auto-updates enabled
Livemesh Addons for Elementor: version: 7.2.3, author: Livemesh, Auto-updates enabled
MC4WP: Mailchimp for WordPress: version: 4.8.10, author: ibericode, Auto-updates enabled
Menu Icons: version: 0.13.0, author: ThemeIsle, Auto-updates enabled
Otter – Page Builder Blocks & Extensions for Gutenberg: version: 2.0.16, author: ThemeIsle, Auto-updates enabled
PostX – Gutenberg Post Grid Blocks: version: 2.7.4, author: wpxpo, Auto-updates enabled
Pretty Links: version: 3.2.5, author: Pretty Links, Auto-updates enabled
Razorpay for WooCommerce: version: 4.3.3, author: Team Razorpay, Auto-updates enabled
Site Kit by Google: version: 1.85.0, author: Google, Auto-updates disabled
TI WooCommerce Wishlist: version: 2.0.6, author: TemplateInvaders, Auto-updates enabled
Ultimate Member: version: 2.5.0, author: Ultimate Member, Auto-updates enabled
Ultimate Member – reCAPTCHA: version: 2.3.1, author: Ultimate Member, Auto-updates enabled
Unlist Posts & Pages: version: 1.1.9, author: Nikhil Chavan, Auto-updates enabled
UpdraftPlus – Backup/Restore: version: 1.22.23, author: UpdraftPlus.Com, DavidAnderson, Auto-updates enabled
Web Stories: version: 1.25.1, author: Google, Auto-updates disabled
WooCommerce: version: 7.0.0, author: Automattic, Auto-updates enabled
WooCommerce PayPal Payments: version: 1.9.4, author: WooCommerce, Auto-updates enabled
WooCommerce Stripe Gateway: version: 6.8.0, author: WooCommerce, Auto-updates enabled
Wordfence Security: version: 7.7.1, author: Wordfence, Auto-updates enabled
WPCode – Insert Headers, Footers, and Code Snippets: version: 2.0.2, author: WPCode, Auto-updates enabled
WP fail2ban: version: 4.4.0.6, author: Charles Lecklider, Auto-updates enabled
WP File Manager: version: 7.1.6, author: mndpsingh287, Auto-updates disabled
wpForo: version: 2.0.9, author: gVectors Team, Auto-updates enabled
WP Mail SMTP: version: 3.6.1, author: WPForms, Auto-updates enabled
Yoast SEO: version: 19.8, author: Team Yoast, Auto-updates enabled
Youzify: version: 1.2.1, author: KaineLabs, Auto-updates enabled### wp-plugins-inactive (2) ###
10Web Booster: version: 2.6.42, author: 10Web – Website speed optimization team, Auto-updates disabled
OneSignal Push Notifications: version: 2.3.1, author: OneSignal, Auto-updates enabled### wp-media ###
image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1690
imagemagick_version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: File uploads is turned off
post_max_size: 128M
upload_max_filesize: 128M
max_effective_size: 128 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 122 MB
imagick::RESOURCETYPE_DISK: 1073741824
imagick::RESOURCETYPE_FILE: 768
imagick::RESOURCETYPE_MAP: 512 MB
imagick::RESOURCETYPE_MEMORY: 256 MB
imagick::RESOURCETYPE_THREAD: 1
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JBG, JBIG, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: 2.3.3
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: unknown### wp-server ###
server_architecture: Linux 5.15.0-1016-gcp x86_64
httpd_software: nginx/1.21.6
php_version: 7.4.30 64bit
php_sapi: fpm-fcgi
max_input_variables: 10000
time_limit: 300
memory_limit: 256M
max_input_time: 300
upload_max_filesize: 128M
php_post_max_size: 128M
curl_version: 7.68.0 OpenSSL/1.1.1f
suhosin: false
imagick_availability: true
pretty_permalinks: true### wp-database ###
extension: mysqli
server_version: 5.7.33
client_version: mysqlnd 7.4.30
max_allowed_packet: 1073741824
max_connections: 5000### wp-constants ###
WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home/wplive/web/wp-live/wp-content
WP_PLUGIN_DIR: /home/wplive/web/wp-live/wp-content/plugins
WP_MEMORY_LIMIT: 256M
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### buddypress ###
version: 10.4.0
active_components: Community Members, Extended Profiles, Account Settings, Friend Connections, Activity Streams, Notifications, User Groups, Site Tracking
template_pack: BuddyPress Legacy 10.4.0
! hide-loggedout-adminbar: undefined
! bp-disable-account-deletion: No
! bp-disable-avatar-uploads: undefined
! bp-disable-cover-image-uploads: undefined
bp-enable-members-invitations: undefined
bp-enable-membership-requests: undefined
! bp-disable-profile-sync: undefined
! bp_restrict_group_creation: undefined
! bp-disable-group-avatar-uploads: undefined
! bp-disable-group-cover-image-uploads: undefined
! bp-disable-blogforum-comments: No
_bp_enable_heartbeat_refresh: Yes
_bp_enable_akismet: Yes### neve ###
api: Yes
child: No
customizer_css: No### google-site-kit ###
version: 1.85.0
php_version: 7.4.30
wp_version: 6.0.2
reference_url: https://engant.com
amp_mode: secondary
site_status: not-connected
user_status: not authenticated
verification_status: verified-non-site-kit
connected_user_count: 1
active_modules: site-verification, search-console, adsense, analytics, analytics-4, pagespeed-insights
recoverable_modules: none
required_scopes:
openid: ?
https://www.googleapis.com/auth/userinfo.profile: ?
https://www.googleapis.com/auth/userinfo.email: ?
https://www.googleapis.com/auth/siteverification: ?
https://www.googleapis.com/auth/webmasters: ?
https://www.googleapis.com/auth/adsense.readonly: ?
https://www.googleapis.com/auth/analytics.readonly: ?
capabilities:
googlesitekit_authenticate: ?
googlesitekit_setup: ?
googlesitekit_view_posts_insights: ?
googlesitekit_view_dashboard: ?
googlesitekit_manage_options: ?
googlesitekit_view_splash: ?
googlesitekit_view_authenticated_dashboard: ?
googlesitekit_view_wp_dashboard_widget: ?
googlesitekit_view_admin_bar_menu: ?
enabled_features:
adsenseSetupV2: ?
dashboardSharing: ?
ga4ActivationBanner: ?
ideaHubModule: ?
twgModule: ?
userInput: ?
search_console_property: https://engant.com/
adsense_account_id: pub-275?????????????
adsense_client_id: ca-pub-275?????????????
adsense_account_status: approved
adsense_site_status: added
adsense_use_snippet: no
adsense_web_stories_adunit_id: 8568611078
analytics_account_id: 2209?????
analytics_property_id: UA-2209???????
analytics_profile_id: 2635?????
analytics_use_snippet: yes
analytics_4_property_id: 3251780??
analytics_4_web_data_stream_id: 3867??????
analytics_4_measurement_id: G-9N????????
analytics_4_use_snippet: yes### wp_mail_smtp ###
version: 3.6.1
license_key_type: lite
debug: No debug notices found.
lite_install_date: Feb 27, 2022 @ 3:18am### web_stories ###
web_stories_version: 1.25.1
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: Enabled
web_stories_enabled_experiments:
Floating Menu: Enabled
Layer locking: Enabled
Layer grouping: Enabled
Layer naming: Enabled
Context Pages: Enabled
Trim media recording: Enabled
Stickers: Enabled
Improved Autosaves: Enabled
web_stories_libxml_version: 2.9.14`
Thank You
Thank you @amannawaz25 . While we try to evaluate this on our end by testing your plugins from the Site Health info, it might be easiest for you to test this too.
You could do so by disabling all your plugins except Web Stories, then re-enabling them one by one and retesting on the AMP test tool until the error occurs. This way we can find out the exact plugin causing the issue.
@amannawaz25 Just checking in if you had a chance to perform the above test?
@amannawaz25 We will mark your topic as resolved as we haven’t received a response. Please feel free to create a new support topic for any other issues. Thank you!
- The topic ‘AMP Web Story is Invalid’ is closed to new replies.