On a clean WordPress install, with a fresh download of the latest version of WordPress, I'm having an issue uploading images... but it's not the problem I usually run into.
Here's the problem: WordPress let's me upload an image, and will save it into the list of media and allow me to give it a title, etc, but the actual file is never uploaded. You can't view it anywhere. Copying the full path to the image into the address bar also shows that no file is there. When I use FTP to check out the uploads folder, it's empty. I checked other directories to see if for some reason the image was uploaded to the wrong place, but it is nowhere on the server. In WordPress, if I click the "Edit Image" button this message appears: "Image data does not exist. Please re-upload the image."
wp-content is currently set to 767. Usually I can set wp-content to 767, upload the first image so that WP has permission to write in the uploads folder, and then change wp-content back to 755. Usually it works. This is the first time I've run into this specific issue, though.
In WordPress settings I have "Store uploads in this folder" and "Full URL path to files" left blank, however I have tried to type in the proper paths and still couldn't get it working.
I can't find a solution to this anywhere, and would appreciate some help. Thanks!
Instead of change the permission to the wp_content folder, try changing the permissioni of the wp-content/upload/ folder.
Also see if there are any issues in the error_log as well.
Related
I have get some images issue. Images are not displayed even images are at the proper location. Also When I tried to open images in browser, it says not found. Wordpress version 4.8.3 with visual composer. Tried to upload images using wp - media. Images uploaded but does not work (displayed)
Steps followed to resolve is issue:
Give 777 permission to uploads directory and all subdirectory
folders.
Inform host regarding the issue. but not able to solve the issue.
Check images by calling third site url. in that case images displayed.
So a client asked to make some changes to his wordpress site, I can install and run plugins, but when I try to put some images or pdf files into the media it gives me the following error: "cant upload to wp-content/upload". I have created an admin user but cant upload any media.
Check if your "uploads" folder has the right permissions.
It should be at least 755.
Uploads folder is located at /wp-content/uploads
I have a website that I just transferred from one server to another. I did this by copying all the files via FTP from the old server to my computer and then to the new server. I changed the URL in Settings to the new url and I downloaded a copy of the database. I then uploaded the database to the new server and changed all the database info in the wp-config file. Afterwards I used Velvet Blues Update URLs to make sure all the URLs have been changed in the database.
After doing all the the website is working fine. I could update my plugins and my WordPress core files that needed updated.
The problem is now I can't upload a plugin from my computer or any media files like images. When uploading an image, I get this message:
“image.jpg” has failed to upload.
Unable to create directory uploads/2017/03. Is its parent directory writable by the server?
I checked and this directory is already on the server. In FTP I changed the folder permissions to all be set to 775.
I then tried to change the folder structure for media files to not be broken into month/date folders and I get this message:
“image.jpg” has failed to upload.
Unable to create directory uploads. Is its parent directory writable by the server?
I know this directory exists and is set to 775. To double check I also change the wp-content directory to the same permissions.
What am I doing wrong here? Why can't I upload images and plugins via the WordPress backend?
I actually think I figured this out. I went into Settings -> Media and noticed there was a box that says Store Uploads to This Folder and had a folder for the old website. I deleted the information that was in that box and updated the settings and now it works!
I had this exact issue today. After much troubleshooting, I solved this images not uploading issue -- specifically, when I clicked the upload button, no dialog window appeared. As a new WordPress installation, the dashboard was displaying asking if this was going to be a business or personal site. When I clicked I DON'T NEED ANY HELP, then I saw the normal dashboard with WooCommerce module displayed and I was able to upload media files and images from my hard drive.
I'm posting in case this answer can help someone else having this very weird problem. Also, it is possible that a plugin like OpinMonster might be what generated that "business or personal" message.
I am running wordpress on my own managed server so I have complete access to the box. The issue I'm having is that users can upload images to my image library but any uploaded are not loading due to 403 errors.
When I go directly to one of the images I get the message "Server unable to read htaccess file, denying access to be safe"
I have set the permissions on the .htaccess file and all files to 775 but it made no difference.
I also tried nuking the file and uploading a new .htaccess from a fresh wordpress download in case it was corrupted but it made no difference.
The strange thing is the images do display in one context, when you use the wordpress image editor.
Not sure what to do about this, I'm a drupal developer and only have a passing familiarity with wordpress.
Example working legacy image:
http://www.bonnybridgeanglingclub.com/wp-content/uploads/2016/06/DSC_0671.jpg
Example broken recent image:
http://www.bonnybridgeanglingclub.com/wp-content/uploads/2017/02/652-1024x640.jpg
Any help would be greatly appreciated.
It turned out the problem was that for some reason when the 2017 directory was created inside the uploads folder it was created with the wrong permissions, very odd, I've fixed the permissions and all is well now.
I have created a new Wordpress website on my server and done everything as I normally would (nothing fancy or custom, just upload theme, a couple of plugins etc.) except I wanted a custom file path to my media folder.
I have created the folder '/public_html/i', updated my .htaccess file, updated the Setting > Media section in Wordpress with the file path and all is working fine.
My issue is that I do not want the uploads folder to be visible by navigating to the URL (www.site.com/i/).
If I change the folder permissions to execute only for group / world (711) the images become unavailable / unviewable and although I can still upload they show as broken images.
If I set to execute and read (755) the images and uploads work fine but the folder can be viewed by typing in the URL.
What are the correct permissions I should be using for a custom uploads folder to make images on the site viewable but the containing folder itself not?
Note that this is a site that will regularly have new images uploaded to it, so I would also need to be able to upload without having to change the permissions each time, which is one solution I have found online.
Thanks in advance for any help.
Add the following to your .htaccess file with the WordPress .htaccess instructions:
Options -Indexes