• Resolved dontwakeme

    (@dontwakeme)


    We run several seperate instances of wordpress mutlipress on different servers and over the last weekend on all installs the check mark in user settings
    “Enable AMP developer tools to surface validation errors when editing posts and viewing the site. ” for our admin users was suddenly gone, without us having any changes made. The rest of the installs are perfectly fine and seem unchanged. I have ticked the check box again and now we see error index and valited URLs as before but it is kinda strange to see this happen.
    Could this be due to a failed wordpress auto-upate or do you have any idea how this could have happend?

    thanks for your time and help!

    • This topic was modified 4 years ago by dontwakeme.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    The checkbox was “gone” as in the checkbox got unexpectedly unchecked?

    Thread Starter dontwakeme

    (@dontwakeme)

    Yes the check mark was gone – the box was still there.

    Plugin Author Weston Ruter

    (@westonruter)

    That’s strange.

    Whether or not the checkbox is checked is determined by this logic here:

    https://github.com/ampproject/amp-wp/blob/6922a6f39028ecd5a4f66a5adcc498d5f40db99b/src/DevTools/UserAccess.php#L48-L96

    There is a amp_dev_tools_enabled user meta field which stores whether or not the user had enabled developer tools. If the user hadn’t indicated a preference, then the default is to have developer tools enabled, unless the site is in Reader mode. The default for whether developer tools is enabled can also be overridden with the amp_dev_tools_user_default_enabled filter.

    Did you switch the template modes to Reader?

    Thread Starter dontwakeme

    (@dontwakeme)

    Thx for the info. The template mode has been set to Reader for a long time and has not been changed. I will keep an eye on it and let you know if it happens again. For now I think we can close this ticket since I am not sure for I am able to reproduce the problem.
    thanks for your replies!

    Plugin Author Weston Ruter

    (@westonruter)

    If you recently updated the AMP plugin from 2.0.0 to v2.0.1 or later, then Developer Tools have been disabled by default in Reader mode whereas in 2.0.0 they were enabled by default. See https://github.com/ampproject/amp-wp/pull/5333

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘AMP Developer Tools checkmark suddenly vanished’ is closed to new replies.