Wordpress media library - image thumbnails missing - wordpress

I have moved a website from the preview environment to production.
All images display correctly on the front facing elements, however if I login to the admin area and look in media library I see no thumbnails.
I have tried several plugins to rebuild those thumbnails but they do not work.
It appears to be an issue with the database, maybe it is pointing to a physical file location.
Could anybody suggest any ways to resolve this?

Related

WordPress site isn't displaying images on the front end correctly

It is having problems displaying images. I think it could be a CSS, JS or caching issue? Project thumbnails and even normal images are not displaying. They appear in the media library folder fine, just not on the front end. The site is: https://www.thesaltypen.ie/ - Can supply WordPress login and FTP details if needed.
It seems as your site works correctly again?
If not you could check these things:
Check for errors in the console (there seems to be a problem with your theme (Failed to load resource), update it if necessary)
Use the inspector and check where you would expect images
Check the database entries, maybe there is a mistake with your connection
Check your hosting provider. Sometimes they restrict the upload and bandwidth

Wordpress Images issue

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.

Wordpress featured images and media library thumbnail no longer displays

I have a WordPress blog that is on a VPS. Everything has been working fine until today when I realised that my featured images are no longer displaying. I logged in to my dashboard, media library, and all the image thumbnails are no longer displaying properly.
Before this time, I had a little issue with my caching plugin (W3Total Cache), so I deactivated it, and my site continued to function normally. But now, no featured image is displayed all through the site. What amazes me is that inline images in a post are still displaying in the site. See example.
Now my site's homepage is just blank, because no featured images are displayed. As of today, images which I attached in the post are just seen as links, but if the link is clicked, it redirects to the image. Here are some of the things I've tried so far:
I've run df -h ssh command to verify if my diskpace is full.
I've restarted mysql server several times.
I've manually downloaded wordpress .zip file, and upload to the site.
I've automatically reinstall wordpress using http://www.example.com/wp-admin/update-core.php.
I've switched to a default theme.
I've tried some of the resources similar to this question here, but none of the proffered solutions resolved my issue.
My permission settings for all the sub-directories under wp-content is 755. I have also tried changing them to 775 and 777.
*. I've used the Regenerate Thumbnails plugin to try to regenerate the thumbnails, but it returned an error The error message was: The originally uploaded image file cannot be found at, but when I view the image directly from my browser, it returns the image.
I've also used the WP Original Media Path plugin to try and restore the media path (if it was messed up), but to no avail.
I've deactivated all plugins too.
I just checked my wp_postmeta table in my DB and it returned this error wp_postmeta table is marked as crashed
How do I rectify this issue?
Since the source of your homepage has nothing in the main section:
<section class="entry-content clearfix" itemprop="articleBody">
</section> <!-- end article section -->
and also due to the last item in your question, I assume you have a database problem instead of missing files (which I think would throw some 404s in my browser instead).
Do you have WP_DEBUG_LOG? If so, check wp-content/debug.log for errors. Be sure to launch phpMyAdmin and browse around the tables to see everything is good in there.
Use CHECK TABLE to confirm if tables are corrupted, and in that case use REPAIR TABLE to try to fix them (maybe phpMyAdmin has those in its GUI, I'm not sure right now).
In IIS -> Php Manager-> Php Extensions -> php_gd2.dll enable. refresh or restart the server it will work...
After long days try got this solution.

Wordpress pictures and thumbnails not working

I've been having a few problems with my Wordpress Installations on a couple of my website.
The first problem is that uploading pictures works but when if I add the image to a post for example, it adds it but shows a broken image thumbnail. When I try to access the image though it throws a 403 error. Tried changing the permissions of my uploads directory to 755. Didn't work though.
You can visit this link to get an idea of what's happening.
No thumbnails are showing up on the admin panel. Normally, in the theme installation window, there's a thumbnail on every theme that shows what the theme looks like, in my installation there's nothing like that. It just show blank thumbnails.
I've uploaded an image showing the thumbnail error here.
At first I thought something was wrong with my Wordpress Installation, but after reinstalling it a couple times, I can see that it's something else. Your help would be greatly appreciated.
Use This only permission issue, use 666 for upload folder then images is working well. check this https://codex.wordpress.org/images/e/eb/podz_filezilla_13.gif
If permissions didn't fix it then try this:
1/ Double-check that your PHP configuration is up to date with the latest WordPress version. I made the mistake cause I was previously working on Magento 2 and forgot to switch from PHP 7.2 to 7.4.
2/ Try basic approach deactivate all plugins and see if one is clashing. Do the same with your them or try a native theme TwentyThirteen instead.
3/ Install "Regenerate All Thumbnails" go-to tools and force thumbnails regeneration for the entire library

Images not working in wordpress installed in a subdomain/subdirectory

I installed a copy of another wordpress installation of a client in a subdomain. All seems to work fine but images don't. I'm using videos as background and they are working perfect. If I take a look inside the media menu the images are not visible (you can only see an X for every image), but if you manually take the link of every image all the links works fine and images are accesible.
I suspect that issue is related with any of the functions that process images. Maybe some kind of error related with the subdomain which obviously have a dot in the domain name.
¿Any idea?
Thanks in advance!
I assume that you uploaded the images of the client's WordPress installation via FTP.
As far as I know WordPress Media Library cannot “see” images that are not uploaded through the Media Library uploader. The Media Library uploader (aside from uploading your media) creates necessary references within WordPress which you don't have when uploading media via ftp.
This is a common WordPress flaw. There are plugins which might solve your problem by creating the necessary references after such a ftp upload, e.g. Add From Server.

Resources