First WebStory AMP Issues
-
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 allowedPlease help! Thank you!
The page I need help with: [log in to see the link]
-
@jhardin01 Hello there. Web Stories are powered by AMP, which adds some restrictions on a page’s allowed markup. For Web Stories to be eligible to appear on Google Search or Google Discover experiences, they need to adhere to various AMP specifications.
In some cases, other WordPress plugins can interfere with stories and insert disallowed markup, causing AMP validation issues.
If you’d like to share your Site Health information, I’d be happy to check for any obvious plugins that could be causing this conflict. In your WP Admin Menu, can you navigate to Tools > Site Health > Info tab > Copy info to clipboard? You can share privately if you prefer.
Thank you for that explanation!! I have copied and pasted below the Site Health info! ### wp-core ### version: 5.9.2 site_language: en_US user_language: en_US timezone: +00:00 permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 3 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /var/cache/wordpress-sources/5.9.2 wordpress_size: 5.35 GB (5746539606 bytes) uploads_path: /var/www/volumes/xvdi/vhosts/jordibhealthandfitness.com/httpdocs/wp-content/uploads uploads_size: 806.47 MB (845643312 bytes) themes_path: /var/www/volumes/xvdi/vhosts/jordibhealthandfitness.com/httpdocs/wp-content/themes themes_size: 47.84 MB (50162122 bytes) plugins_path: /var/www/volumes/xvdi/vhosts/jordibhealthandfitness.com/httpdocs/wp-content/plugins plugins_size: 89.52 MB (93873243 bytes) database_size: 50.58 MB (53035594 bytes) total_size: 6.32 GB (6789253877 bytes) ### wp-active-theme ### name: GeneratePress (generatepress) version: 3.1.3 author: Tom Usborne author_website: https://tomusborne.com parent_theme: none theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, post-thumbnails, post-formats, woocommerce, title-tag, html5, customize-selective-refresh-widgets, align-wide, responsive-embeds, editor-color-palette, custom-logo, menus, editor-styles, editor-style, widgets theme_path: /var/www/volumes/xvdi/vhosts/jordibhealthandfitness.com/httpdocs/wp-content/themes/generatepress auto_update: Disabled ### wp-themes-inactive (3) ### Divi: version: 4.10.8, author: Elegant Themes, Auto-updates disabled Twenty Twenty-One: version: 1.1, author: the WordPress team (latest version: 1.5), Auto-updates disabled Twenty Twenty-Two: version: 1.0, author: the WordPress team (latest version: 1.1), Auto-updates disabled ### wp-mu-plugins (1) ### WP REST API - OAuth 1.0a Server: version: 0.3.0, author: WP REST API Team ### wp-plugins-active (15) ### ConvertKit: version: 1.9.7.3, author: ConvertKit, Auto-updates disabled Ezoic: version: 2.6.33, author: Ezoic Inc. (latest version: 2.6.34), Auto-updates disabled GenerateBlocks: version: 1.4.2, author: Tom Usborne, Auto-updates disabled Grow Social Pro by Mediavine: version: 2.15.1, author: Mediavine, Auto-updates disabled Insert Headers and Footers: version: 1.6.0, author: WPBeginner, Auto-updates disabled MC4WP: Mailchimp for WordPress: version: 4.8.7, author: ibericode, Auto-updates disabled PixelYourSite: version: 8.2.18, author: PixelYourSite, Auto-updates disabled PixelYourSite Pinterest: version: 3.2.9, author: PixelYourSite, Auto-updates disabled ProfilePress: version: 3.2.9, author: ProfilePress Team (latest version: 3.2.10), Auto-updates disabled Web Stories: version: 1.19.0, author: Google, Auto-updates disabled WP Canvas - Widgets: version: 1.7, author: Chris Baldelomar, Auto-updates disabled WP File Manager: version: 7.1.4, author: mndpsingh287, Auto-updates disabled WP Recipe Maker: version: 8.1.1, author: Bootstrapped Ventures, Auto-updates disabled WP Show Posts: version: 1.1.3, author: Tom Usborne, Auto-updates disabled Yoast SEO: version: 18.4.1, author: Team Yoast (latest version: 18.5.1), Auto-updates disabled ### wp-plugins-inactive (4) ### Ads for WP - Advanced Ads & Adsense Solution for WP & AMP: version: 1.9.16.2, author: Magazine3, Auto-updates disabled Kraken Image Optimizer: version: 2.6.5, author: Karim Salman, Auto-updates disabled Menu Image: version: 3.0.8, author: Freshlight Lab, Auto-updates disabled Smart Slider 3: version: 3.5.1.4, author: Nextend, Auto-updates disabled ### 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.4.4 file_uploads: File uploads is turned off post_max_size: 64M upload_max_filesize: 64M max_effective_size: 64 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: 4 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, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HEIC, 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, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, 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, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV gd_version: bundled (2.1.0 compatible) gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM ghostscript_version: unknown ### wp-server ### server_architecture: Linux 4.19.1 x86_64 httpd_software: Apache/2.4.37 (Debian) php_version: 7.4.16 64bit php_sapi: fpm-fcgi max_input_variables: 1000 time_limit: 30 memory_limit: 256M max_input_time: 60 upload_max_filesize: 64M php_post_max_size: 64M curl_version: 7.62.0 OpenSSL/1.1.1c suhosin: false imagick_availability: true pretty_permalinks: true ### wp-database ### extension: mysqli server_version: 10.3.10-MariaDB-log client_version: mysqlnd 7.4.16 max_allowed_packet: 16777216 max_connections: 200 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /var/www/volumes/xvdi/vhosts/jordibhealthandfitness.com/httpdocs/wp-content WP_PLUGIN_DIR: /var/www/volumes/xvdi/vhosts/jordibhealthandfitness.com/httpdocs/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: not writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: not writable ### web_stories ### web_stories_version: 1.19.0 web_stories_db_version: 3.0.14 web_stories_amp_version: 2.3.0-alpha web_stories_cdn_url: https://wp.stories.google/static/15 web_stories_dev_mode: false web_stories_theme_support: Disabled web_stories_enabled_experiments: Story locking: Enabled CORS check: Enabled Updated Publish Story Modal: Enabled Custom Fonts: Enabled Page Background Audio: Enabled Floating Menu: Enabled Deleted Fonts: Enabled web_stories_libxml_version: 2.9.4
@jhardin01 Thank you for submitting your Site Health information.
Would you be able to disable your theme and then switch to a default theme like Twenty Twenty-One just for a brief moment to rule out your theme as a possible conflict? Please also disable the Ezoic plugin. Once you disable it briefly, test your story URL at https://search.google.com/test/amp, then let me know if there are still any validation errors.
The only error left is “Custom javascript not allowed.”
Is there a way to NOT change my theme though? I have Ezoic ads running on and I got an error message about changing it.
I have changed it back to Generate Press for now
I ran a test on my normal theme too and the only error is “custom javascript not allowed,” but in the google search console i get all the other amp errors
Are there any updates to how I fix this?
Thanks!
@jhardin01 Hi there. The issue is that one of your plugins is inserting custom JavaScript, which is not allowed in AMP/Web Stories. We are continuing to test on our end, but it is best if you can test on your end as well.
To identify which one is the culprit, you’ll have to disable your plugins one by one and retest the story in the AMP validator.
For example, disable the “Insert Headers and Footers” plugin then check for any validation errors. If the error persists, reenable that plugin then disable another plugin like Grow Social Pro and do the same until the error subsides.
Thank you, I will try that.
Is that just the correction for the javascript error, or should that correct all the errors?
@jhardin01 It seems after you disabled your theme, three of the four validation errors were resolved, and we can suspect your theme is the culprit for those.
We are now trying to identify which plugin is causing the javascript error.
I am back to my original theme. I really don’t think I should have to change my theme, it’s premium and I have ads on it.
How can I fix it without theme changing?
Update! I did delete some plugins I don’t use (while staying on my current theme) and now I only get the javascript error. The others have gone away
@jhardin01 The Web Stories plugin itself doesn’t do anything with the theme, but that doesn’t mean that there can’t be conflicts and incompatibilities. This kind of troubleshooting can get pretty complicated and technical, so I think the best next step here is to contact your theme developer to see if they can help (with those three errors), as they know their theme’s code and where possible conflicts could exist.
@jhardin01 Thanks for the update. I know you mentioned deleting some plugins, but were you able to disable plugins one at a time to test the custom javascript error?
When testing your story URL all of the validation errors still occur: https://search.google.com/test/amp/result?id=LlTkcY7Y2Wcs2A1XMvTnoQ
Yes, they came back. I deactivated each plugin one by one and ran the tests and no luck.
Web developer said should not be an issue with the theme. can it be fixed with an AMP plugin?
- The topic ‘First WebStory AMP Issues’ is closed to new replies.