• Hey ,
    I setup socute theme on my local host and everything works fine .
    but once i try to create a child theme and active it , i see this error

    ” Cannot write cache folder. You may try setting the folder cache folder permission to 755 or 777 “

    I changed the permission of cache folder to 777 but still the same problem , what should i do ?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Does this occur with a default theme’s child?

    If it’s on localhost, try chmodding the whole WordPress directory to 0777. The cache folder may not be where you think it is. If it’s public facing, don’t do this.

    I am sorry but this is very bad advice. If you do so, then upload, a host may allow your permissions. Why would anyone today ask for 777?

    I don’t think file permissions are transferred over FTP (might be wrong). And this person is running a localhost, which isn’t likely to be public facing (notice my warning on that). So, see if you can get it working and then start locking down permissions. In my opinion, it’s easier to do things that way round.

    Ben, please now provide factual links from this well developed community. I have:

    https://codex.www.ads-software.com/Hardening_WordPress#File_Permissions

    Please review all re Hardening WordPress.

    For sure! Doesn’t really make any difference on a non public facing localhost though, which is why I suggested it as a possible fix for the problem so the OP can find the root of the problem.

    I take your point though – should have provided instructions for resetting the permissions. Please forgive me – I’m not up on the etiquette of this forum.

    Please never EVER use 777. There is no reason to other than really really bad advice;;;EOD

    @hercal

    Trying 0777 permissions to troubleshoot on your localhost setup is just fine when you’re not running a live site.

    As Ben mentioned, “localhost” really does imply that it’s on a machine for local development only, and won’t be made available to the outside world. That’s when those 0777 permissions could really get you into trouble.

    That being said, maybe a little more about your local machine could help. What are you using for your localhost server setup? Ubuntu possibly, or did you choose something different?

    @hercal

    I can successfully duplicate that error message using the socute free theme right out of the box. I don’t even have to try it with a child theme. The way I made the message go away (as suggested by the warning message) was to navigate to /wp-content/themes/socute/socute/cache and applied 0777 permissions to the cache directory only.

    You probably noted the “nested” scheme for the theme directory: /socute/socute – that’s the only way the theme would activate for me – by leaving it in the nested directory.

    So for me, simply changing the permissions on just the /cache directory located in the socute theme to 0777, eliminated the error message. Your mileage may vary depending on how you set the ownership of your wordpress files, and what processes have permission to write to them. Good luck!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cannot write cache folder Error’ is closed to new replies.