Title: Undefined array key &#8220;DISALLOW_FILE_EDIT&#8221;
Last modified: October 15, 2024

---

# Undefined array key “DISALLOW_FILE_EDIT”

 *  Resolved [Daniel](https://wordpress.org/support/users/dsnger/)
 * (@dsnger)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/)
 * Undefined array key “DISALLOW_FILE_EDIT” in **../wp-content/plugins/admin-site-
   enhancements/classes/class-wp-config-transformer.php** on line **199**
   Trying
   to access array offset on value of type null in …
 * Error appears after turning Media Replacement on. But it´s not disappearing when
   turning of.

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

 *  [DJABHipHop](https://wordpress.org/support/users/pressthemes1/)
 * (@pressthemes1)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18074864)
 * Undefined index: DISALLOW_FILE_EDITPlugin: [Admin and Site Enhancements (ASE)](https://www.wpase.com/plugin-uri)
   
   File: [/wp-content/plugins/admin-site-enhancements/classes/class-wp-config-transformer.php](http://192.168.1.86:82/WP_Portfoilo/wp-admin/plugin-editor.php?file=admin-site-enhancements%2Fclasses%2Fclass-wp-config-transformer.php&plugin=admin-site-enhancements%2Fadmin-site-enhancements.php)
   Line: 199
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18075369)
 * [@dsnger](https://wordpress.org/support/users/dsnger/) [@pressthemes1](https://wordpress.org/support/users/pressthemes1/)
   thank you for reporting this. Please install the following v7.4.7 that contains
   a possible fix for the issue: [https://www.wpase.com/sdc_download/1470/?key=ojm119l9rwh5op45ym6qn6t2z6ew6x](https://www.wpase.com/sdc_download/1470/?key=ojm119l9rwh5op45ym6qn6t2z6ew6x)
   and report back if it indeed fixes the issue, so I can include the fix in the
   next release. Thanks!
 *  Thread Starter [Daniel](https://wordpress.org/support/users/dsnger/)
 * (@dsnger)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18075918)
 * I defined the constant DISALLOW_FILE_EDIT in my wp-config.php, which was not,
   than the error was gone.
   I´ll check your fix soon. Thanks for your fast response.
    -  This reply was modified 1 year, 7 months ago by [Daniel](https://wordpress.org/support/users/dsnger/).
 *  [Ben1098765](https://wordpress.org/support/users/ben1098765/)
 * (@ben1098765)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18081398)
 * I’ve just had this show up in my admin too. I was previously working on a staging
   instance, ported the site back to a local instance (using All-in-One Migration
   if relevant), and found this in the local instance. Both the staging and local
   were on 7.4.7.
 * The staging still doesn’t have the message.
 *  [Ben1098765](https://wordpress.org/support/users/ben1098765/)
 * (@ben1098765)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18081437)
 * FYI, appears Media Library is also broken unless I deactivate ASE: [https://ibb.co/gF0FGR9](https://ibb.co/gF0FGR9)
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18081626)
 * [@ben1098765](https://wordpress.org/support/users/ben1098765/) which local WP
   environment / app do you use? Can you check if wp-config.php is in the same root
   folder as /wp-admin/ and /wp-includes/?… and can you check if DISALLOW_FILE_EDIT
   is already defined there or not?
 * Your link to the ibb.co screenshot is broken / does not contain any image/video.
 *  Thread Starter [Daniel](https://wordpress.org/support/users/dsnger/)
 * (@dsnger)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18081647)
 * For me, fix was working. Removed the constant from wp-config.php and error message
   wasn´t showing up. Thanks
 *  [Ben1098765](https://wordpress.org/support/users/ben1098765/)
 * (@ben1098765)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18081834)
 * Oh sorry, you know what, I misread your comment Bowo; I thought 7.4.7 was the
   fix. My bad. I downloaded the fixed plugin you referred to and the error has 
   indeed gone.
 * If it helps, I’m using LocalWP on a Mac, wp-config in the root folder as standard,
   and no, DISALLOW_FILE_EDIT is not defined in there.
 * So what whatever you did gets the green-light from me! Thanks for the great plugin
   👍 Made my life a lot easier over the past 8 months!
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18084756)
 * [@dsnger](https://wordpress.org/support/users/dsnger/) thanks for confirming 
   the fix. [@ben1098765](https://wordpress.org/support/users/ben1098765/) no problem.
   v7.4.8 was just released with the fix included. Glad to hear ASE has made your
   life a lot easier for the past 8 months!!! Would you be so kind as to [quickly writing that as a review](https://wordpress.org/support/plugin/admin-site-enhancements/reviews/#new-post)
   for ASE? That will help ASE reach more users. Thanks!
 *  [Ben1098765](https://wordpress.org/support/users/ben1098765/)
 * (@ben1098765)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18095786)
 * Done with thanks [@qriouslad](https://wordpress.org/support/users/qriouslad/)
   😊
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18095823)
 * [@ben1098765](https://wordpress.org/support/users/ben1098765/) awesome! Thanks
   for the nice review!

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

The topic ‘Undefined array key “DISALLOW_FILE_EDIT”’ is closed to new replies.

 * ![](https://ps.w.org/admin-site-enhancements/assets/icon-256x256.png?rev=3099794)
 * [Admin and Site Enhancements (ASE)](https://wordpress.org/plugins/admin-site-enhancements/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/admin-site-enhancements/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/admin-site-enhancements/)
 * [Active Topics](https://wordpress.org/support/plugin/admin-site-enhancements/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/admin-site-enhancements/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/admin-site-enhancements/reviews/)

 * 11 replies
 * 4 participants
 * Last reply from: [Bowo](https://wordpress.org/support/users/qriouslad/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-disallow_file_edit/#post-18095823)
 * Status: resolved