Title: Enable Ability To Edit PHP Files Problem
Last modified: August 31, 2016

---

# Enable Ability To Edit PHP Files Problem

 *  Resolved [emadfathy](https://wordpress.org/support/users/emadfathy/)
 * (@emadfathy)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/enable-ability-to-edit-php-files-problem/)
 * Hello,
 * I have AIO WP Security ver: 4.1.0. I have set the option “Disable Ability To 
   Edit PHP Files” before, now I want to uncheck this option but it would not work.
   After unchecking and saving it returns after page refresh.
 * Is there an option i can modify it manually in the database until you fix the
   plugin?
 * [https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)

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

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/enable-ability-to-edit-php-files-problem/#post-7425666)
 * Hi, can you carry out the following test. Can you disable all your other plugins
   except this one and try to save the settings again.
 *  [Česlav Przywara](https://wordpress.org/support/users/chesio/)
 * (@chesio)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/enable-ability-to-edit-php-files-problem/#post-7425745)
 * Hi emadfathy,
 * The “[Disable File Editing](https://codex.wordpress.org/Hardening_WordPress#Disable_File_Editing)”
   option is not saved in database, but in `wp-config.php` file. If you cannot change
   this option via plugin interface, you can edit the file yourself – you only need
   to remove the following line (or replace `true` with `false`):
 *     ```
       define('DISALLOW_FILE_EDIT', true);
       ```
   
 * Cheers,
    Česlav
 *  [DesignsByArchie](https://wordpress.org/support/users/designsbyarchie/)
 * (@designsbyarchie)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/enable-ability-to-edit-php-files-problem/#post-8324679)
 * Hello,
 * I am also having the same problem. I edited the wp-config as instructed but it
   did not work. I then replaced all core wp files (except wp-config) and deleted
   the plugin and still I cannot access the editor.
 * Any advice?
 * Thank you,
    Archie
 *  [Česlav Przywara](https://wordpress.org/support/users/chesio/)
 * (@chesio)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/enable-ability-to-edit-php-files-problem/#post-8330324)
 * Hi Archie,
 * If there’s no `define('DISALLOW_FILE_EDIT', true);` line in your _wp-config.php_
   file, then perhaps some other plugin is hiding editor page in admin menu. Can
   you try, if you can access _[http://www.example.com/wp-admin/plugin-editor.php](http://www.example.com/wp-admin/plugin-editor.php)_
   directly? Of course, replace “[http://www.example.com/&#8221](http://www.example.com/&#8221);
   with your site address.
 * Cheers,
    Česlav
    -  This reply was modified 9 years, 6 months ago by [Česlav Przywara](https://wordpress.org/support/users/chesio/).
 *  [DesignsByArchie](https://wordpress.org/support/users/designsbyarchie/)
 * (@designsbyarchie)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/enable-ability-to-edit-php-files-problem/#post-8330504)
 * Unfortunately, it is still not working. I disabled all plugins and tried to manually
   navigate to the editor and still nothing. 🙁 I even tried to check the functions.
   php file of the theme and nothing there either.
 *  [DesignsByArchie](https://wordpress.org/support/users/designsbyarchie/)
 * (@designsbyarchie)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/enable-ability-to-edit-php-files-problem/#post-8330657)
 * I found the issue but not sure what caused it. Many of my php files were compromised
   recently due to a weird wordpress hack. One I’ve never encountered before. I 
   cleaned all files (so I thought) but saw my “elegant themes updater” and “elegant
   themes support” plugins both contained the malicious code. I removed it and saved
   and the editor reappeared. Not sure what in all in one read that code to disable
   the editor because the initial hack did not do that but the issue seems to be
   resolved now.
 * I had all in one installed when the hack got through initially and I can post
   the malicious code if it may help you improve the plugin. I enable a few more
   security features of the plugin since the hack so hopefully it will be fine now.
 * Thank you,
    Archie WhatsTheMove.com

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

The topic ‘Enable Ability To Edit PHP Files Problem’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

## Tags

 * [all in one wp security firewall](https://wordpress.org/support/topic-tag/all-in-one-wp-security-firewall/)
 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 6 replies
 * 4 participants
 * Last reply from: [DesignsByArchie](https://wordpress.org/support/users/designsbyarchie/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/enable-ability-to-edit-php-files-problem/#post-8330657)
 * Status: resolved