Why can’t I edit email templates in my MainWP Dashboard?

Available with the following:
MainWP Core
Table of Contents

In certain cases, when attempting to edit email templates in your MainWP Dashboard (such as the template used for Uptime Monitoring notifications), the changes may not be saved and the content resets after refreshing the page.

This behavior is caused by a WordPress configuration constant defined in your site’s wp-config.php file:

define('DISALLOW_FILE_EDIT', true);

This setting disables the ability to modify theme and plugin files through the WP Admin interface, which also impacts the ability to edit email template files via the MainWP Dashboard GUI.

How to Identify if This is Enabled

You can tell that file editing is disabled if you do not see these options in the WP Admin of your Dashboard site:

  • Plugins > Plugin File Editor
  • Appearance > Theme File Editor

How to Fix It

To enable email template editing via the Dashboard interface, you need to remove or set this constant to false in your wp-config.php file.

  1. Connect to your Dashboard site via FTP or file manager.
  2. Open the wp-config.php file.
  3. Look for the line that says:
  4. define('DISALLOW_FILE_EDIT', true);
  5. Either remove the line completely, or change true to false:
    define('DISALLOW_FILE_EDIT', false);
Still Have Questions?
Search for additional solutions in the MainWP Community or start your own discussion
MainWP Community

Table of Contents

Search MainWP.com

[searchwp_form id="1"]