Images upload error
-
Local installation on window computer is great. I moved the install onto my mac locally and can view everything but it won’t upload images or let me edit files through the wordpress editor. ALL the file permissions are correct. This doesn’t make any sense to me…Sure hope someone knows something about this..Thanks
DC
-
Do you get any error messages when you try to upload or edit?
Or do you have error logging activated. The error log might hold a clue.I am not a MAC person but whenever I’ve had problems uploading images on a self-hosted windows installation, it looked like a permission problem
but in the end after installing some debug code I found that a tmp directory was missing entirely.I get no error messages at all. It’s just as if the “blog” was under another admin. IN other words, I have the passwords and all and login is ok but it just won’t let me edit unless I do it through the files themselves. The WP editor doesn’t let me make changes…weird. I can handle the workaround but not being able to upload images is not ok..
I don’t know WordPress on a mac so I might be asking stupid questions but when you say editing the files themselves…as a workaround…do you mean you are editing the post records directly in the database itself?
There are different types of users in WordPress and the authority to edit posts varies according to the type of user logged in. Are you sure the logins you are using have authority to edit posts?
You know the wordpress “built-in” editor…when I go to the custom.css file or any file for that matter there’s no (save edit) button..it says
“You need to make this file writable before you can save your changes. See the Codex for more information.”
I’ve made the changes to file permissions that I know…And when I say I can edit the files directly I mean on my text editor in the htdocs etc. folders…Well that certainly indicates a permissions problem. I found this information about permission problems on a Mac:
To get around permission errors, on a Mac, you would just have to change the permissions. Go to the file/folder you’re trying to access, right click and View Info. at the bottom there is a box for permissions, and just change for the user _www (add it if it’s not in the list, it might be www) and give it read and write permissions for whatever it needs.
That paragraph came from this page. You might want to review all of the contents on that page but initially scroll to the paragraph at the bottom.
Again, I am not familiar with Mac so that page listed above might lead you down a successful path. I will see what more I can learn about permissions on a Mac.
as much as I appreciate the help I’ve been through all the folder/file permissions at every level. I’ve done command line permission changes to Apache and xampp to no avail. Super freaky….. So a LOCAL install on my windows laptop…. Transferred the very same files ONTO MAC thru FTP… That same “install” now reads great on “LOCALHOST” on my mac but ZERO editable files THROUGH the wordpress ” THEME EDITOR”. Maybe that better explanation will spawn some fixes ??
Thanks in advance etc.Look…I don’t want to waste your time but I still think you have a permission problem.
Do I understand correctly? You are setting the permissions on the windows install. Then moving the whole thing over to your mac with ftp…assuming the permissions are going to follow?
Also you mentioned custom.css. You are using Thesis theme, yes? Which version?
Perhaps try MAMP for your local server instead of XAMPP. I have never had an issue with it on any of the three Macs I use.
Additionally, when you moved the installation, did you update the URLs using something like the Velvet Blues Update URLs plugin or this script:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
By using XAMPP, you will (should) maintain the site url and home url as both the Win and Mac versions use just
https://localhost
as the base URL.However, and this may be the issue, the path to your media and files is NOT the same. On Win it will be (assuming it’s installed in the root of C:)
C:\xampp\htdocs\
orC:\xampp\htdocs\folder_name_of_install
but on the Mac it will beApplications\XAMPP\htdocs
etc.Update to my previous post;
As muddg says, it IS a permissions issue, and I have just verified it on my own systems (Win 7 and Mac Mavericks).
I moved a live site to a Win 7 XAMPP installation. Worked just fine using the “usual” method.
I then moved this Win 7 version to the Mac (10.9.2) running 1.8.2-5 of XAMPP, again using the “usual” method and did indeed get your exact errors; unable to upload new images or save changes to files using the Appearance > Editor on any file. Again, the errors received DO indicate a permissions issue.
So here is how I got it to work perfectly and as expected:
– in the Finder, right click on Applications/XAMPP/htdocs/site_folder_name and select Get Info
– in Sharing & Permissions, unlock, then select Admin and ensure Read & Write is selected
– with Admin selected, click the “gear” dropdown and select Apply to Enclosed Items and accept the resulting pop-up dialogYou can now add new media and the Update button now appears at the bottom of the file editor ??
Just to clarify the “usual” method:
From:
– export database
– ZIP entire siteTo:
– create new, empty DB and import the export
– edit site url and home fields in wp-options table with new location
– place and unZIP the site
– edit wp-config.php for DB credentials
– login to dashboard and install and run Velvet Blues Update URLs
– re-save PermalinksAhhhhh Haaaaaa…..OK…So I have not done a search & replace assuming the url’s for “localhost” would be the same..they look the same in the phpmyadmin database but I think you’ve got something here. I will do a SAR using interconnectit as I’ve used that script many times for other sites…OK…let’s have a go !
Thanks to both of you…will update soonish2992—–YOU WIN THE LUGGAGE !Yep…All is well…So it was obviously the MAMP V XAMPP Problem..I did NOT need a search and replace which didn’t seem to me logical so I tried the MAMP install and BaZinga ! Hope someone else might benefit from everyones help!
Thanks again All !resolved well !
hello all i am getting this error “Unable to create directory wp-content/uploads” on my local development environment. I am using XAMP 1.8.3 on OS version 10.9.2 and using wordpress 3.9. Can anyone please help me…
nishanta,
I was able to resolve a different problem ( yet probably similar ) by uninstalling XAMPP and installing MAMP within the MAC OS environment. I suspect this is your issue as well..MAMP is specific for MAC
- The topic ‘Images upload error’ is closed to new replies.