Title: Regenerating Fix
Last modified: August 20, 2016

---

# Regenerating Fix

 *  Resolved [g100g](https://wordpress.org/support/users/g100g/)
 * (@g100g)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/regenerating-fix/)
 * hi,
    after changing width and height to medium image size, the regenerate function
   told me that images with images size exists.
 * I founded the problem in the file class.admin.php at line 623
    I moved this code
   before foreach and not after.
 *     ```
       // Only if not all sizes
       			if( is_array( $thumbnails ) ) {
       				// Fill the array with the other sizes not have to be done
       				foreach( $meta_datas['sizes'] as $name => $fsize ) {
       					$metadata['sizes'][$name] = $fsize;
       				}
       			}
       ```
   
 * After this change everything worked as expected.
    Hope this help. .g
 * [http://wordpress.org/extend/plugins/simple-image-sizes/](http://wordpress.org/extend/plugins/simple-image-sizes/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Nicolas Juen](https://wordpress.org/support/users/rahe/)
 * (@rahe)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/regenerating-fix/#post-3533787)
 * Hi !
    Thank ou for your contribution :). I will integrate this modification on
   next version.
 * Rahe
 *  [Grégory Viguier](https://wordpress.org/support/users/greglone/)
 * (@greglone)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/regenerating-fix/#post-3533823)
 * Oh, yes! This one was a big problem to me… but I never looked in the code to 
   solve it :s
 * Thanks a lot 🙂
 *  [Grégory Viguier](https://wordpress.org/support/users/greglone/)
 * (@greglone)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/regenerating-fix/#post-3533864)
 * The bug still here 🙁 [http://adrop.in/Q0j](http://adrop.in/Q0j) (and some typos)
   
   Or may be it’s not a bug (but a feature ^^). May I ask for a “Force regeneration
   even if the damn file exists FFS!” checkbox? :3
 *  [AshtonSanders](https://wordpress.org/support/users/ashtonsanders/)
 * (@ashtonsanders)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/regenerating-fix/#post-3533887)
 * I’m getting this error still… I just double checked the code, and it looks like
   this fix is in place; but I still get this bug.
 * I have to go to individual image pages (in the media section) and click the regenerate
   button on that page.
 * Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Regenerating Fix’ is closed to new replies.

 * ![](https://ps.w.org/simple-image-sizes/assets/icon-256x256.jpg?rev=3506203)
 * [Simple Image Sizes](https://wordpress.org/plugins/simple-image-sizes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-image-sizes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-image-sizes/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-image-sizes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-image-sizes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-image-sizes/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [AshtonSanders](https://wordpress.org/support/users/ashtonsanders/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/regenerating-fix/#post-3533887)
 * Status: resolved