Title: Division by Zero warnings
Last modified: August 20, 2016

---

# Division by Zero warnings

 *  Resolved [Travis Ballard](https://wordpress.org/support/users/ansimation/)
 * (@ansimation)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/division-by-zero-warnings/)
 * Just installed the plugin and when the thickbox window pops up there is a bunch
   of division by zero warnings ( if you have wp_debug enabled ). Here’s a patch
   that surpresses those [https://gist.github.com/4400528](https://gist.github.com/4400528)
 * [http://wordpress.org/extend/plugins/crop-thumbnails/](http://wordpress.org/extend/plugins/crop-thumbnails/)

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

 *  Plugin Author [Volkmar Kantor](https://wordpress.org/support/users/volkmar-kantor/)
 * (@volkmar-kantor)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/division-by-zero-warnings/#post-3312009)
 * Hi Travis,
    thanks, but i will not use these code. If you have a division by 
   zero warning **you probably have add a image-size with a height or width of zero**(
   search for add_image_size in your theme). That’s no proper value for a image-
   size. Please check, and fix your code if needed.
 * If there still an error, then please post your settings.
 * These warning is also described here: [http://wordpress.org/support/topic/cropped-images-are-not-saved-error-mess?replies=5#post-3532773](http://wordpress.org/support/topic/cropped-images-are-not-saved-error-mess?replies=5#post-3532773)
 *  Thread Starter [Travis Ballard](https://wordpress.org/support/users/ansimation/)
 * (@ansimation)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/division-by-zero-warnings/#post-3312016)
 * How is it not a proper value when they default to 0? [http://codex.wordpress.org/Function_Reference/add_image_size](http://codex.wordpress.org/Function_Reference/add_image_size)
 * By setting it to 0 you allow it to set a max height or width and let the other
   value be flexible.
 *  Plugin Author [Volkmar Kantor](https://wordpress.org/support/users/volkmar-kantor/)
 * (@volkmar-kantor)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/division-by-zero-warnings/#post-3312019)
 * Hi Travis,
    thanks for that. Sorry had never readed about the default value.
 * So there will be a fix for that in the next version.
 *  Thread Starter [Travis Ballard](https://wordpress.org/support/users/ansimation/)
 * (@ansimation)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/division-by-zero-warnings/#post-3312020)
 * Not a problem. Glad I could help 🙂

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

The topic ‘Division by Zero warnings’ is closed to new replies.

 * ![](https://ps.w.org/crop-thumbnails/assets/icon.svg?rev=1228698)
 * [Crop-Thumbnails](https://wordpress.org/plugins/crop-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/crop-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/crop-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/crop-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/crop-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/crop-thumbnails/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Travis Ballard](https://wordpress.org/support/users/ansimation/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/division-by-zero-warnings/#post-3312020)
 * Status: resolved