Title: Division by zero error
Last modified: August 21, 2016

---

# Division by zero error

 *  Resolved [dicknervous](https://wordpress.org/support/users/dicknervous/)
 * (@dicknervous)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/division-by-zero-error-2/)
 * I have setup a site with several galleries that are in an single album.
    When
   I include the album on a page the thumbnails for only one gallery shows up, the
   others are broken images.
 * Also, when I try to do anything with those other galleries, such as add a watermark
   or resize the thumbnails I get a division by zero error for each image in the
   gallery that looks like this:
 * Warning: Division by zero in /home/content/61/11491561/html/wp-content/plugins/
   nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/class.ngglegacy_thumbnail.
   php on line 297
 * The line number changes for each one, but the rest of the error is the same.
 * I am running Wp 3.7.1 with NextGen 2.0.33. Other versions are MYSQL 5.0.96, PHP
   5.3.24. The site is hosted by GoDaddy.
 * Any help would be greatly appreciated.
    Thanks.
 * [http://wordpress.org/plugins/nextgen-gallery/](http://wordpress.org/plugins/nextgen-gallery/)

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/division-by-zero-error-2/#post-4315803)
 * [@dicknervous](https://wordpress.org/support/users/dicknervous/) – Would you 
   be able to submit a Bug Report ([http://www.nextgen-gallery.com/report-bug/](http://www.nextgen-gallery.com/report-bug/)…
   please reference this topic) so we can try to help you sort this out.
 * We will likely need a set of log in and FTP credentials for the WordPress installation,
   too. Please include those with the Bug Report.
 * Thanks!
 * – Cais.
 *  Thread Starter [dicknervous](https://wordpress.org/support/users/dicknervous/)
 * (@dicknervous)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/division-by-zero-error-2/#post-4315840)
 * Done. Thanks!
 *  Thread Starter [dicknervous](https://wordpress.org/support/users/dicknervous/)
 * (@dicknervous)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/division-by-zero-error-2/#post-4315978)
 * With the help of Cais this was resolved.
 * For anyone else having similar issues, check the PHP Memory limit. The default
   for GoDaddy was 64M which was not high enough. I changed it to 256M and everything
   started working.

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

The topic ‘Division by zero error’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [Division by zero](https://wordpress.org/support/topic-tag/division-by-zero/)
 * [thumbnails](https://wordpress.org/support/topic-tag/thumbnails/)

 * 3 replies
 * 2 participants
 * Last reply from: [dicknervous](https://wordpress.org/support/users/dicknervous/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/division-by-zero-error-2/#post-4315978)
 * Status: resolved