• 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)
  • The permissions for your theme files do not allow WP to open or write to them.

    Thread Starter august

    (@august)

    Is there anyway I can fix it?

    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

    (@august)

    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?

    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

    (@august)

    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?

    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….

    I am afraid there is some misunderstanding here. You need to chmod the files you want to edit, not folders…

    Thread Starter august

    (@august)

    What do you mean by “chmod”?

    I still can’t edit my sidebar?

    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.

    Thread Starter august

    (@august)

    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

    (@august)

    Same error msg, even after I changed the permission of sidebar.php to 777.

    What can I do?

    I’d try to upload a fresh copy (=new download, new unzip etc.) of the wp-admin and wp-includes folders.

    Thread Starter august

    (@august)

    Will that affect my contents or posts that are already in my blog?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Failed to use “Theme Editor”’ is closed to new replies.