This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Fix Media Library


Fix Media Library fixes inconsistency between wp-content/uploads folder and
Fixes corrupted Media Library database records.
Designed to run smoothly against huge Media Libraries containing hundreds of thousands of images.

Useful when:

  • Really old database is used and there are a lot of problems with Media Library found
  • New thumbnail sizes are registered
  • Some thumbnail sizes are not used anymore (theme change, upgrade), but image files are still exists
  • There are Media Library entries present pointing to image files that don’t exist anymore
  • Some entries in Media Library are not displayed, while image files are present (_wp_attachment_metadata meta field corrupted)
  • There are a lot of images in wp-content/uploads folder that are no longer used
  • There are duplicate attachments pointing to the same image file
  • Images are used by website, but you can’t find them in Media Library
  • You want to update attachments GUID fields containing old/staging urls
  • Detects major database corruptions affecting media library functionality

At company we regularly migrate very old databases and clean it up to make sure website using it is running smoothly. Those databases have all different kinds of inconsistencies collected during years or even decades of usage, and Media Library is the most common problematic piece of data here.
That plugin helps to solve most common problems related to Media Library data.

We use a lot of open-source tools in our work, and therefore decided publish our own tools so that those can be used by the community too.

Need Help? Found A Bug? Want To Contribute Code?

Support for this plugin is provided via the forums.

The source code for this plugin is available on GitHub.

Paid support at

عکس‌های صفحه

  • Configuration page
  • Progress running


  1. Go to your admin area and select Plugins Add New from the menu.
  2. Search for “Fix Media Library”.
  3. Click install.
  4. Click activate.
  5. Navigate to Tools Fix Media Library.

نقد و بررسی‌ها

2 آگوست 2023
After using several plugins to fix my media library this one just did everything in one go! Was having trouble with srcset images not being shown and I figured it had to do with some corruption in the Media Library. It did and this plugin fixed it easily! Thank you so much for saving me hours and hours of work! PS: Please consider updating this plugin as it is such a useful tool 🙂
28 سپتامبر 2022
You are always taking a risk when using an old plugin (in my case FOUR years old and 3 major WP core updates behind the curve). Still, the reviews looked good and I had hundreds of broken links from deleted files from an image plugin that didn’t completeduring its table updates before crashing. I hadn’t noticed the crash until a few weeks later when I had hundreds of empty squares in my media library. After taking backups, I did a non-destructive dry run, which ran successfully and found all the hundreds of broken links. I then used the “Delete attachments pointing to missing image file” option and it cleared everything in one go. I am so very grateful for this plugin and wonder why it isn’t in the core of WP as deleting files using FTP for example is very easily done. Anyway, thank you for this plugin.
16 سپتامبر 2021
I searched for a very long time to find an easy solution to remove broken WooCommerce Product images if the image missing from the server from wp-content/uploads directory. This plugin has a “Delete attachments pointing to missing image file” function, it does the job very well.
30 آگوست 2021
Listen, this plugin is a lifesaver. I certainly hope it’s not abandoned, it’s just too useful. Wordpress was refusing to process thumbnails for some of my manually uploaded images because they were just too big. Even WP-CLI refused to deal with them. This plugin has come through in my time of need.
خواندن تمامی 32 نقد و بررسی‌

توسعه دهندگان و همکاران

“Fix Media Library” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

“Fix Media Library” به 3 زبان ترجمه شده است. با تشکر از مترجمین برای همکاری و کمک‌هایشان.

ترجمه “Fix Media Library” به زبان شما.

علاقه‌ مند به توسعه هستید؟

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

گزارش تغییرات

Version 2.0

Correctly process attachments stored without subfolders, like year/month.
Don’t fail on folders with corrupted-charset characters in filename.
Handle _wp_attachment_backup_sizes metadata – remove on regeneration, ignore on weak references check

Perform basic database structure check

Version 1.0

Initial release.