• Resolved viche

    (@viche)


    After installing the plugin on new sites I always turns “Disable ability to edit PHP files” ON.
    Sometimes I temporarily switch it OFF and it has never been a problem.

    Recently I start to got this message on several sites when turning it OFF:
    The DISALLOW_FILE_EDIT constant has already been defined, please remove it before enabling this feature.
    The constant is likely already defined in your wp-config.php file.

    I have verified this on several sites running on different hosts with different themes.

    Please advice. Thanks in advance.

    //Niclas

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @viche,

    AIOS > File security > File protection tab can you see the warning as below image ? Please cross check your wp-config.php file.

    The DISALLOW_FILE_EDIT constant has already been defined, please remove it before enabling this feature.
    The constant is likely already defined in your wp-config.php file.

    https://snipboard.io/3xsDKC.jpg

    Do you have any another security plugin installed? It might be DISALLOW_FILE_EDIT being added.

    AIOS adds below code to wp-config.php

    //Disable File Edits
    if (!defined('DISALLOW_FILE_EDIT')) { define('DISALLOW_FILE_EDIT', true); }
    Thread Starter viche

    (@viche)

    Yes, it looks like your image. No other security plugin installed. need to check wp-config.

    Thread Starter viche

    (@viche)

    Hi! I apologize. I was wrong. It was the Patchstack plugin that was the cause. In their cloud settings there was the setting. However, it was designed with such language that I missed it. Of course my fault.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @viche

    Glad to know issue is identified.

    Would you mind writing a quick five-star review on ww.wp.xz.cn?

    https://ww.wp.xz.cn/support/plugin/all-in-one-wp-security-and-firewall/reviews/#new-post

    Reviews also help others to make confident decisions about our plugin.

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.