Title: Error when AMP is active
Last modified: March 28, 2022

---

# Error when AMP is active

 *  Resolved [robwilc](https://wordpress.org/support/users/robwilc/)
 * (@robwilc)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-amp-is-active/)
 * Hi,
 * When the plugin is active, my mobile users see this at the top of every post:
 * Notice: Trying to access array offset on value of type null in /home/budegr31to/
   public_html/wp-includes/class-wp-block-supports.php on line 94
 * Same for line 96
 * Any thoughts?
 * Thanks
    Rob
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-amp-is-active%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [robwilc](https://wordpress.org/support/users/robwilc/)
 * (@robwilc)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-amp-is-active/#post-15501513)
 * Oh, and the support id -> ampwp-a98816d7-a052-5a4f-afb1-4c93bc699add
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-amp-is-active/#post-15502022)
 * Hello [@robwilc](https://wordpress.org/support/users/robwilc/)
 * Thank you for the support topic, Along with those notice we are also seeing `
   lang="en-GB">` on the AMP page.
 * A similar topic regarding `lang="en-GB">` was [opened previously](https://wordpress.org/support/topic/the-text-langen-appears-when-using-amp/#post-15386388)
   the user found it was Table of Content plus plugin causing the issues. if you
   are using it please try deactivating it. OR try self debugging using the Health
   and Troubleshooting plugin
 * To narrow down further, could you use the [Health Check & Troubleshooting plugin](https://wordpress.org/plugins/health-check/)
   and enable [its troubleshooting mode](https://make.wordpress.org/support/handbook/appendix/troubleshooting-using-the-health-check/#troubleshooting).
   This mode disables active plugins and switches to a default theme safely since
   it only affects the experience of the logged-in user.
 * – Please [enable the AMP plugin](https://jmp.sh/Zc5YLI9) and let me know if the
   issue is present.
    – Enabling plugins and your theme one by one in this mode 
   may help pinpoint if something else is involved. – Note you can [disable troubleshooting mode](https://jmp.sh/uErQi8t)
   from the plugins page.
 * I will also recommend fixing your custom theme notices such as
 * `[28-Mar-2022 06:02:48 UTC] PHP Notice: Trying to access array offset on value
   of type bool in /home/budegr31t0/public_html/wp-content/themes/bandb/template-
   parts/mini-blog-article-wide.php on line 7`
 * Additionally, [AMP requires](https://amp.dev/documentation/guides-and-tutorials/learn/validation-workflow/validation_errors/?format=websites#invalid-url-protocol)
   using the `https` for your site, your hosting provider may be able to help you
   with that.
 * Hope this helps!
 *  Thread Starter [robwilc](https://wordpress.org/support/users/robwilc/)
 * (@robwilc)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-amp-is-active/#post-15502376)
 * Thanks for the reply …
 * I’m not using the ToC plugin.
 * I’ve installed the Health Check plugin, but when I do this on a mobile device
   the troubleshooting menu is not visible. It’s visible on a desktop version.
 * I can’t ‘immediately’ switch to SSL, unfortunately.
 * So I’m stuck and can’t move forward?
 * Thanks
    Rob
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-amp-is-active/#post-15502465)
 * Hello [@robwilc](https://wordpress.org/support/users/robwilc/)
 * You can use troubleshooting mode using you computer and check the AMP pages by
   adding `?amp=1` as URL parameter
 * Example : [http://budeandbeyond.co.uk/how-hard-is-it-to-find-a-nhs-dentist/?amp=1](http://budeandbeyond.co.uk/how-hard-is-it-to-find-a-nhs-dentist/?amp=1)
 * That being said you can turn off the Debug log from displaying on your site by
   adding the following code in your wp-config.php file
 *     ```
       define( 'WP_DEBUG', false );
       define( 'WP_DEBUG_LOG', false );
       define( 'WP_DEBUG_DISPLAY', false );
       @ini_set( 'display_errors', 0 );
       ```
   
 * This will just hide the notices but won’t fix them.
 * You can find more information in [WordPress Debugging guide](https://wordpress.org/support/article/debugging-in-wordpress/)
 * Hope this is helpful!
 *  Thread Starter [robwilc](https://wordpress.org/support/users/robwilc/)
 * (@robwilc)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-amp-is-active/#post-15505181)
 * Thanks for the extra assistance.
 * I’ve narrowed it down to the issue appears (and disappears) when AMP and Jetpack
   are enabled.
 * With just AMP => everything is fine.
    With just Jetpack => everything is fine
   With both => I see the errors I mentioned.
 * What’s the best course of action?
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-amp-is-active/#post-15505687)
 * [@robwilc](https://wordpress.org/support/users/robwilc/) Thank you for further
   investigation, If there is conflict between jetpack OR AMP we will investigate
   and patch whichever plugin needs fixing
 * can you please let us know the jetpack modules active on your site (are you using
   premium features)?
 *  Thread Starter [robwilc](https://wordpress.org/support/users/robwilc/)
 * (@robwilc)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-amp-is-active/#post-15505818)
 * I am not using premium features of Jetpack.
 * I think I have:
 * – anti-spam
    – brute force protection – sharing (auto share to social media) –
   show related content
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-amp-is-active/#post-15506057)
 * Hello [@robwilc](https://wordpress.org/support/users/robwilc/)
 * Thank you for the additional details, I will now investigate if there is any 
   conflict exists.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-amp-is-active/#post-15532997)
 * [@robwilc](https://wordpress.org/support/users/robwilc/)
 * As, I further investigate we find the issue may be caused by related posts module
   of Jetpack. I have reported that in their [support forums](https://wordpress.org/support/topic/php-8-1-warning-with-amp/)
   hopefully they will fix it.
 * I’ll mark this as resolved. Feel free to open a [new support topic](https://wordpress.org/support/plugin/amp/#new-post)
   if you require any further assistance.

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

The topic ‘Error when AMP is active’ 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/)

 * 9 replies
 * 2 participants
 * Last reply from: [Milind More](https://wordpress.org/support/users/milindmore22/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/error-when-amp-is-active/#post-15532997)
 * Status: resolved