WordPress.org

Ready to get started?Download WordPress

Forums

Editing Theme File (2 posts)

  1. SquishyB
    Member
    Posted 8 years ago #

    Whenever i try to edit a file in my theme, i get this error:

    Warning: fopen(c:\Sites\Single18\joshy07\webroot\blog/wp-content/themes/coffee/style.css): failed to open stream: Permission denied in c:\Sites\Single18\joshy07\webroot\blog\wp-admin\theme-editor.php on line 55

    Warning: fwrite(): supplied argument is not a valid stream resource in c:\Sites\Single18\joshy07\webroot\blog\wp-admin\theme-editor.php on line 56

    Warning: fclose(): supplied argument is not a valid stream resource in c:\Sites\Single18\joshy07\webroot\blog\wp-admin\theme-editor.php on line 57

    Warning: Cannot modify header information - headers already sent by (output started at c:\Sites\Single18\joshy07\webroot\blog\wp-admin\theme-editor.php:55) in c:\Sites\Single18\joshy07\webroot\blog\wp-admin\theme-editor.php on line 58

    is this something to do with the permisions? If so, what should i fix.
    Thanks
    SquishyB

  2. servisis
    Member
    Posted 8 years ago #

    Yes, it certainly looks like a permissions error. If you are able to read theme-editor.php, around line 55 - 58 you will likely see the name of the file ( or dir) that needs exec permissions granted.

    I just went through a bunch of this, and actually blanket changed permissions to 755 until I had what I needed, then had to go back and reset perms on non essential files, which is really bad practice ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.