Back to Community

Fixing Blank Thumbnails and Media Library Issues in Local WordPress (XAMPP)

5 threads Sep 7, 2025 CoreLocalhost installs

Content

If you're developing a WordPress site locally using XAMPP on Windows, you might encounter a frustrating issue where images upload to the media library but only display as blank thumbnails. This is a common problem with a few well-known causes and solutions. This guide will walk you through the most effective troubleshooting steps.

Why This Happens

The most common cause for blank thumbnails on a local XAMPP install is incorrect file and folder permissions. The web server process (run by Apache) needs permission to write files to your wp-content/uploads/ directory. If it can't, the image file may not be moved from its temporary location during upload, resulting in a database entry for the image but no actual file, hence the broken thumbnail.

How to Fix Blank Media Library Thumbnails

1. Check and Correct File Permissions

This is the first and most crucial step. Navigate to your local WordPress installation folder (e.g., C:xampphtdocsyoursite).

  • Right-click the wp-content folder and select Properties.
  • Go to the Security tab.
  • Click Edit... to change permissions.
  • Click Add... and type Everyone in the object name field, then click Check Names and OK.
  • In the "Permissions for Everyone" section, check the Allow box for Modify.
  • Click Apply and OK. Ensure you apply these changes to all subfolders and files when prompted.

2. Verify the Uploads Folder Path

Sometimes, a plugin can alter the file path WordPress uses for uploads, and these changes may not be reverted when the plugin is deactivated or deleted. As seen in one user's report, a photo cart plugin changed paths to uploads/sunshine/....

  • Check your site's upload path by looking in the database. In the wp_options table, check the values for the upload_path option. This value should typically be empty, which tells WordPress to use the default wp-content/uploads path.
  • You can also check this in phpMyAdmin. Running a query like SELECT * FROM `wp_options` WHERE `option_name` = 'upload_path'; will show the current value. If it's set to an incorrect path, you can update it to be blank.

3. Regenerate Thumbnails

If the full-size image appears when you click "Edit Image" but the thumbnails are broken, the problem may be that the various image sizes were not generated correctly during upload. Using a trusted thumbnail regeneration plugin can often rebuild these files and fix the display issue.

Conclusion

For most users on a local XAMPP server, resolving file permissions is the key to fixing broken media library images. If the problem began after using a specific plugin, also investigate the upload path settings in your database. Following these steps should restore functionality to your local media library and allow you to continue development without interruption.