[buddypress-trac] [BuddyPress] #914: Division by zero error in /buddypress/bp-activity/bp-activity-templatetags.php on line 56

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Aug 7 16:20:37 UTC 2009

#914: Division by zero error in /buddypress/bp-activity/bp-activity-
templatetags.php on line 56
Reporter:  jacobwg  |       Owner:  jacobwg 
    Type:  defect   |      Status:  accepted
Priority:  major    |   Milestone:          
Keywords:           |  

Comment(by jacobwg):

 Ah... a little more digging found that page_num is not the number of
 pages, but the number of activity stream items per page.  Apparently, it
 is not getting set.  The code that sets the page_num var can be found on
 line 23:

 $this->pag_num = isset( $_REQUEST['num'] ) ? intval( $_REQUEST['num'] ) :

 Since the {{{$_REQEST['num']}}} var is empty, then the culprit must be
 $per_page being 0.

 Still digging...

Ticket URL: <http://trac.buddypress.org/ticket/914#comment:2>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list