Image is not showing in wordpress media - php

When I am uploading images in WordPress media. It shows error.
error showing: An error occurred in the upload. Please try again later.
And also any of the images is not showing.
Here I click to attched image to the page but there is no image
Not any of the images are showing here only wp loader is rotating.
This issue comes when I make a second copy of wordpress site on the same server. I have given Site URL and Home URL correctly and also given permission to the all the folder. Yet this issue not resolved. but other wordpress site is working fine on this server.

There are many reasons to do not upload images in your WordPress media library.
That might be the issue of permission of your directory or as you said you have given permission already then you should check you upload path.
There are also some other steps to check and solve your issue.
Please follow this link. It will guide you step by step process and hopefully work for you.

Related

PHP Image Upload - Locked Photos - FTP Error

I've been creating a website in the same way that I usually so, where I add an article + image using HTML & PHP. The difference is that when I upload the photo, even though it displays on the web page, my folder shows an Icon instead of the image (See Below):
As the photos show on the webpage I didn't think much of it, until I tried to upload the website, where I kept getting an FTP upload error on the images. Then when loading the website, I found that none of the images were there.
I'm not sure what the problem is, but when I tried to open one of the photos in Fireworks it says, "Could not open the file. File is locked".
Does anyone know what the probelm is? I'm using the same upload method used previously.

Media files links in wordpress broken?

I have a problem in my Wordpress site. When I upload file or image by Add New in "media library" and open the url that the Wordpress gets and open it in a new tab it gets this page :
enter image description here
and can't open the file!
and I cant use its url in pages..
But in the case of image it save in server more than one version of the image like 'img.jpg' >> 'img-90x90.jpg' and 'img-90x65.jpg' etc., The url of this image is working well without any problem !
And if I uploaded image to the server manually by FTP Account it works well.
I works on WordPress 4.7.1
Thanks a lot for help in advance :)

Featured Images not getting uploaded?

when i click to upload a featured image for any post or page it gives me this error:
An error occurred in the upload. Please try again later.
and also images display in the media section when i click on the featured image link . i have tried many thing changed permissions of the uploads folder made them writable by setting permissions to
0777
and activated and deactivated all the plugins but still its giving me this error . Any help will be much appreciated.
when i click on the set featured image the images in Media Library also don't show up instead it shows like this :
i have pictures in my media library but they don't show up there..
or it has something to do with the uploads path ?
Problem Solved:
there was some malware in my wordPress i have downloaded a new copy of wordpress and then installed my theme in it and it works fine now ...
Checkout Your all active plugins. Deactive all plugins in your theme.And then try to upload image then media is working. After media working then one by one active your plugins. Then check out your plugin which give error to upload file.

Wordpress thumbnails wont show (Upload error?)

Please tell me if this is already a Post for Server fault. I've posted it here, because i don't know what's the problem.
I'm on a WordPress project for a client and i struggle with the image uploads on my server. My files are hosted by a host in my Country.
Whenever i try to upload an image, it looks like this:
But when i edit the image, the image shows up.
When i try to access the image uRL for example this one:
http://example.com/woohoo/wp-content/uploads/Screenshot-2015-09-21-10.31.41.png
i get an 403 error.
And like you see in the second screenshot the uploads folder is empty. I've just installed WordPress and a theme and the theme is also not showing up in the FTP client.
The uploaded Folder has 710 access rights like the themes folder. Do i have to change the access rights or is it not possible by me and i have to contact the host?
Any help much appreciated

Getting a 404 on images uploaded using FTP in Magento

I have recently installed Magento and am using it for the first time. I am trying to uplaod an image to a folder as the new logo in the heading. When I upload the image using FTP the file uploads successfully but I can’t see it in the folder listing in a browser or on the website or if I visit the url for the image. I get a 404 page instead. Everything is getting cached I believe. I have turned off caching in the back end and cleaned out var/cache folder. This is a new one to me as I wouldn’t ahve thoughts ftp uploading an image would or could be cached? I can’t even change the header image on my website.
Im using the hellowired them as a starting point.
Cheers
Check the permissions on the Images and the directory it is in.
Can you verify that it is in the folder that you have uploaded it too?
Can you view it on server browsing the directories?
Finally check that you have type it correctly as Linux box's are CAPS sensitive, this could be why you can't see it also.
Looks like my host migrated my accounts to another server and I was actually updating the old hosting. Thanks for your help.

Categories