Title: Generated warning
Last modified: August 20, 2016

---

# Generated warning

 *  Resolved [jnpi](https://wordpress.org/support/users/jnpi/)
 * (@jnpi)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/generated-warning/)
 * Hello,
 * I’ve got the following warning:
 * Warning: Division by zero in /…/wp-content/plugins/bp-album/includes/bpa.template.
   tags.php on line 84
 * Are you going to fix it anytime soon?
    If not, how can I fix it myself?
 * Thank you for your efforts to support and improve this plugin.
 * [http://wordpress.org/extend/plugins/bp-album/](http://wordpress.org/extend/plugins/bp-album/)

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

 *  Plugin Contributor [foxly](https://wordpress.org/support/users/foxly/)
 * (@foxly)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289813)
 * Nobody’s ever reported that one before. What triggers the error?
 * ^F^
 *  Thread Starter [jnpi](https://wordpress.org/support/users/jnpi/)
 * (@jnpi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289815)
 * If I only knew…
 * I only have fresh installations of WP 3.5 Multisite, BuddyPress, BuddyPress Template
   Pack and BP-Album enabled.
 * Absolutely nothing else.
 *  Plugin Contributor [foxly](https://wordpress.org/support/users/foxly/)
 * (@foxly)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289832)
 * Post a link to a page on your site that generates that error when a user views
   the page.
 * ^F^
 *  Thread Starter [jnpi](https://wordpress.org/support/users/jnpi/)
 * (@jnpi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289843)
 * Dear foxly,
 * I am glad to let you know that my problem has been solved. I only had to reset
   my Site Title and Description. The reseting process can be summed up to restoring
   the original Site Tite and Description and re-write the Site Title and Description
   to my liking. As much as change it may be, all warning messaged disappeared.
 * I intend to tag the topic as resolved soon, but I will keep it open for a little
   while so you may contact me if you need any further information. If no further
   information is required, please let me know so as to proceed with the closing
   of this topic.
 * Thank you for your immediate attention to my issue.
 *  Thread Starter [jnpi](https://wordpress.org/support/users/jnpi/)
 * (@jnpi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289844)
 * Btw, I have also tested the pugin to another site and any warnings disappear 
   after **properly** setting the BP Template Pack up. The reason might have been
   that the aforementioned plug-in was probably not _properly_ installed on my first
   site, thus triggering the warnings.
 *  [rossagrant](https://wordpress.org/support/users/rossagrant/)
 * (@rossagrant)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289845)
 * Hi guys,
 * Just had a look in my error log on my site which is running WP 3.5 and BP 1.6.2and
   I am also seeing bundles and bundles of that same error meesage:
 * 22-Dec-2012 00:06:01 UTC] PHP Warning: Division by zero in /home/…/public_html/
   wp-content/plugins/bp-album/includes/bpa.template.tags.php on line 84
 * I used to have Buddypress template Pack installed but don’t use it with my theme
   any more, it’s no longer required.
 * Any idea why this is being generated Foxly?
 * Anything I can test mate?
 * Thanks 🙂
 *  Plugin Contributor [foxly](https://wordpress.org/support/users/foxly/)
 * (@foxly)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289852)
 * We’ve spent some time investigating this defect, and it’s happening because another
   template is passing “zero” or “null” to BP-Album when its expecting a page number.
 * We can easily fix this, but we’d like some more details about which template 
   is doing it.
 * ^F^
 *  [rossagrant](https://wordpress.org/support/users/rossagrant/)
 * (@rossagrant)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289853)
 * Nice one Foxly!
 * I’m not a coder, but if you let me know what I can do to help, I’ll gladly test
   stuff for you guys!
 *  [rossagrant](https://wordpress.org/support/users/rossagrant/)
 * (@rossagrant)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289866)
 * Any update on this Foxly, or is there anything I need to do for you mate?
 *  Plugin Contributor [foxly](https://wordpress.org/support/users/foxly/)
 * (@foxly)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289868)
 * I’m not getting this error on my test system. However, you can resolve it on 
   your server by making the following modification:
 * In the file “bp-album/includes/bpa.template.tags.php”
 * at line 80, insert the following block of code:
 * if(!$this->pag_per_page){
    $this->pag_per_page = 1; }
 * We will add this modification to future versions of the plugin.
 * ^F^
 *  Plugin Contributor [foxly](https://wordpress.org/support/users/foxly/)
 * (@foxly)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289869)
 * Marked as resolved.
 *  [rossagrant](https://wordpress.org/support/users/rossagrant/)
 * (@rossagrant)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289872)
 * Nice one Foxly, really appreciate you coming back to me on this.
 * I’ll wait for the next version to patch this then. I only see the error once 
   every now and again!
 * Ross 🙂

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

The topic ‘Generated warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-album.svg)
 * [BuddyPress Album](https://wordpress.org/plugins/bp-album/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-album/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-album/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-album/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-album/reviews/)

## Tags

 * [suffusion](https://wordpress.org/support/topic-tag/suffusion/)

 * 12 replies
 * 3 participants
 * Last reply from: [rossagrant](https://wordpress.org/support/users/rossagrant/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/generated-warning/#post-3289872)
 * Status: resolved