Title: Adding disallow file edits problem
Last modified: August 20, 2016

---

# Adding disallow file edits problem

 *  [aventura54](https://wordpress.org/support/users/aventura54/)
 * (@aventura54)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/adding-disallow-file-edits-problem/)
 * Hi all
 * I am trying to add the:
    `define('DISALLOW_FILE_EDIT', true);` string to my wp-
   config.php but whenever and wherever I place it I recieve a php error of `unexpected
   T_STRING in wp-config.php on line 1` which is the: `<?php` tag! I am certain 
   I am not removing or “breaking” any comments causing something else to be commented
   out etc. and am sure nothing else is being changed.
 * Any help would be greatly appreciated
    Aventura

Viewing 1 replies (of 1 total)

 *  Thread Starter [aventura54](https://wordpress.org/support/users/aventura54/)
 * (@aventura54)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/adding-disallow-file-edits-problem/#post-2518498)
 * Any ideas?

Viewing 1 replies (of 1 total)

The topic ‘Adding disallow file edits problem’ is closed to new replies.

## Tags

 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [aventura54](https://wordpress.org/support/users/aventura54/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/adding-disallow-file-edits-problem/#post-2518498)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
