WordPress.org

Ready to get started?Download WordPress

Forums

If this file was writable you could edit it. (15 posts)

  1. mikeherman
    Member
    Posted 9 years ago #

    Hi,

    I've set up WP on a few domains and never had problems. On the latest domain when I go to make changes to the sidebar or header, etc I see "If this file was writable you could edit it" and there is no Update button.

    What is wrong? and how do I fix this?

    Thanks for your help

  2. Make sure that the file is set to either 664 or 666.

  3. mikeherman
    Member
    Posted 9 years ago #

    All the files are 644, should I change all the files or just the presentation files.

    And if so which ones are the presentation files?

  4. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Change them to 666, and ensure the directory itself is set to 755

  5. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Typically all the files inside each of the /themes/theme-name directories would be chmod to 666

  6. mikeherman
    Member
    Posted 9 years ago #

    all the folders and the contents within the folders is 755, all the wp-xxx files are 666 and I still have the "If this file was writable you could edit it".

    Ironically when I look at the other domain where everything is fine, it is as it was when installed, files 755 and wp-xxxx files 644.

    I even tried uninstalling WP and reinstalling. But it didn't help.

    Any ideas?

  7. moshu
    Member
    Posted 9 years ago #

    Since you want to edit only the theme files, chmod only those: as you said in the original post - sidebar, header etc. No need to chmod any other wp-xxxx files.

  8. mikeherman
    Member
    Posted 9 years ago #

    Moshu,

    Thanks that did the trick.

  9. electrolund
    Member
    Posted 9 years ago #

    Isn't a 666 dangerous, since it allows public write access? Doing the 666 on the style.css worked for me too. But I'm concerned that it's asking for trouble.

    Thanks

  10. moshu
    Member
    Posted 9 years ago #

    Yes, it is. Edit on your computer and upload the edited files. Trouble avoided.

  11. electrolund
    Member
    Posted 9 years ago #

    Thanks, that's what I thought. ;-)

  12. swaters210
    Member
    Posted 8 years ago #

    Warning: fopen(C:\Sites\Single21\yf17b1b19\webroot\blog/wp-content/themes/default/style.css): failed to open stream: Permission denied in C:\Sites\Single21\yf17b1b19\webroot\blog\wp-admin\theme-editor.php on line 55

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

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

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

    what does that mean? I get that after editing css and it doesnt make any changes to my design.

  13. becs
    Member
    Posted 7 years ago #

    Bit late on this thread but its something I need to know myself.

    If I copy and paste the CSS text into notepad and edit it, I don't need to change the file permissions?

  14. moshu
    Member
    Posted 7 years ago #

    Well, I don't know if I understand it correctly.
    If you meant: copying from the online editor into notepad and then copying back - that would require the same changed permission in order to be able to SAVE the modified version.

    Instead, I'd suggest: open the file on your computer (you must have a copy, since you uploaded the theme from your computer), make a back-up copy and start editing. When you are done, FTP your new version to the site.

  15. becs
    Member
    Posted 7 years ago #

    Thanks Moshu. Just looking for a way to do it without having to change that CHMOD stuff each time I want to make a change.
    If that is not possible, then I will do it as suggested and keep changing it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.