Title: Theme editor update error
Last modified: August 18, 2016

---

# Theme editor update error

 *  [weemel](https://wordpress.org/support/users/weemel/)
 * (@weemel)
 * [21 years ago](https://wordpress.org/support/topic/theme-editor-update-error/)
 * Hi all,
 * I’m getting an error when i try to update any page using the theme editor even
   though all permissions have been set to 777… here’s the error i’m getting:
 * > PHP Warning: fopen(C:\Program Files\Ensim\Sitedata\weemel\Inetpub\wwwroot/wp-
   > content/themes/default/style.css) [function.fopen]: failed to create stream:
   > Permission denied in C:\Program Files\Ensim\Sitedata\weemel\Inetpub\wwwroot\
   > wp-admin\theme-editor.php on line 49 PHP Warning: fwrite(): supplied argument
   > is not a valid stream resource in C:\Program Files\Ensim\Sitedata\weemel\Inetpub\
   > wwwroot\wp-admin\theme-editor.php on line 50 PHP Warning: fclose(): supplied
   > argument is not a valid stream resource in C:\Program Files\Ensim\Sitedata\
   > weemel\Inetpub\wwwroot\wp-admin\theme-editor.php on line 51 PHP Warning: Cannot
   > modify header information – headers already sent in C:\Program Files\Ensim\
   > Sitedata\weemel\Inetpub\wwwroot\wp-admin\theme-editor.php on line 52
 * It’s probably a simple problem since no one else seems to have it, but i can’t
   work out what it is… can anyone help? Thanks!

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years ago](https://wordpress.org/support/topic/theme-editor-update-error/#post-165256)
 * Check the permissions of your files/folders.
    The first error says that a file
   cannot be opened/written to.
 *  Thread Starter [weemel](https://wordpress.org/support/users/weemel/)
 * (@weemel)
 * [21 years ago](https://wordpress.org/support/topic/theme-editor-update-error/#post-165261)
 * Yeah i’ve done that numerous times…
 *  Thread Starter [weemel](https://wordpress.org/support/users/weemel/)
 * (@weemel)
 * [21 years ago](https://wordpress.org/support/topic/theme-editor-update-error/#post-165345)
 * …can anyone help?!
 *  [estyzesty](https://wordpress.org/support/users/estyzesty/)
 * (@estyzesty)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/theme-editor-update-error/#post-166049)
 * I’m getting the same error =( it just started happening an hour ago.. don’t know
   what’s wrong, geh. All of a sudden i can’t edit my themes or upload pictures..
   although I can still post.
 * Except unlike your error, mine says it failed to open stream: read-only file 
   system in home/blahblahblah
 * .. read only file system?!?!?! And I can’t change my permissions, they won’t 
   let me.
 *  [estyzesty](https://wordpress.org/support/users/estyzesty/)
 * (@estyzesty)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/theme-editor-update-error/#post-166050)
 * Warning: copy(/home/camiesty/public_html/esther/wp-content/xangapic.jpg) [function.
   copy]: failed to open stream: Read-only file system in /home/camiesty/public_html/
   esther/wp-admin/upload.php on line 170
    Couldn’t upload your file to /home/camiesty/
   public_html/esther/wp-content/xangapic.jpg.
 * does anyone know what’s wrong..???
 *  [ianmcn](https://wordpress.org/support/users/ianmcn/)
 * (@ianmcn)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/theme-editor-update-error/#post-166060)
 * I get the same problem on a blog I’ve set up for a mate on his IIS hosting account–
   never had this problem before on Linux.
 * All permissions are set correctly so don’t ask me to check them! I reckon it’s
   something to do with WP being on IIS
 *  [howardphillis](https://wordpress.org/support/users/howardphillis/)
 * (@howardphillis)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/theme-editor-update-error/#post-166062)
 * I’ve just installed WordPress for the first time on IIS and I’m getting this 
   same error when modifying a theme. Has anyone found a solution to this? I’ve 
   got full access to the server so I can make any permissions changes required.
   What should the permissions be set to?
 *  [Kate](https://wordpress.org/support/users/katie1/)
 * (@katie1)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/theme-editor-update-error/#post-166063)
 * [@howardphillis](https://wordpress.org/support/users/howardphillis/)
    [http://codex.wordpress.org/Changing_File_Permissions](http://codex.wordpress.org/Changing_File_Permissions)

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

The topic ‘Theme editor update error’ is closed to new replies.

 * 8 replies
 * 6 participants
 * Last reply from: [Kate](https://wordpress.org/support/users/katie1/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/theme-editor-update-error/#post-166063)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
