thanatica2
Member
Posted 1 year ago #
I'm trying to add a file to the media library, and WP says it's uploaded and an entry does get created. But when I try to open it, my site gives a 404.
When I take a look in the wp-content directory, the whole upload directory is missing! It was supposed to go into /wp-content/uploads/2011/04/ but none of them are created. Security settings should allow this this (everyone = full control), proven by the fact that an automated update works perfectly well.
What's going on?
Try changing the permissions on the wp-content directory to 766. If you still have problems, try 767, 775 or 777. Once your uploads are working, change the permissions on wp-content back to 755 again and check that everything still works OK.
http://codex.wordpress.org/Changing_File_Permissions
thanatica2
Member
Posted 1 year ago #
Sorry, this is windows, so chmod is not going to cut it.
And like I said, updates are working fine (meaning WP can write files perfectly fine) and "everyone" has "full control". Can't give more permissions than that...
Have you checked your uploads path in Settings->Media?
thanatica2
Member
Posted 1 year ago #
*facepalm* :)
For some reason, it was set at c:\inetpub\wwwroot\wordpress\wp-content/media (that's right, mixing slashes and backslashes)... In dunno why, I don't think I've ever touched it. Maybe an upgrade issues.
No matter tho, I set it to a relative path wp-content/media and it seems to be working again.
Thanks :)
mattyval
Member
Posted 4 months ago #
This link helped in our situation for other problems with the Media Library if you run into more issues.
wordpress-media-library-not-working
thanatica2
Member
Posted 4 months ago #
Nah, that's 17 steps to explain that the permissions to the folder on the FS aren't right. Srsly? That would be too easy. I think any self-respecting developer would check that right away.