BxDolPaginate.php: Division by zero on line 203

I have mass errors in my "error_log" file:

________________

Division by zero in /home/a9by/public_html/library.ua/inc/classes/BxDolPaginate.php on line 203

Division by zero in /home/a9by/public_html/library.ua/inc/classes/BxDolPaginate.php on line 203

Division by zero in /home/a9by/public_html/library.ua/inc/classes/BxDolPaginate.php on line 203

etc.

Is it possible to fix it?

Quote · 30 Jan 2015

First check settings in your admin in areas where you set the number of photos, videos, sounds, files, members, etc. to show in a block.  If you don't want a block to show any content, you have to remove it from the page instead of just setting the number to zero.  You can not have a block with zero content; in other words, the block on the page, but with no content.

Dolphin has some possible division by zero code that was not checked; hopefully these will be cleaned up in a future release just because a coder should always check for a possible division by zero when doing division.  One possible solution is to check pagination and if zero, then return and not show the block.

Geeks, making the world a better place
Quote · 30 Jan 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.