Title: Failed to use &#8220;Theme Editor&#8221;
Last modified: August 18, 2016

---

# Failed to use “Theme Editor”

 *  [august](https://wordpress.org/support/users/august/)
 * (@august)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/)
 * Whenever I want to update my files using the “Presentation” –> “Theme Editor”,
   an error msg appear after I clicked on “Update File”.
 * ———————-
    Here’s the problem:
 * Warning: fopen(C:\Clients\august\august.net\www\blog/wp-content/themes/clueless/
   style.css) [function.fopen]: failed to open stream: Permission denied in C:\Clients\
   august\august.net\www\blog\wp-admin\theme-editor.php on line 58
 * Warning: fwrite(): supplied argument is not a valid stream resource in C:\Clients\
   august\august.net\www\blog\wp-admin\theme-editor.php on line 59
 * Warning: fclose(): supplied argument is not a valid stream resource in C:\Clients\
   august\august.net\www\blog\wp-admin\theme-editor.php on line 60
 * Warning: Cannot modify header information – headers already sent by (output started
   at C:\Clients\august\august.net\www\blog\wp-admin\theme-editor.php:58) in C:\
   Clients\august\august.net\www\blog\wp-includes\pluggable-functions.php on line
   270
    ———————-
 * What’s wrong with it?

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/failed-to-use-theme-editor/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/failed-to-use-theme-editor/page/2/?output_format=md)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469680)
 * The permissions for your theme files do not allow WP to open or write to them.
 *  Thread Starter [august](https://wordpress.org/support/users/august/)
 * (@august)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469685)
 * Is there anyway I can fix it?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469686)
 * of course there is, change the permissions of the files.. you can see what its
   trying to do if you look at the errors. Put on your thinking cap and read those
   errors 🙂
 * the directory those files are in needs to be READABLE and WRITABLE by wordpress.
 * the files need to be READABLE and WRITABLE by wordpress.
 *  Thread Starter [august](https://wordpress.org/support/users/august/)
 * (@august)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469688)
 * Do you mean all files in the directory
    “wp-admin”, “wp-content” and “wp-includes”
   need to be READABLE and WRITABLE?
 * Should I do that in FTP?
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469689)
 * Just the folder for the theme you want to edit. And PLEASE don’t leave it writeable
   after you’re done editing!
 *  Thread Starter [august](https://wordpress.org/support/users/august/)
 * (@august)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469702)
 * In fact, orginally I’ve already have “Read” & “Write” checked in that theme folder.
   
   The “owner”, “group” and “world” are already set as “666”.
 * Is there something else that needs to be done for me to update my theme files?
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469712)
 * Well, I’d never use the inbuilt theme editor myself, but if you need to the only
   other option may be to set the folder 777 instead of 666. Again, VERY bad idea
   to leave it that way for long….
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469714)
 * I am afraid there is some misunderstanding here. You need to chmod the **files**
   you want to edit, not folders…
 *  Thread Starter [august](https://wordpress.org/support/users/august/)
 * (@august)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469716)
 * What do you mean by “chmod”?
 * I still can’t edit my sidebar?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469717)
 * Google anyone?
 * Changing the permissions to 666. NOT ohn folder but on the sidebar.php, for example,
   if that’s the one you want to edit.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469718)
 * [http://codex.wordpress.org/Changing_File_Permissions](http://codex.wordpress.org/Changing_File_Permissions)
 *  Thread Starter [august](https://wordpress.org/support/users/august/)
 * (@august)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469719)
 * Yes….I wanna edit my sidebar.
    I’ve just checked that my sidebar.php inside my
   theme folder is already set to 666, but same error msg appear after I pressed
   the “Update File” button.
 * Pls note the error msg at the end:
    Warning: Cannot modify header information–
   headers already sent by (output started at C:\Clients\august\august.net\www\blog\
   wp-admin\theme-editor.php:58) in C:\Clients\august\august.net\www\blog\wp-includes\
   pluggable-functions.php on line 270
 * pluggable-functions.php??
 *  Thread Starter [august](https://wordpress.org/support/users/august/)
 * (@august)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469720)
 * Same error msg, even after I changed the permission of sidebar.php to 777.
 * What can I do?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469721)
 * I’d try to upload a fresh copy (=new download, new unzip etc.) of the wp-admin
   and wp-includes folders.
 *  Thread Starter [august](https://wordpress.org/support/users/august/)
 * (@august)
 * [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/#post-469722)
 * Will that affect my contents or posts that are already in my blog?

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/failed-to-use-theme-editor/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/failed-to-use-theme-editor/page/2/?output_format=md)

The topic ‘Failed to use “Theme Editor”’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 17 replies
 * 4 participants
 * Last reply from: [august](https://wordpress.org/support/users/august/)
 * Last activity: [19 years, 6 months ago](https://wordpress.org/support/topic/failed-to-use-theme-editor/page/2/#post-469729)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
