wordpressimagemedia-library

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:

How do I rectify this issue?


Solution

  • 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).