• Resolved robwilc

    (@robwilc)


    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 to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter robwilc

    (@robwilc)

    Oh, and the support id -> ampwp-a98816d7-a052-5a4f-afb1-4c93bc699add

    Plugin Support Milind More

    (@milindmore22)

    Hello @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 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 and enable its troubleshooting mode. 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 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 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 using the https for your site, your hosting provider may be able to help you with that.

    Hope this helps!

    Thread Starter robwilc

    (@robwilc)

    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

    (@milindmore22)

    Hello @robwilc

    You can use troubleshooting mode using you computer and check the AMP pages by adding ?amp=1 as URL parameter

    Example : https://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

    Hope this is helpful!

    Thread Starter robwilc

    (@robwilc)

    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

    (@milindmore22)

    @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

    (@robwilc)

    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

    (@milindmore22)

    Hello @robwilc

    Thank you for the additional details, I will now investigate if there is any conflict exists.

    Plugin Support Milind More

    (@milindmore22)

    @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 hopefully they will fix it.

    I’ll mark this as resolved. Feel free to open a new support topic 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.