Conversation
supportAfter 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
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); }
Yes, it looks like your image. No other security plugin installed. need to check wp-config.
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.
Hi @viche Glad to know issue is identified. Would you mind writing a quick five-star review on wordpress.org? https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/#new-post Reviews also help others to make confident decisions about our plugin. Regards
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); }
Yes, it looks like your image. No other security plugin installed. need to check wp-config.
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.
Hi @viche Glad to know issue is identified. Would you mind writing a quick five-star review on wordpress.org? https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/#new-post Reviews also help others to make confident decisions about our plugin. Regards