Q: Date/Time this occurred (Provide your time zone also) A: Monday, February 8th, 2021 @ 7:46PM MST
Q: DevKinsta Version A: Latest as of today
Q: OS Version A: Windows 10
Q: Docker Desktop Version A: v20.10.2
Q: Were any error codes or messages observed? If so, what were they? A: Unable to create directory wp-content/uploads/2021/02. Is its parent directory writable by the server?
Q: Detailed Description of the Problem A: Unable to upload image to DevKinsta post featured image or media library.
Hi @aidenberzins . Welcome! Thanks for reporting the issue. It should work by default . Is this for a brand new site or an imported site? Do you have any other sites you’d be able to test this on? Lastly, do you have any apps or antivirus software that could be blocking it?
The site was originally imported from GoDaddy but I had someone restart the staging site so that I could develop fresh and pull into DevKinsta without issue.
I can try on one of my other sites as well to see if this is an isolated issue. It is only a problem because it rewrites the database with null values so if I could just push the site without the database that would also be fine.
Thank you. Could you try creating a “New WordPress site” from within DevKinsta and testing the new blank site? As in, one that’s created from within DevKinsta and not imported. I’m curious if perhaps it’s a setting from those imported sites or a system issue.
To translate, this will reset permissions. Here’s whats going on above:
#!/bin/bash
files=(wp-admin wp-content wp-includes)
echo "Resetting file permissions, this may take a moment..."
echo "Resetting ownership...";
chown www-data:www-data -R /www/kinsta/public/*
for i in "${files[@]}"
do
echo "Recursively setting directory permissions to 755 on $i...";
find /www/kinsta/public -type d -name $i -exec chmod -R 755 {} +
echo "Recursively setting file permissions to 644 on $i...";
find /www/kinsta/public -type f -name $i -exec chmod -R 644 {} +
done
echo "Permissions have been reset.";
Let me know if that works for you!
Edit: Added file and directory settings here on September 1, 2021.
Hi @andxdev . Welcome to DevKinsta. Apologies for the delay. We do provide support here
Could you share with us a bit more on your configuration? Are you running Windows or Mac? Does the directory exist? Was this a site that was pulled or created new within DevKinsta?
I just installed devkinsta today, downloaded one of my live sites to test and got the same error. WPML can’t write to /wp-content/languages folder. The folder exists (in Windows), but I don’t know how to check write permissions (I’m new to docker).