Title: AMP Scan Errors
Last modified: April 2, 2024

---

# AMP Scan Errors

 *  Resolved [carmz23](https://wordpress.org/support/users/carmz23/)
 * (@carmz23)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/amp-scan-errors/)
 * Hi there, the AMP Scan keeps failing and showing errors. What’s causing this?
 * Support UUID: ampwp-6ff7e988-abaf-5f9b-bb56-d5e52488410d
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-scan-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/amp-scan-errors/#post-17545306)
 * Hello [@carmz23](https://wordpress.org/support/users/carmz23/)
 * Thank you for reaching out to us, it may be an issue or conflict with Litespeed
   plugin which is adding comments in JSON response.
 * Can you please add the following code snippet to your active theme’s functions.
   php file or in the custom plugin and check if that works for you?
 * `add_filter( 'litespeed_comment', '__return_false' );`
 * I hope this is helpful!
 *  Thread Starter [carmz23](https://wordpress.org/support/users/carmz23/)
 * (@carmz23)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/amp-scan-errors/#post-17550023)
 * Hi [@milindmore22](https://wordpress.org/support/users/milindmore22/)
 * I’m not sure where I’m supposed to place the snippet within the functions.php
   file. I appreciate the help.
 *     ```wp-block-code
       <?php
       /**
        * Blossom Floral functions and definitions
        *
        * @link https://developer.wordpress.org/themes/basics/theme-functions/
        *
        * @package Blossom_Floral
        */
   
       $blossom_floral_theme_data = wp_get_theme();
       if( ! defined( 'BLOSSOM_FLORAL_THEME_VERSION' ) ) define( 'BLOSSOM_FLORAL_THEME_VERSION', $blossom_floral_theme_data->get( 'Version' ) );
       if( ! defined( 'BLOSSOM_FLORAL_THEME_NAME' ) ) define( 'BLOSSOM_FLORAL_THEME_NAME', $blossom_floral_theme_data->get( 'Name' ) );
       if( ! defined( 'BLOSSOM_FLORAL_THEME_TEXTDOMAIN' ) ) define( 'BLOSSOM_FLORAL_THEME_TEXTDOMAIN', $blossom_floral_theme_data->get( 'TextDomain' ) );   
   
       /**
        * Custom Functions.
        */
       require get_template_directory() . '/inc/custom-functions.php';
   
       /**
        * Standalone Functions.
        */
       require get_template_directory() . '/inc/extras.php';
   
       /**
        * Template Functions.
        */
       require get_template_directory() . '/inc/template-functions.php';
   
       /**
        * Custom functions for selective refresh.
        */
       require get_template_directory() . '/inc/partials.php';
   
       /**
        * Fontawesome
        */
       require get_template_directory() . '/inc/fontawesome.php';
   
       /**
        * Custom Controls
        */
       require get_template_directory() . '/inc/custom-controls/custom-control.php';
   
       /**
        * Customizer additions.
        */
       require get_template_directory() . '/inc/customizer/customizer.php';
   
       /**
        * Widgets
        */
       require get_template_directory() . '/inc/widgets.php';
   
       /**
        * Metabox
        */
       require get_template_directory() . '/inc/metabox.php';
   
       /**
        * Typography Functions
        */
       require get_template_directory() . '/inc/typography.php';
   
       /**
        * Dynamic Styles
        */
       require get_template_directory() . '/css/style.php';
   
       /**
        * Plugin Recommendation
       */
       require get_template_directory() . '/inc/tgmpa/recommended-plugins.php';
   
       /**
        * Getting Started
       */
       require get_template_directory() . '/inc/getting-started/getting-started.php';
   
       /**
        * Add theme compatibility function for woocommerce if active
       */
       if( blossom_floral_is_woocommerce_activated() ){
           require get_template_directory() . '/inc/woocommerce-functions.php';    
       }
   
       /**
        * Add theme compatibility function for blossom themes newsletter if active
       */
       if( blossom_floral_is_btnw_activated() ){
           require get_template_directory() . '/inc/newsletter-functions.php';    
       }
   
       /**
        * Add theme compatibility function for blossom themes toolkit if active
       */
       if( blossom_floral_is_bttk_activated() ){
           require get_template_directory() . '/inc/toolkit-functions.php';    
       }
   
       /**
        * Implement Local Font Method functions.
        */
       require get_template_directory() . '/inc/class-webfont-loader.php';
       ```
   
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/amp-scan-errors/#post-17550608)
 * [@carmz23](https://wordpress.org/support/users/carmz23/)
 * Please add it at the end of the file. You may find the [guide](https://www.wpbookingsystem.com/documentation/adding-code-snippets-to-your-themes-functions-php-file/)
   useful
 *  Thread Starter [carmz23](https://wordpress.org/support/users/carmz23/)
 * (@carmz23)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/amp-scan-errors/#post-17560841)
 * Hi [@milindmore22](https://wordpress.org/support/users/milindmore22/)
 * The snippet doesn’t seem to work, so I had a look into the plugins and themes
   involved, and 12 of them that are needed for my theme seem not to be compatible,
   which is strange because this particular Amp scan came with the theme to download.
   That being said, would you be able to suggest other Amp Scans that’ll work with
   my plugins?
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/amp-scan-errors/#post-17561679)
 * Hello [@carmz23](https://wordpress.org/support/users/carmz23/)
 * Thank you for getting back to us, You can also use the AMP validation tool to
   locate validation issues with the theme or plugin, please check [our documentation](https://amp-wp.org/documentation/getting-started/developer-tools/)
   to learn more about it.
 * If your theme or plugin functionalities do not break on the AMP page, then you
   don’t need to take any action.
 * If your theme or plugin functionalities are breaking, please do the following:
 * 1) Contact your theme/plugin author and ask them to make their product AMP compatible.
 * 2) Find a Mini plugin or add-on from our website, which resolves particular issues.
 * 3) Switch to an alternate plugin / theme, you can find on our [ecosystem](https://amp-wp.org/ecosystem/)
   page.
 * We hope this helps!
 *  Thread Starter [carmz23](https://wordpress.org/support/users/carmz23/)
 * (@carmz23)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/amp-scan-errors/#post-17679904)
 * Hi [@milindmore22](https://wordpress.org/support/users/milindmore22/)
 * Ok great thanks, i’ll give those that you mentioned a try.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/amp-scan-errors/#post-17695719)
 * [@carmz23](https://wordpress.org/support/users/carmz23/) Glad our suggestion 
   is helpful, I’ll mark this as resolved Open a [new support topic](https://wordpress.org/support/plugin/amp/#new-topic-0)
   if you face further issues, also feel free to [leave a plugin review](https://wordpress.org/support/plugin/amp/reviews/#new-post),
   we would love to hear your feedback.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘AMP Scan Errors’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Milind More](https://wordpress.org/support/users/milindmore22/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/amp-scan-errors/#post-17695719)
 * Status: resolved