Fix Media Library

Description

Fix Media Library fixes inconsistency between wp-content/uploads folder and
database.
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 WowPress.host 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 WordPress.org forums.

The source code for this plugin is available on GitHub.

Paid support at WowPress.host.

Screenshots

  • Configuration page
  • Progress running

Installation

  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.

Reviews

June 1, 2019
This plugin is genious, its a big life saver! Thank you very much your effort to creating this awesome plugin.
March 22, 2019
Manual migration from one host to another. Suddenly none of the 2,000+ images on the site are available? Not sure as to why - tried a few things including several other plugins and everything failed. Thought they were gone for good and was contemplating how I could possibly fix the issue. Installed this simple little beauty of a plugin, ran once and everything is back in order again! Simple, no fuss, ran like a charm (took around 30 mins) and worked perfectly. So very much appreciated!
March 21, 2019
Many of my media library images were missing. Installed the plugin, did a back-up (just in case) ran the tool with the standard settings and after a bit of time (I think 20 minutes or maybe longer for over 1,500 images) I can now again see all the images thumbnails that are in my media folder!
February 27, 2019
We are attempting to fix an additional 6000 media files that were created as a result of a woocommerce bulk import. In short this issue is a nightmare for anyone who has to deal with it and this plugin saves you. This plugin was the only one that actually did what it said it would do, we cannot thank the plugin authors enough! We tried: Media Cleaner, and Media Cleaner Pro - Author never responded on the issues we had there (namely it literally wiped out media files that were attached to woo product pages) Media Deduper & Media Deduper Pro - Didn't even load or index, reached out to authors, they helped but didn't fix the issue, refunded us. Media Gallery enhanced - doesn't help for this problem. Media Search enhanced - is the best search utility (although unsupported for current versions of wordpress, still is the best way to search filenames in wordpress who knew you couldn't search filenames). This plugin however breaks the search for items in the trash. In short - this plugin installed, and cleaned out duplicates, cleaned out unassigned images, re-assigned meta data to media files that somehow didn't have it, and reduced our media library from 14,000 to 8,000 THANK YOU!
Read all 20 reviews

Contributors & Developers

“Fix Media Library” is open source software. The following people have contributed to this plugin.

Contributors

“Fix Media Library” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Fix Media Library” into your language.

Interested in development?

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

Changelog

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.