• Resolved chaudhry111

    (@chaudhry111)


    Hello
    I have been using AMP pluging for a long time without any issues but recently I have come across this issue(site scan was unsuccessful). Kindly help
    ampwp-17c0f691-f9c2-5a5d-b0e3-ecd836236ffa
    Best regards

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @chaudhry111

    Thank you for the support topic, it seems that the LiteSpeed cache is conflicting with the Site scan feature we are investigating the issue.

    In the meantime, I will recommend trying another Cache plugin, such as WP Super Cache, W3 Total cache (they have an add-on for AMP)

    Hope this helps!

    Plugin Support Milind More

    (@milindmore22)

    Hello @chaudhry111

    Thank you for the support topic, We found the issue LiteSpeed Cache plugin is appending comments such as <!-- Page generated by LiteSpeed Cache 4.4.6 on 2022-01-07 13:33:44 --> in JSON response which is breaking response.

    Please add the following code snippet to suppress the comment in your active theme’s functions.php (preferable child theme) or in a custom plugin using FTP or Tools such as Cpanel

    Code snippet:

    add_filter( 'litespeed_comment', '__return_false' );

    Hope this helps!

    Thread Starter chaudhry111

    (@chaudhry111)

    The code provided by you has resolved the issue.
    Thank you very much for the wonderful support.

    Plugin Author Weston Ruter

    (@westonruter)

    I thought LightSpeed fixed this issue. It should only be appending that HTML comment of the Content-Type is text/html.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘AMP site scanning failed’ is closed to new replies.