Featured Images not getting uploaded? - php

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.

Related

Images not displaying in wordpress

So for some reason my images are just showing a broken image icon when I open my website from the adminpanel in WP. But when I open the index.php file the images are showing just as I want them to. Same with my javascript.
I have linked the image directory correctly since they are showing up when I only open the index.php file. They are also in the media library in wordpress.
Maybe a simpler explanation is:
localhost/website/wordpress = no images, only broken image icons.
localhost/website/wordpress/wp-content/themes/mywebsite/index.php = the images are showing.
EDIT: I found out you could copy the link that wordpress gives you for every image, and that made it work.
Is that the only way of doing it or is there another way?
Check is your .htaccess file for rules applied to images or image folder. Rename it to be sure
Remove image related wordpress plugins like "Adaptive Images"
It may due to file accessibility permission issue. Just give permission to your image folder. check your .htaccess file (on root).
Install a file browsing plugin or directly go to the hosted site and edit the .htaccess file. Add the folder name on the file

WordPress uploads do not show up and I see the white screen of death in some cases

Recently I have installed my own-made theme on my WordPress and after that a few problems have occurred.
Firstly when I upload a photo or file from my site's admin panel it
does not show up under Media tab. and when I try to define a thumbnail
for a post I cannot see the photos. Therefore I deactivated my
own-made theme and changed it to 2017 WordPress theme. after that when
I uploaded images they showed up in my Media tab but again when using
one of them as a post thumbnail (after reactivating my theme) they showed up like below:
I've tried several ways to fix this issue such as:
1) Deactivating my whole plugins.
2) Increase PHP Memory Limit by editing the wp-config.php file:
define( 'WP_MEMORY_LIMIT', '256M' );
3) Changing file permissions of my site's uploads folder and etc.
Secondly when I activate my own-made theme some times I see the
popular white screen of death.(For example when I define a new category and press the publish key I get redirected to a white empty page) And I don't know what problem my theme
has that makes this happen.
What changes must be done to my own-made theme in order to fix the white screen of death and uploads issues?
After trying a lot I turned debugging mode on I found that my functions.php file has a problem as soon as I fixed it both uploads problem and white screen of death issue were disappeared. Thanks a million.
nah this looks like a pebkac issue. 1st look in the settings media upload folder. Because this is pebkac most likely you didn't uncheck your date and time image folder. If you did the process is still the same.
FTP in and locate the image upload folder. change the permissions to 777 and press recurse into subdirectories .

Image is not showing in wordpress media

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.

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 :)

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

Categories