10up / 10up-experience

The 10up Experience plugin configures WordPress to better protect and inform clients, aligned to 10up’s best practices.
GNU General Public License v2.0
129 stars 27 forks source link

"Production" Warning Appearing in "Non-Production" Environment #162

Closed michael-sumner closed 4 months ago

michael-sumner commented 4 months ago

Describe the bug

This production warning is appearing on a staging (non-prod) environment:

Screenshot_2024-05-10_at_10_52_59 AM

Specifically these issues:

disallow_file_mods is used for us to update plugins on the staging environment as they are premium plugins that require being added on the domain (unfortunately they haven't baked in their code to exclude local/dev environments or environment types).

wp_debug is kept enabled so that we can retrieve a log of issues as they appear on the environment.

Steps to Reproduce

  1. Setup staging environment
  2. Setup Support Monitor with the Slack Channel
  3. Set these values in the wp-config.php file:
define( 'DISALLOW_FILE_MODS', false );
define( 'WP_DEBUG', true );
define( 'SUPPORT_MONITOR_DEBUG', true );
  1. Install the 10up Experience plugin
  2. Visit the Support Monitor settings and set these values

Screenshot_2024-05-10_at_10_53_53 AM

  1. Visit the Support Monitor debug mode at https://staging.example.com/wp-admin/network/settings.php?page=tenup_support_monitor
  2. Click the "Send Test Message" button
  3. The bug will appear as a Slack message

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct