Title: Chmod error /Headers already sent error
Last modified: August 22, 2016

---

# Chmod error /Headers already sent error

 *  [hennell](https://wordpress.org/support/users/hennell/)
 * (@hennell)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/chmod-error-headers-already-sent-error/)
 * I’m getting the following error when using the “Replace the file, use new file
   name and update all links” option.
 *     ```
       Warning: chmod() [function.chmod]: No such file or directory in [...]/plugins/enable-media-replace/upload.php on line 125
   
       Warning: Cannot modify header information - headers already sent by (output started at [...]/plugins/enable-media-replace/upload.php:125) in [...]/wp-includes/pluggable.php on line 1173
       ```
   
 * It doesn’t seem to happen every time – as of yet I haven’t spotted a pattern,
   sometimes it works fine, sometimes not. I do have a localhost testing site so
   I can test various scenerios or dump a log file or something if you can’t reproduce
   and would like me to try something to whittle down the options etc
 * _Note – The file/picture does seem to be replace fine in spite of the error message–
   aside from breaking the page it appears on, the error doesn’t seem to effect 
   the site._
 * [https://wordpress.org/plugins/enable-media-replace/](https://wordpress.org/plugins/enable-media-replace/)

Viewing 1 replies (of 1 total)

 *  [emdeedee](https://wordpress.org/support/users/emdeedee/)
 * (@emdeedee)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/chmod-error-headers-already-sent-error/#post-5408191)
 * I am getting word for word the same error too with the same effect.

Viewing 1 replies (of 1 total)

The topic ‘Chmod error /Headers already sent error’ is closed to new replies.

 * ![](https://ps.w.org/enable-media-replace/assets/icon-256x256.png?rev=1940728)
 * [Enable Media Replace](https://wordpress.org/plugins/enable-media-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-media-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-media-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-media-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-media-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-media-replace/reviews/)

## Tags

 * [chmod](https://wordpress.org/support/topic-tag/chmod/)

 * 1 reply
 * 2 participants
 * Last reply from: [emdeedee](https://wordpress.org/support/users/emdeedee/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/chmod-error-headers-already-sent-error/#post-5408191)
 * Status: not resolved