Title: PHP Warning: Division by zero in
Last modified: March 29, 2017

---

# PHP Warning: Division by zero in

 *  Resolved [trishahdee](https://wordpress.org/support/users/trishahdee/)
 * (@trishahdee)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-warning-division-by-zero-in/)
 * What does this mean and how do I fix it?
 * > PHP Warning: Division by zero in /home/name/public_html/domain.com/site/wp-
   > content/plugins/gallery-video/includes/class-gallery-video-template-loader.
   > php on line 26

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

 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-warning-division-by-zero-in/#post-8973608)
 * Dear Trishah,
 * Thank you for contacting us.
 * Please, be kindly informed that the reason of the issue is that you set a pagination
   or load more and there are not enough images on your page to display them on 
   other pages
    You can see the screenshot here:[http://prntscr.com/eq7ygg](http://prntscr.com/eq7ygg)
   In this case, a code needs to be injected in order to make the warning disappear.
   You can send us an email to info [at] huge-it.com, our developers will be happy
   to help you to solve the issue you have faced.
 * Looking forward to hearing from you soon.
 * Thank you
 *  Thread Starter [trishahdee](https://wordpress.org/support/users/trishahdee/)
 * (@trishahdee)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-warning-division-by-zero-in/#post-8976099)
 * Oh, I see. So I went in to the gallery and it was set on “Pagination” with no
   number set. But when I tried to save with a number, it did not “take”. Meaning,
   nothing changed. I tried all different settings and none of them would save.
 * So I deactivated all the plugins and then the last setting I had made would save,
   i.e., Light-Box Video Gallery + Show All. The gallery now worked.
 * I than turned the plugins back on in small groups to see if there was a conflict.
   After I had turned them all back on, that gallery still works… no conflict.
 * So, I don’t know what “fixed” the issue but I am no longer getting errors and
   I can change the settings and save them in the gallery.
 * Thank you for the information. Issue resolved.
 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-warning-division-by-zero-in/#post-8977029)
 * Dear Trishah,
 * Great. Thank you for keeping us updated.
 * If there is anything we can help you with, please, let us know
 * Best regards,

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

The topic ‘PHP Warning: Division by zero in’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gallery-video_30abb3.svg)
 * [Gallery - Video Gallery and Youtube Gallery](https://wordpress.org/plugins/gallery-video/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gallery-video/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-video/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-video/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-video/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-video/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 3 replies
 * 2 participants
 * Last reply from: [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/php-warning-division-by-zero-in/#post-8977029)
 * Status: resolved