Title: Fix Media Library
Author: wowpress.host
Published: <strong>مئی 25, 2018</strong>
Last modified: دسمبر 18, 2018

---

Search plugins

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.

![](https://ps.w.org/wow-media-library-fix/assets/icon.svg?rev=1950414)

# Fix Media Library

 By [wowpress.host](https://profiles.wordpress.org/wowpresshost/)

[Download](https://downloads.wordpress.org/plugin/wow-media-library-fix.2.0.zip)

 * [Details](https://bcc.wordpress.org/plugins/wow-media-library-fix/#description)
 * [Reviews](https://bcc.wordpress.org/plugins/wow-media-library-fix/#reviews)
 *  [Installation](https://bcc.wordpress.org/plugins/wow-media-library-fix/#installation)
 * [Development](https://bcc.wordpress.org/plugins/wow-media-library-fix/#developers)

 [Support](https://wordpress.org/support/plugin/wow-media-library-fix/)

## 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](https://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](https://wordpress.org/support/plugin/wow-media-library-fix).

The source code for this plugin is available on [GitHub](https://github.com/wowpress-host/wow-media-library-fix).

Paid support at [WowPress.host](https://wowpress.host/professional-services/).

## Screenshots

[⌊Configuration page⌉⌊Configuration page⌉[

Configuration page

[⌊Progress running⌉⌊Progress running⌉[

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

![](https://secure.gravatar.com/avatar/90a5c32f40794f1124dea142dd5fc83323255b89fbecc287f320760007dbcf1e?
s=60&d=retro&r=g)

### 󠀁[Lifesaver!](https://wordpress.org/support/topic/lifesaver-243/)󠁿

 [davidvdm](https://profiles.wordpress.org/davidvdm/) اگست 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 🙂

![](https://secure.gravatar.com/avatar/83e1cad4f03329d9ae47f6df93d89b08ed26bd65b1bb7a096d0a58f31137ee1c?
s=60&d=retro&r=g)

### 󠀁[Very cool.](https://wordpress.org/support/topic/very-cool-236/)󠁿

 [Riyadh ali](https://profiles.wordpress.org/senansoft/) جُلائی 10, 2023

Very cool..Thank you fullness

![](https://secure.gravatar.com/avatar/db819a7ce4f0e28fa826b04bec4f9ae0b2415296a2163bb2baf37ab1290888f1?
s=60&d=retro&r=g)

### 󠀁[Works as expected](https://wordpress.org/support/topic/works-as-expected-779/)󠁿

 [adiltibari](https://profiles.wordpress.org/adiltibari/) ستمبر 30, 2022

Works as expected

![](https://secure.gravatar.com/avatar/e3abc700a0d4583f6c8054b25326faef06b0279022588eb7fe117dc5cd33f318?
s=60&d=retro&r=g)

### 󠀁[An Oldie But Goodie](https://wordpress.org/support/topic/an-oldie-but-goodie-2/)󠁿

 [markisparki](https://profiles.wordpress.org/markisparki/) ستمبر 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.

![](https://secure.gravatar.com/avatar/4e92a1792da1860941ba5e7119feb022c2ea44dd8ea1d0c04d2faaa9f02d6f51?
s=60&d=retro&r=g)

### 󠀁[5 star! Very useful plugin](https://wordpress.org/support/topic/5-star-very-useful-plugin/)󠁿

 [Hembike](https://profiles.wordpress.org/hembike/) ستمبر 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.

![](https://secure.gravatar.com/avatar/77e2a2011bea8c5c235a2b02289b965ed1d543a180ee537c0e7126be2f1700bc?
s=60&d=retro&r=g)

### 󠀁[Life saver](https://wordpress.org/support/topic/life-saver-375/)󠁿

 [noorac](https://profiles.wordpress.org/noorac/) اگست 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.

 [ Read all 32 reviews ](https://wordpress.org/support/plugin/wow-media-library-fix/reviews/)

## Contributors & Developers

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

Contributors

 *   [ wowpress.host ](https://profiles.wordpress.org/wowpresshost/)

“Fix Media Library” has been translated into 4 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/wow-media-library-fix/contributors)
for their contributions.

[Translate “Fix Media Library” into your language.](https://translate.wordpress.org/projects/wp-plugins/wow-media-library-fix)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wow-media-library-fix/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wow-media-library-fix/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wow-media-library-fix/)
by [RSS](https://plugins.trac.wordpress.org/log/wow-media-library-fix/?limit=100&mode=stop_on_copy&format=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.

## Meta

 *  Version **2.0**
 *  Last updated **8 years ago**
 *  Active installations **1,000+**
 *  WordPress version ** 4.6 or higher **
 *  Tested up to **5.0.30**
 *  PHP version ** 5.3 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/wow-media-library-fix/), [French (France)](https://fr.wordpress.org/plugins/wow-media-library-fix/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/wow-media-library-fix/), [Spanish (Spain)](https://es.wordpress.org/plugins/wow-media-library-fix/),
   and [Swedish](https://sv.wordpress.org/plugins/wow-media-library-fix/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wow-media-library-fix)
 * Tags
 * [attachments](https://bcc.wordpress.org/plugins/tags/attachments/)[media library](https://bcc.wordpress.org/plugins/tags/media-library/)
   [post thumbnail](https://bcc.wordpress.org/plugins/tags/post-thumbnail/)[thumbnail](https://bcc.wordpress.org/plugins/tags/thumbnail/)
   [thumbnails](https://bcc.wordpress.org/plugins/tags/thumbnails/)
 *  [Advanced View](https://bcc.wordpress.org/plugins/wow-media-library-fix/advanced/)

## Ratings

 4.9 out of 5 stars.

 *  [  30 5-star reviews     ](https://wordpress.org/support/plugin/wow-media-library-fix/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/wow-media-library-fix/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wow-media-library-fix/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wow-media-library-fix/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/wow-media-library-fix/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wow-media-library-fix/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wow-media-library-fix/reviews/)

## Contributors

 *   [ wowpress.host ](https://profiles.wordpress.org/wowpresshost/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wow-media-library-fix/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://wowpress.host/plugins/fix-media-library/)