• After installing Itheme Security plugin I was trying to save settings in the notification center. I got an error there saying : “An unknown error prevented the request from completing as expected. This could be due to a plugin/theme conflict or a server configuration issue.” Then I started to get permanent php error Constant DISALLOW_FILE_EDIT already defined in the file wp-config.php. It slows my website. What can be trigger the problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Timothy Jacobs

    (@timothyblynjacobs)

    Hi @igorlop99,

    It sounds like both iThemes Security and another plugin or another code snippet are both trying to disable the built-in WordPress File Editor.

    One way you can fix this is by editing your wp-config.php file. You should see a section of code that looks like this:


    // BEGIN iThemes Security - Do not modify or remove this line
    // iThemes Security Config Details: 2
    define( 'DISALLOW_FILE_EDIT', true ); // Disable File Editor - Security > Settings > WordPress Tweaks > File Editor
    // END iThemes Security - Do not modify or remove this line

    Elsewhere in the file you should see another bit of code that looks like define( 'DISALLOW_FILE_EDIT', true );. I’d remove this second bit of code so iThemes Security can manage disabling the File Editor itself.

    Alternatively, you can go to “Advanced” in the left-side menu, go to WordPress Tweaks, and uncheck the “Disable File Editor” option.

    Hi Timothy I also am having the same trouble as igor.

    Wondering if the plugin can be updated to check !defined before trying to define DISALLOW_FILE_EDIT this would prevent the issue from arising every update, and also ensure that the configuration from ithemes cannot be changed to remove it, since it has already been hardcoded somewhere else within the config.

    This was specifically a problem with Roots.io Bedrock as a framework since it has this built in for production sites.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘An error occurs after I installed the plugin’ is closed to new replies.