WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] CHMOD 550 on Twentyeleven folder (9 posts)

  1. gostabohman
    Member
    Posted 2 years ago #

    I accidently put in a few "<"-character in function.php in the Twentyeleven folder with the WP theme editor (pasted in some code from a tutorial) and managed to save it, but now the whole site crashed due to the "unexpected '<' in function.php", including the dashboard.

    Thing is, all I need to do really is use FileZilla to open and edit the file to remove the bastardous characters and then be moisying along again. But I can't... Because the folder permissions is set to 755 and the function.php is set to 644 and I only get a "550 operation not permitted" when i try to chmod them. That folder - and all the files in it - is the only thing on my whole serverspace that won't let it self be changed.

    Why is that? What made it that way? And what do I do to fix it? Isn't it a bit strange that it would be updated through the WP editor? That makes me think it's an ownership issue, which I wouldn't know how to deal with either... :S In either case...

    HELP! =/

  2. peredur
    Member
    Posted 2 years ago #

    Download the file to your local machine, change it and then upload it back?

    Using your favourite FTP client...

    HTH

    PAE

  3. gostabohman
    Member
    Posted 2 years ago #

    Peredur> Thanks for your reply! That didn't work either though. I wasn't allowed to overwrite or remove any files in that folder.

    What DID work however :) was to rename the twentyeleven folder. Don't ask me why that was possible. Anyway, that let me get into the dashboard so i could edit the file. It's now all good and well.

    But the permissions are still not changable, would be nice to be able to do that for future events. Do I need to contact my host?

    /GB

  4. peredur
    Member
    Posted 2 years ago #

    You would need to talk to the server administrator about changing the permissions. It's not a WP thing. Not as far as I can imagine, anyway.

    Cheers

    PAE

  5. peredur
    Member
    Posted 2 years ago #

    Just as an aside, the permissions may have been set up like that to try to protect the default theme. You should not alter a default theme directly as your changes may be overwritten by an update to WP.

    The only recommended way of modifying themes (any themes, but especially the defaults) is via a child theme.

    Cheers

    PAE

  6. gostabohman
    Member
    Posted 2 years ago #

    Guess so. Thanks! I'll return with a post on how this resolved after speaking with the admin...

    /GB

  7. gostabohman
    Member
    Posted 2 years ago #

    ok! well that makes sense! I'll read up that child theme thing then.

    Thanks again! :D

    /GB

  8. peredur
    Member
    Posted 2 years ago #

  9. gostabohman
    Member
    Posted 2 years ago #

    Excellent!

Topic Closed

This topic has been closed to new replies.

About this Topic