I’ve found this post on upload folder permissions which works to a degree. At least now I can re-upload existing images to a directory on my local site and use them for design purposes.
Still not sure why my current media items in their respective year/month folders aren’t recognized on the localhost system. But I’m letting it go and moving on…
I have a local version of my site …
When you moved it to the MAMP Pro local location, did you run a search and replace on the database to update the URLs?
These are the two tools I always use and have never had an issue:
– http://wordpress.org/plugins/velvet-blues-update-urls/
— select all options EXCEPT the last one (GUID)
– http://interconnectit.com/products/search-and-replace-for-wordpress-databases/
After running then, got to Settings > Permalinks and just re-save.
I did run a search & replace function through the database. That correctly updated links to media items within posts.
The odd behavior here seems limited to the media library view:
Funny, no?
Did you try just re-saving your permalinks?
Just gave that a try: changed Common Settings from Default to Post name. No impact on media library items.
It was an interesting idea though. 🙂
I am running WP locally, not with MAMP but with the systems LAMP setup.
I tried all the suggestions on this thread and others, a bit of advice, never set permissions to 777 even if you are working locally, it’s a bad practice to get into.
I created a directory called Sites where I have localhost setup.
Now you can do: sudo chmod -R a+w ~/Sites
The -R flag means recursive so you don’t have to give each directory in your Sites directory permissions.
f you are concerned about security then instead of making it world writeable you can set the owner to be Apache _www but when working on files you would have to authenticate more as admin you are “not” the owner, you would do this like so:
sudo chown -R _www ~/Sites
This makes Apache the owner and it’s what finally fixed it so I could upload files to my media library in WordPress. I tried changing permissions to 777 and 755 for my WP install but none of that worked, you have to give permissions to apache or whatever you are using as a server eg: nginx
Hope this helps
Also, in your settings, uncheck Organize my uploads into month- and year-based folders
[ Please refrain from shortlinks here ]
https://wordpress.org/support/topic/unable-to-create-directory-is-its-parent-directory-writable-by-the-server-1?replies=30
Look for the comment by nabtron
I’m new to WP, well I haven’t worked with it in 3 years or so but I’m working on a client project and this is a great solution for them.
Aah, yes, that’s just what I needed — a remind to go back and check the basic syntax of my flu URL link to the library.
Case closed, filed under “shoulda looked there first”
Thanks!